MediaWiki  REL1_22
MappedDiff Class Reference
Inheritance diagram for MappedDiff:
Collaboration diagram for MappedDiff:

List of all members.

Public Member Functions

 __construct ($from_lines, $to_lines, $mapped_from_lines, $mapped_to_lines)
 Constructor.

Detailed Description

Todo:
document, bad name.
Access:
private

Definition at line 804 of file DairikiDiff.php.


Constructor & Destructor Documentation

MappedDiff::__construct ( from_lines,
to_lines,
mapped_from_lines,
mapped_to_lines 
)

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.

Parameters:
$from_linesarray An array of strings. (Typically these are lines from a file.)
$to_linesarray An array of strings.
$mapped_from_linesarray 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_linesarray This array should have the same number of elements as $to_lines.

Definition at line 828 of file DairikiDiff.php.

References edits, wfProfileIn(), and wfProfileOut().


The documentation for this class was generated from the following file: