[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 248 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Text_Diff_Engine_string:: (3 methods):
diff()
parseUnifiedDiff()
parseContextDiff()
Class: Text_Diff_Engine_string - X-Ref
Parses unified or context diffs output from eg. the diff utility.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 : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |