|
MediaWiki
master
|
Class representing a 'diff' between two sequences of strings. More...


Public Member Functions | |
| __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... | |
Public Attributes | |
| DiffOp[] | $edits |
Protected Attributes | |
| int | $bailoutComplexity = 0 |
| If this diff complexity is exceeded, a ComplexityException is thrown 0 means no limit. More... | |
Class representing a 'diff' between two sequences of strings.
Definition at line 200 of file DairikiDiff.php.
| Diff::__construct | ( | $from_lines, | |
| $to_lines | |||
| ) |
Constructor.
Computes diff between sequences of strings.
| string[] | $from_lines An array of strings. Typically these are lines from a file. |
| string[] | $to_lines An array of strings. |
| \\MediaWiki\\Diff\\ComplexityException |
Definition at line 222 of file DairikiDiff.php.
References edits, and DiffEngine\setBailoutComplexity().
| Diff::closing | ( | ) |
Get the closing set of lines.
This reconstructs the $to_lines parameter passed to the constructor.
Definition at line 318 of file DairikiDiff.php.
| Diff::getEdits | ( | ) |
| Diff::isEmpty | ( | ) |
Check for empty diff.
Definition at line 262 of file DairikiDiff.php.
| Diff::lcs | ( | ) |
Compute the length of the Longest Common Subsequence (LCS).
This is mostly for diagnostic purposed.
Definition at line 279 of file DairikiDiff.php.
| Diff::orig | ( | ) |
Get the original set of lines.
This reconstructs the $from_lines parameter passed to the constructor.
Definition at line 298 of file DairikiDiff.php.
| Diff::reverse | ( | ) |
|
protected |
If this diff complexity is exceeded, a ComplexityException is thrown 0 means no limit.
Definition at line 211 of file DairikiDiff.php.
| DiffOp [] Diff::$edits |
Definition at line 205 of file DairikiDiff.php.
Referenced by getEdits().