Lines Matching defs:diff
32 * diff.text
37 * diff.text
45 for (diff_match_patch.Diff diff : diffs) {
46 parts = diff.text.split("\n", -1);
48 newDiffs.add(diff);
54 newDiffs.add(new diff_match_patch.Diff(diff.operation, parts[i] + "\n"));
57 newDiffs.add(new diff_match_patch.Diff(diff.operation, parts[lengthMinusOne]));
71 diff_match_patch.Diff diff;
75 diff = diffs.get(j);
77 switch (diff.operation) {
79 line = processDiff(diff, lineNums, lines, line, i, delSpan, isLastDiff);
88 if (diff.text.endsWith("\n") || isLastDiff) {
96 line = processDiff(diff, lineNums, lines, line, i, eqlSpan, isLastDiff);
112 diff_match_patch.Diff diff;
116 diff = diffs.get(j);
118 switch (diff.operation) {
120 line = processDiff(diff, lineNums, lines, line, i, insSpan, isLastDiff);
129 if (diff.text.endsWith("\n") || isLastDiff) {
137 line = processDiff(diff, lineNums, lines, line, i, eqlSpan, isLastDiff);
147 * Generate or append a line for a given diff and add it to given collections if necessary.
150 * @param diff
159 public static String processDiff(diff_match_patch.Diff diff, LinkedList<Integer> lineNums,
164 if (diff.text.endsWith("\n") || forceOutputLine) {
167 line += begSpan + diff.text.replace(" ", " ")
172 line += begSpan + diff.text.replace(" ", " ") + endSpan;