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

Method diff_text2

Fleece/Support/diff_match_patch.hh:1479–1487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1477 */
1478 public:
1479 static string_t diff_text2(const Diffs &diffs) {
1480 string_t text;
1481 for (typename Diffs::const_iterator cur_diff = diffs.begin(); cur_diff != diffs.end(); ++cur_diff) {
1482 if ((*cur_diff).operation != DELETE) {
1483 text += (*cur_diff).text;
1484 }
1485 }
1486 return text;
1487 }
1488
1489 /**
1490 * Compute the Levenshtein distance; the number of inserted, deleted or

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected