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


Public Member Functions | |
| __construct ($from_lines, $to_lines) | |
| Constructor. | |
| closing () | |
| Get the closing set of lines. | |
| getEdits () | |
| isEmpty () | |
| Check for empty diff. | |
| lcs () | |
| Compute the length of the Longest Common Subsequence (LCS). | |
| orig () | |
| Get the original set of lines. | |
| reverse () | |
| Compute reversed Diff. | |
Public Attributes | |
| DiffOp[] | $edits |
Class representing a 'diff' between two sequences of strings.
Definition at line 705 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. |
Reimplemented in WordLevelDiff.
Definition at line 719 of file DairikiDiff.php.
| Diff::closing | ( | ) |
Get the closing set of lines.
This reconstructs the $to_lines parameter passed to the constructor.
Reimplemented in WordLevelDiff.
Definition at line 814 of file DairikiDiff.php.
| Diff::getEdits | ( | ) |
| Diff::isEmpty | ( | ) |
Check for empty diff.
Definition at line 758 of file DairikiDiff.php.
| Diff::lcs | ( | ) |
Compute the length of the Longest Common Subsequence (LCS).
This is mostly for diagnostic purposed.
Definition at line 775 of file DairikiDiff.php.
| Diff::orig | ( | ) |
Get the original set of lines.
This reconstructs the $from_lines parameter passed to the constructor.
Reimplemented in WordLevelDiff.
Definition at line 794 of file DairikiDiff.php.
| Diff::reverse | ( | ) |
Definition at line 709 of file DairikiDiff.php.