$_edits
$_edits : array
Array of changes.
This can be used to compute things like case-insensitve diffs, or diffs which ignore changes in white-space.
The original PHP version of this code was written by Geoffrey T. Dairiki dairiki@dairiki.org, and is used/adapted with his permission.
Copyright 2004 Geoffrey T. Dairiki dairiki@dairiki.org Copyright 2004-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
__construct(string $engine, array $params)
Computes a diff between sequences of strings.
string | $engine | Name of the diffing engine to use. 'auto' will automatically select the best. |
array | $params | Parameters to pass to the diffing engine:
|
reverse() : \Horde_Text_Diff
Computes a reversed diff.
Example:
$diff = new Horde_Text_Diff($lines1, $lines2);
$rev = $diff->reverse();
A Diff object representing the inverse of the original diff. Note that we purposely don't return a reference here, since this essentially is a clone() method.