Class used internally by Diff to actually compute the diffs.
This class uses the Unix diff program via shell_exec to compute the
differences between the two input arrays.
Copyright 2007-2010 The Horde Project (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://opensource.org/licenses/lgpl-license.php.
| author | Milian Wolff |
|---|---|
| package | Text_Diff |
| since | 0.3.0 |
_getLines(array $text_lines, integer $line_no, integer $end = false) : array
| access | private |
|---|
arrayEither $from_lines or $to_lines (passed by reference).
integerCurrent line number (passed by reference).
integerOptional end line, when we want to chop more than one line.
arrayThe chopped linesdiff(array $from_lines, array $to_lines) : array
arraylines of text from old file
arraylines of text from new file
arrayall changes made (array with Text_Diff_Op_* objects)$_diffCommand : string
'diff'