MediaWiki master
|
Performs a word-level diff on several lines. More...
Inherits Wikimedia\Diff\Diff.
Public Member Functions | |
__construct ( $linesBefore, $linesAfter) | |
closing () | |
orig () | |
Public Member Functions inherited from Wikimedia\Diff\Diff | |
getEdits () | |
isEmpty () | |
Check for empty diff. | |
lcs () | |
Compute the length of the Longest Common Subsequence (LCS). | |
reverse () | |
Compute reversed Diff. | |
Protected Attributes | |
$bailoutComplexity = 40_000_000 | |
Protected Attributes inherited from Wikimedia\Diff\Diff | |
int | $bailoutComplexity = 0 |
If this diff complexity is exceeded, a ComplexityException is thrown 0 means no limit. | |
Additional Inherited Members | |
Public Attributes inherited from Wikimedia\Diff\Diff | |
DiffOp[] | $edits |
Performs a word-level diff on several lines.
Definition at line 34 of file WordLevelDiff.php.
Wikimedia\Diff\WordLevelDiff::__construct | ( | $linesBefore, | |
$linesAfter ) |
string[] | $linesBefore | |
string[] | $linesAfter |
Reimplemented from Wikimedia\Diff\Diff.
Definition at line 47 of file WordLevelDiff.php.
Wikimedia\Diff\WordLevelDiff::closing | ( | ) |
Reimplemented from Wikimedia\Diff\Diff.
Definition at line 127 of file WordLevelDiff.php.
References $lines, and Wikimedia\Diff\WordAccumulator\addWords().
Wikimedia\Diff\WordLevelDiff::orig | ( | ) |
Reimplemented from Wikimedia\Diff\Diff.
Definition at line 109 of file WordLevelDiff.php.
References $lines, and Wikimedia\Diff\WordAccumulator\addWords().
|
protected |
Definition at line 38 of file WordLevelDiff.php.