|
ILIAS
release_4-3 Revision
|
Inheritance diagram for Diff:
Collaboration diagram for Diff:Public Member Functions | |
| Diff ($from_lines, $to_lines) | |
| Constructor. | |
| reverse () | |
| Compute reversed Diff. | |
| isEmpty () | |
| Check for empty diff. | |
| lcs () | |
| Compute the length of the Longest Common Subsequence (LCS). | |
| orig () | |
| Get the original set of lines. | |
| closing () | |
| Get the closing set of lines. | |
| _check ($from_lines, $to_lines) | |
| Check a Diff for validity. | |
Data Fields | |
| $edits | |
Definition at line 1188 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 1295 of file class.WordLevelDiff.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 1280 of file class.WordLevelDiff.php.
| 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 1200 of file class.WordLevelDiff.php.
| Diff::isEmpty | ( | ) |
Check for empty diff.
Definition at line 1230 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 1245 of file class.WordLevelDiff.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 1262 of file class.WordLevelDiff.php.
| Diff::reverse | ( | ) |
Compute reversed Diff.
SYNOPSIS:
$diff = new Diff($lines1, $lines2); $rev = $diff->reverse();
Definition at line 1216 of file class.WordLevelDiff.php.
| Diff::$edits |
Definition at line 1190 of file class.WordLevelDiff.php.