ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 1286 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 1298 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 1403 of file class.WordLevelDiff.php.
Diff::closing | ( | ) |
Get the closing set of lines.
This reconstructs the $to_lines parameter passed to the constructor.
Definition at line 1386 of file class.WordLevelDiff.php.
Diff::isEmpty | ( | ) |
Check for empty diff.
Definition at line 1330 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 1347 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 1366 of file class.WordLevelDiff.php.
Diff::reverse | ( | ) |
Diff::$edits |
Definition at line 1288 of file class.WordLevelDiff.php.