[ Index ] |
PHP Cross Reference of MyBB |
[Source view] [Print] [Project Stats]
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 |
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. param: string $diff The diff content. param: string $mode The diff mode of the content in $diff. One of return: array List of all diff operations. |
parseUnifiedDiff($diff) X-Ref |
Parses an array containing the unified diff. param: array $diff Array of lines. return: array List of all diff operations. |
parseContextDiff(&$diff) X-Ref |
Parses an array containing the context diff. param: array $diff Array of lines. return: array List of all diff operations. |
Generated: Tue Oct 8 19:19:50 2013 | Cross-referenced by PHPXref 0.7.1 |