Comments: on this page. Click to read or post your own.

Class MappedDiff

Description

Computes diff between sequences of strings.

Located in /cms/code/Diff.php (line 781)

Diff
   |
   --MappedDiff
Method Summary
MappedDiff MappedDiff ($from_lines $from_lines, $to_lines $to_lines, $mapped_from_lines $mapped_from_lines, $mapped_to_lines $mapped_to_lines)
Variables

Inherited Variables

Inherited from Diff

Diff::$edits
Methods
Constructor MappedDiff (line 807)

Constructor.

Computes diff between sequences of strings.

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

MappedDiff MappedDiff ($from_lines $from_lines, $to_lines $to_lines, $mapped_from_lines $mapped_from_lines, $mapped_to_lines $mapped_to_lines)
  • $from_lines $from_lines: array An array of strings. (Typically these are lines from a file.)
  • $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.

Inherited Methods

Inherited From Diff

Diff::Diff()
Diff::compareHTML()
Diff::finaltext()
Diff::getHTMLChunks()
Diff::isEmpty()
Diff::lcs()
Diff::orig()
Diff::reverse()
Diff::_check()
blog comments powered by Disqus

Documentation generated on Tue, 07 Oct 2008 15:56:29 +1300 by phpDocumentor 1.3.2