MCPcopy Create free account
hub / github.com/Lotus6/AutoRepeater / diff_text2

Method diff_text2

src/burp/Utils/diff_match_patch.java:1402–1410  ·  view source on GitHub ↗

Compute and return the destination text (all equalities and insertions). @param diffs LinkedList of Diff objects. @return Destination text.

(LinkedList<Diff> diffs)

Source from the content-addressed store, hash-verified

1400 * @return Destination text.
1401 */
1402 public String diff_text2(LinkedList<Diff> diffs) {
1403 StringBuilder text = new StringBuilder();
1404 for (Diff aDiff : diffs) {
1405 if (aDiff.operation != Operation.DELETE) {
1406 text.append(aDiff.text);
1407 }
1408 }
1409 return text.toString();
1410 }
1411
1412 /**
1413 * Compute the Levenshtein distance; the number of inserted, deleted or

Callers 2

patch_applyMethod · 0.95
patch_splitMaxMethod · 0.95

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected