Text_Diff
[ class tree: Text_Diff ] [ index: Text_Diff ] [ all elements ]

Class: Text_MappedDiff

Source Location: /Text_Diff-0.1.0/Diff.php

Class Overview

Text_Diff
   |
   --Text_MappedDiff

$Horde: framework/Text_Diff/Diff.php,v 1.13 2005/05/26 20:26:06 selsky Exp $


Author(s):

Methods


Inherited Variables

Inherited Methods

Class: Text_Diff

Text_Diff::Text_Diff()
Computes diffs between sequences of strings.
Text_Diff::getDiff()
Returns the array of differences.
Text_Diff::getFinal()
Gets the final set of lines.
Text_Diff::getOriginal()
Gets the original set of lines.
Text_Diff::isEmpty()
Checks for an empty diff.
Text_Diff::lcs()
Computes the length of the Longest Common Subsequence (LCS).
Text_Diff::reverse()
Computes a reversed diff.

Class Details

[line 204]
$Horde: framework/Text_Diff/Diff.php,v 1.13 2005/05/26 20:26:06 selsky Exp $


[ Top ]


Method Detail

Text_MappedDiff (Constructor)   [line 222]

Text_MappedDiff Text_MappedDiff( array $from_lines, array $to_lines, array $mapped_from_lines, array $mapped_to_lines)

Computes a diff between sequences of strings.

This can be used to compute things like case-insensitve diffs, or diffs which ignore changes in white-space.


Parameters:

array   $from_lines   —  An array of strings.
array   $to_lines   —  An array of strings.
array   $mapped_from_lines   —  This array should have the same size number of elements as $from_lines. The elements in $mapped_from_lines and $mapped_to_lines are what is actually compared when computing the diff.
array   $mapped_to_lines   —  This array should have the same number of elements as $to_lines.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:16:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.