function Diff::Diff in Diff 6
Same name and namespace in other branches
- 5.2 DiffEngine.php \Diff::Diff()
- 5 DiffEngine.php \Diff::Diff()
- 6.2 DiffEngine.php \Diff::Diff()
- 7.2 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.) * @param $to_lines array An array of strings.
1 call to Diff::Diff()
- MappedDiff::MappedDiff in ./
DiffEngine.php - * 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. * *
File
- ./
DiffEngine.php, line 551
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);
}