MCPcopy Create free account
hub / github.com/couchbase/fleece / diff_text1

Method diff_text1

Fleece/Support/diff_match_patch.hh:1463–1471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1461 */
1462 public:
1463 static string_t diff_text1(const Diffs &diffs) {
1464 string_t text;
1465 for (typename Diffs::const_iterator cur_diff = diffs.begin(); cur_diff != diffs.end(); ++cur_diff) {
1466 if ((*cur_diff).operation != INSERT) {
1467 text += (*cur_diff).text;
1468 }
1469 }
1470 return text;
1471 }
1472
1473 /**
1474 * Compute and return the destination text (all equalities and insertions).

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected