[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

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.

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

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

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
return: array The chopped lines



Generated: Sat Nov 23 20:47:33 2019 Cross-referenced by PHPXref 0.7