General API for generating and formatting diffs - the differences between two sequences of strings.
The original PHP version of this code was written by Geoffrey T. Dairiki <dairiki@dairiki.org>, and is used/adapted with his permission.
$Horde: framework/Text_Diff/Diff.php,v 1.11.2.12 2009/01/06 15:23:41 jan Exp $
Copyright 2004 Geoffrey T. Dairiki <dairiki@dairiki.org> Copyright 2004-2009 The Horde Project (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://opensource.org/licenses/lgpl-license.php.
Located in /Text_Diff/Diff.php (line 20)
Class | Description |
---|---|
![]() |
|
![]() |
A class for computing three way diffs. |
![]() |
$Horde: framework/Text_Diff/Diff/Mapped.php,v 1.3.2.4 2009/01/06 15:23:41 jan Exp $ |
![]() |
A class for computing three way diffs. |
Determines the location of the system temporary directory.
Computes diffs between sequences of strings.
returns the number of new (added) lines in a given diff.
Returns the number of deleted (removed) lines in a given diff.
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, 30 Jan 2011 05:16:47 +0000 by phpDocumentor 1.4.3