MediaWiki
1.28.0
|
Performs a word-level diff on several lines. More...
Public Member Functions | |
__construct ($linesBefore, $linesAfter) | |
closing () | |
orig () | |
Public Member Functions inherited from Diff | |
__construct ($from_lines, $to_lines) | |
Constructor. More... | |
closing () | |
Get the closing set of lines. More... | |
getEdits () | |
isEmpty () | |
Check for empty diff. More... | |
lcs () | |
Compute the length of the Longest Common Subsequence (LCS). More... | |
orig () | |
Get the original set of lines. More... | |
reverse () | |
Compute reversed Diff. More... | |
Protected Attributes | |
$bailoutComplexity = 40000000 | |
Protected Attributes inherited from Diff | |
int | $bailoutComplexity = 0 |
If this diff complexity is exceeded, a ComplexityException is thrown 0 means no limit. More... | |
Private Member Functions | |
split ($lines) | |
Additional Inherited Members | |
Public Attributes inherited from Diff | |
DiffOp[] | $edits |
Performs a word-level diff on several lines.
Definition at line 34 of file WordLevelDiff.php.
WordLevelDiff::__construct | ( | $linesBefore, | |
$linesAfter | |||
) |
string[] | $linesBefore |
string[] | $linesAfter |
Definition at line 44 of file WordLevelDiff.php.
WordLevelDiff::closing | ( | ) |
Definition at line 127 of file WordLevelDiff.php.
References $lines, MediaWiki\Diff\WordAccumulator\addWords(), as, and edits.
WordLevelDiff::orig | ( | ) |
Definition at line 109 of file WordLevelDiff.php.
References $lines, MediaWiki\Diff\WordAccumulator\addWords(), as, and edits.
|
private |
string[] | $lines |
Definition at line 79 of file WordLevelDiff.php.
References $line, $lines, and as.
Referenced by __construct().
|
protected |
Definition at line 38 of file WordLevelDiff.php.