|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Inheritance diagram for Diff:
Collaboration diagram for Diff: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 1300 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. |
Reimplemented in WordLevelDiff.
Definition at line 1312 of file class.WordLevelDiff.php.
References _DiffEngine\diff().
Here is the call graph for this function:| Diff::_check | ( | $from_lines, | |
| $to_lines | |||
| ) |
Check a Diff for validity.
This is here only for debugging purposes.
Definition at line 1417 of file class.WordLevelDiff.php.
References closing(), lcs(), orig(), and reverse().
Here is the call graph for this function:| Diff::closing | ( | ) |
Get the closing set of lines.
This reconstructs the $to_lines parameter passed to the constructor.
Reimplemented in WordLevelDiff.
Definition at line 1400 of file class.WordLevelDiff.php.
Referenced by _check().
Here is the caller graph for this function:| Diff::isEmpty | ( | ) |
Check for empty diff.
Definition at line 1344 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 1361 of file class.WordLevelDiff.php.
Referenced by _check().
Here is the caller graph for this function:| Diff::orig | ( | ) |
Get the original set of lines.
This reconstructs the $from_lines parameter passed to the constructor.
Reimplemented in WordLevelDiff.
Definition at line 1380 of file class.WordLevelDiff.php.
Referenced by _check().
Here is the caller graph for this function:| Diff::reverse | ( | ) |
Compute reversed Diff.
SYNOPSIS:
$diff = new Diff($lines1, $lines2); $rev = $diff->reverse();
Definition at line 1329 of file class.WordLevelDiff.php.
Referenced by _check().
Here is the caller graph for this function:| Diff::$edits |
Definition at line 1302 of file class.WordLevelDiff.php.
Referenced by MappedDiff\__construct().