You are here

function Diff::Diff in Diff 7.2

Same name and namespace in other branches
  1. 5.2 DiffEngine.php \Diff::Diff()
  2. 5 DiffEngine.php \Diff::Diff()
  3. 6.2 DiffEngine.php \Diff::Diff()
  4. 6 DiffEngine.php \Diff::Diff()

Constructor. Computes diff between sequences of strings.

Parameters

$from_lines array An array of strings.: (Typically these are lines from a file.)

$to_lines array An array of strings.:

1 call to Diff::Diff()
MappedDiff::MappedDiff in ./DiffEngine.php
Constructor.

File

./DiffEngine.php, line 580
A PHP diff engine for phpwiki. (Taken from phpwiki-1.3.3)

Class

Diff
Class representing a 'diff' between two sequences of strings. @todo document @private @subpackage DifferenceEngine

Code

function Diff($from_lines, $to_lines) {
  $eng = new _DiffEngine();
  $this->edits = $eng
    ->diff($from_lines, $to_lines);

  //$this->_check($from_lines, $to_lines);
}