ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
|
Public Member Functions | |
__construct ($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 611 of file class.WordLevelDiff.php.
Diff::__construct | ( | $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 623 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 728 of file class.WordLevelDiff.php.
References _DiffOp\reverse().
Diff::closing | ( | ) |
Get the closing set of lines.
This reconstructs the $to_lines parameter passed to the constructor.
Definition at line 711 of file class.WordLevelDiff.php.
Diff::isEmpty | ( | ) |
Check for empty diff.
Definition at line 655 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 672 of file class.WordLevelDiff.php.
Diff::orig | ( | ) |
Get the original set of lines.
This reconstructs the $from_lines parameter passed to the constructor.
Definition at line 691 of file class.WordLevelDiff.php.
Diff::reverse | ( | ) |
Diff::$edits |
Definition at line 613 of file class.WordLevelDiff.php.