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

Class: Text_MappedDiff

Source Location: /Text_Diff-0.0.2/Diff.php

Class Overview

Text_Diff
   |
   --Text_MappedDiff

$Horde: framework/Text_Diff/Diff.php,v 1.5 2004/03/19 18:53:11 chuck Exp $


Author(s):

Methods


Inherited Variables

Inherited Methods

Class: Text_Diff

Text_Diff::Text_Diff()
Computes diff between sequences of strings.
( )
Get the final set of lines.
Text_Diff::getDiff()
Return the array of differences.
Text_Diff::isEmpty()
Check for empty diff.
Text_Diff::lcs()
Compute the length of the Longest Common Subsequence (LCS).
Text_Diff::orig()
Get the original set of lines.
Text_Diff::reverse()
Compute reversed diff.

Class Details

[line 203]
$Horde: framework/Text_Diff/Diff.php,v 1.5 2004/03/19 18:53:11 chuck Exp $


[ Top ]


Method Detail

Text_MappedDiff (Constructor)   [line 221]

Text_MappedDiff Text_MappedDiff( $from_lines $from_lines, $to_lines $to_lines, $mapped_from_lines $mapped_from_lines, $mapped_to_lines $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:

$from_lines   $from_lines   —  array An array of strings.
$to_lines   $to_lines   —  array An array of strings.
$mapped_from_lines   $mapped_from_lines   —  array 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.
$mapped_to_lines   $mapped_to_lines   —  array This array should have the same number of elements as $to_lines.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 10:15:12 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.