[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/Text/Diff/Engine/ -> shell.php (summary)

(no description)

File Size: 162 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Text_Diff_Engine_shell:: (2 methods):
  diff()
  _getLines()


Class: Text_Diff_Engine_shell  - X-Ref

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.

diff($from_lines, $to_lines)   X-Ref
Returns the array of differences.

return: array all changes made (array with Text_Diff_Op_* objects)
param: array $from_lines lines of text from old file
param: array $to_lines   lines of text from new file

_getLines(&$text_lines, &$line_no, $end = false)   X-Ref
Get lines from either the old or new text

return: array The chopped lines
param: array $text_lines Either $from_lines or $to_lines (passed by reference).
param: int   $line_no    Current line number (passed by reference).
param: int   $end        Optional end line, when we want to chop more



Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1