\Text_Diff_Mapped
$Horde: framework/Text_Diff/Diff/Mapped.php,v 1.3.2.4 2009/01/06 15:23:41 jan Exp $
Copyright 2007-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.
- Author: Geoffrey T. Dairiki <dairiki@dairiki.org>
Synopsis
class Text_Diff_Mapped
extends Text_Diff
{
- // Inherited members from Text_Diff
- public $_edits;
- // methods
- public void Text_Diff_Mapped()
- // Inherited methods from Text_Diff
- public void Text_Diff()
- public void getDiff()
- public integer countAddedLines()
- public integer countDeletedLines()
- public Text_Diff reverse()
- public boolean isEmpty()
- public integer lcs()
- public array getOriginal()
- public array getFinal()
- public static void trimNewlines()
- public string _getTempDir()
- public void _check()
Hierarchy
Extends
Members
public
- $_edits
—
array
Array of changes.
Methods
public
- Text_Diff_Mapped() — Computes a diff between sequences of strings.
Inherited from Text_Diff
public
- Text_Diff() — Computes diffs between sequences of strings.
- _check() — Checks a diff for validity.
- _getTempDir() — Determines the location of the system temporary directory.
- countAddedLines() — returns the number of new (added) lines in a given diff.
- countDeletedLines() — Returns the number of deleted (removed) lines in a given diff.
- getDiff() — Returns the array of differences.
- getFinal() — Gets the final set of lines.
- getOriginal() — Gets the original set of lines.
- isEmpty() — Checks for an empty diff.
- lcs() — Computes the length of the Longest Common Subsequence (LCS).
- reverse() — Computes a reversed diff.
- trimNewlines() — Removes trailing newlines from a line of text. This is meant to be used with array_walk().