function 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 drupal/core/lib/Drupal/Component/Diff/DiffEngine.php
Constructor.

File

drupal/core/lib/Drupal/Component/Diff/DiffEngine.php, line 579
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);
}