Public Member Functions | |
Diff ($from_lines, $to_lines) | |
reverse () | |
isEmpty () | |
lcs () | |
orig () | |
closing () | |
_check ($from_lines, $to_lines) | |
Public Attributes | |
$edits |
Definition at line 668 of file DifferenceEngine.php.
|
Constructor. Computes diff between sequences of strings.
Definition at line 680 of file DifferenceEngine.php. |
|
Check a Diff for validity. This is here only for debugging purposes. Definition at line 775 of file DifferenceEngine.php. References _check(), lcs(), and reverse(). Referenced by _check(). |
|
Get the closing set of lines. This reconstructs the $to_lines parameter passed to the constructor.
Definition at line 760 of file DifferenceEngine.php. References $lines. |
|
Check for empty diff.
Definition at line 710 of file DifferenceEngine.php. |
|
Compute the length of the Longest Common Subsequence (LCS). This is mostly for diagnostic purposed.
Definition at line 725 of file DifferenceEngine.php. Referenced by _check(). |
|
Get the original set of lines. This reconstructs the $from_lines parameter passed to the constructor.
Definition at line 742 of file DifferenceEngine.php. References $lines. |
|
Compute reversed Diff. SYNOPSIS: $diff = new Diff($lines1, $lines2); $rev = $diff->reverse();
Definition at line 696 of file DifferenceEngine.php. Referenced by _check(). |
|
Definition at line 670 of file DifferenceEngine.php. |