ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Public Member Functions | |
Diff ($from_lines, $to_lines) | |
Constructor. More... | |
reverse () | |
Compute reversed Diff. More... | |
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... | |
closing () | |
Get the closing set of lines. More... | |
_check ($from_lines, $to_lines) | |
Check a Diff for validity. More... | |
Data Fields | |
$edits | |
Definition at line 1202 of file class.WordLevelDiff.php.
Diff::_check | ( | $from_lines, | |
$to_lines | |||
) |
Check a Diff for validity.
This is here only for debugging purposes.
Definition at line 1309 of file class.WordLevelDiff.php.
References closing(), lcs(), orig(), and reverse().
Diff::closing | ( | ) |
Get the closing set of lines.
This reconstructs the $to_lines parameter passed to the constructor.
Reimplemented in WordLevelDiff.
Definition at line 1294 of file class.WordLevelDiff.php.
Referenced by _check().
Diff::Diff | ( | $from_lines, | |
$to_lines | |||
) |
Constructor.
Computes diff between sequences of strings.
$from_lines | array An array of strings. (Typically these are lines from a file.) |
$to_lines | array An array of strings. |
Definition at line 1214 of file class.WordLevelDiff.php.
References _DiffEngine\diff().
Referenced by MappedDiff\MappedDiff().
Diff::isEmpty | ( | ) |
Check for empty diff.
Definition at line 1244 of file class.WordLevelDiff.php.
Diff::lcs | ( | ) |
Compute the length of the Longest Common Subsequence (LCS).
This is mostly for diagnostic purposed.
Definition at line 1259 of file class.WordLevelDiff.php.
Referenced by _check().
Diff::orig | ( | ) |
Get the original set of lines.
This reconstructs the $from_lines parameter passed to the constructor.
Reimplemented in WordLevelDiff.
Definition at line 1276 of file class.WordLevelDiff.php.
Referenced by _check().
Diff::reverse | ( | ) |
Compute reversed Diff.
SYNOPSIS:
$diff = new Diff($lines1, $lines2); $rev = $diff->reverse();
Definition at line 1230 of file class.WordLevelDiff.php.
Referenced by _check().
Diff::$edits |
Definition at line 1204 of file class.WordLevelDiff.php.
Referenced by MappedDiff\MappedDiff().