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

Method diff_text1

src/burp/Utils/diff_match_patch.java:1386–1394  ·  view source on GitHub ↗

Compute and return the source text (all equalities and deletions). @param diffs LinkedList of Diff objects. @return Source text.

(LinkedList<Diff> diffs)

Source from the content-addressed store, hash-verified

1384 * @return Source text.
1385 */
1386 public String diff_text1(LinkedList<Diff> diffs) {
1387 StringBuilder text = new StringBuilder();
1388 for (Diff aDiff : diffs) {
1389 if (aDiff.operation != Operation.INSERT) {
1390 text.append(aDiff.text);
1391 }
1392 }
1393 return text.toString();
1394 }
1395
1396 /**
1397 * Compute and return the destination text (all equalities and insertions).

Callers 3

patch_makeMethod · 0.95
patch_applyMethod · 0.95
patch_splitMaxMethod · 0.95

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected