Text_Diff
General API for generating and formatting diffs - the differences between two sequences of strings.
The PHP diff code used in this package was originally written by Geoffrey T. Dairiki and is used with his permission.
$Horde: framework/Text_Diff/Diff.php,v 1.17 2006/02/06 00:16:09 jan Exp $
Located in /sources/diff.php (line 83)
| Class | Description |
|---|---|
| Text_MappedDiff | $Horde: framework/Text_Diff/Diff.php,v 1.17 2006/02/06 00:16:09 jan Exp $ |
| Text_Diff3 | A class for computing three way diffs. |
Computes diffs between sequences of strings.
Returns the array of differences.
Gets the final set of lines.
This reconstructs the $to_lines parameter passed to the constructor.
Gets the original set of lines.
This reconstructs the $from_lines parameter passed to the constructor.
Checks for an empty diff.
Computes the length of the Longest Common Subsequence (LCS).
This is mostly for diagnostic purposes.
Removes trailing newlines from a line of text. This is meant to be used with array_walk().
Checks a diff for validity.
This is here only for debugging purposes.
Documentation generated on Sun, 02 Jan 2011 23:13:00 +0000 by phpDocumentor 1.4.3