Class Text_MappedDiff

Description

Located in /Text_Diff/Diff.php (line 292)

Text_Diff
   |
   --Text_MappedDiff
Method Summary
 Text_MappedDiff Text_MappedDiff (array $from_lines, array $to_lines, array $mapped_from_lines, array $mapped_to_lines)
Variables

Inherited Variables

Inherited from Text_Diff

Text_Diff::$_edits
Methods
Constructor Text_MappedDiff (line 310)

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.

Text_MappedDiff Text_MappedDiff (array $from_lines, array $to_lines, array $mapped_from_lines, array $mapped_to_lines)
  • 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.

Inherited Methods

Inherited From Text_Diff

 Text_Diff::Text_Diff()
 Text_Diff::countAddedLines()
 Text_Diff::countDeletedLines()
 Text_Diff::getDiff()
 Text_Diff::getFinal()
 Text_Diff::getOriginal()
 Text_Diff::isEmpty()
 Text_Diff::lcs()
 Text_Diff::reverse()
 Text_Diff::trimNewlines()
 Text_Diff::_check()
 Text_Diff::_getTempDir()

Documentation generated on Sun, 30 Jan 2011 05:16:48 +0000 by phpDocumentor 1.4.3