Class ArcanistDiffUtils
Dumping ground for diff- and diff-algorithm-related miscellany.
Tasks
Methods
public static applyIntralineDiff($str, $intra_stack)
| parameters | wild | $str | |
| wild | $intra_stack | |
| return | wild | | |
This method is not documented.
public static buildLevenshteinDifferenceString($o, $n)
| parameters | wild | $o | |
| wild | $n | |
| return | wild | | |
This method is not documented.
private static collapseIntralineRuns($runs)
| parameters | wild | $runs | |
| return | wild | | |
This method is not documented.
public static generateIntralineDiff($o, $n)
| parameters | wild | $o | |
| wild | $n | |
| return | wild | | |
This method is not documented.
public static generateUTF8IntralineDiff($o, $n)
| parameters | wild | $o | |
| wild | $n | |
| return | wild | | |
This method is not documented.
public static bool isHeuristicBinaryFile($data)
| parameters | wild | $data | |
| return | bool | | If true, the file is almost certainly binary. If false, the file might still be binary but is subtle about it. |
Make a best-effort attempt to determine if a file is definitely binary.
public static renderDifferences($old, $new, $context_lines = 3, $diff_options = "-L 'Old Value' -L 'New Value'")
| parameters | wild | $old | |
| wild | $new | |
| wild | $context_lines | |
| wild | $diff_options | |
| return | wild | | |
This method is not documented.