ona  18.1.1
About: OpenNetAdmin provides a database managed inventory of your IP network (with Web and CLI interface).
  Fossies Dox: ona-18.1.1.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

MappedDiff Class Reference
Inheritance diagram for MappedDiff:
[legend]
Collaboration diagram for MappedDiff:
[legend]

Public Member Functions

 MappedDiff ($from_lines, $to_lines, $mapped_from_lines, $mapped_to_lines)
 
- Public Member Functions inherited from Diff
 Diff ($from_lines, $to_lines)
 
 reverse ()
 
 isEmpty ()
 
 lcs ()
 
 orig ()
 
 closing ()
 
 _check ($from_lines, $to_lines)
 

Additional Inherited Members

- Public Attributes inherited from Diff
 $edits
 

Detailed Description

FIXME: bad name.

Definition at line 627 of file DifferenceEngine.php.

Member Function Documentation

◆ MappedDiff()

MappedDiff::MappedDiff (   $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 653 of file DifferenceEngine.php.

References Diff\$edits, and Diff\Diff().

Referenced by WordLevelDiff\WordLevelDiff().


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