Definition at line 1769 of file class.WordLevelDiff.php.
◆ __construct()
WordLevelDiff::__construct |
( |
|
$orig_lines, |
|
|
|
$closing_lines |
|
) |
| |
◆ _split()
WordLevelDiff::_split |
( |
|
$lines | ) |
|
Definition at line 1790 of file class.WordLevelDiff.php.
1806 $fname =
'WordLevelDiff::_split';
1810 $stripped = array();
1812 foreach ($lines as $line) {
1813 # If the line is too long, just pretend the entire line is one big word 1814 # This prevents resource exhaustion problems 1821 if (strlen($line) > self::MAX_LINE_LENGTH) {
1823 $stripped[] = $line;
◆ closing()
WordLevelDiff::closing |
( |
| ) |
|
Definition at line 1844 of file class.WordLevelDiff.php.
1847 if ($edit->type ==
'copy') {
1848 $orig->addWords($edit->orig);
1849 } elseif ($edit->orig) {
1850 $orig->addWords($edit->orig,
'del');
1853 $lines = $orig->getLines();
1860 $fname =
'WordLevelDiff::closing';
◆ orig()
Definition at line 1826 of file class.WordLevelDiff.php.
1827 : (?!< \n) [^\
S\n])? /xs
', 1831 $words = array_merge($words, $m[0]); 1832 $stripped = array_merge($stripped, $m[1]); 1836 //wfProfileOut( $fname ); 1837 return array($words, $stripped); 1840 public function orig() This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ MAX_LINE_LENGTH
const WordLevelDiff::MAX_LINE_LENGTH = 10000 |
The documentation for this class was generated from the following file: