Compute and return the source text (all equalities and deletions). @param diffs LinkedList of Diff objects. @return Source text.
(LinkedList<Diff> diffs)
| 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). |
no test coverage detected