[ Index ]

PHP Cross Reference of MyBB 1.8.38

title

Body

[close]

/inc/3rdparty/diff/Diff/Engine/ -> String.php (summary)

Parses unified or context diffs output from eg. the diff utility.

Author: Örjan Persson <o@42mm.org>
File Size: 254 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Horde_Text_Diff_Engine_String:: (3 methods):
  diff()
  parseUnifiedDiff()
  parseContextDiff()


Class: Horde_Text_Diff_Engine_String  - X-Ref

diff($diff, $mode = 'autodetect')   X-Ref
Parses a unified or context diff.
First param contains the whole diff and the second can be used to force
a specific diff type. If the second parameter is 'autodetect', the
diff will be examined to find out which type of diff this is.return: array  List of all diff operations.
param: string $diff  The diff content.
param: string $mode  The diff mode of the content in $diff. One of

parseUnifiedDiff($diff)   X-Ref
Parses an array containing the unified diff.
return: array  List of all diff operations.
param: array $diff  Array of lines.

parseContextDiff(&$diff)   X-Ref
Parses an array containing the context diff.
return: array  List of all diff operations.
param: array $diff  Array of lines.



2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup Cross-referenced by PHPXref