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

Method diff_bisectSplit

Fleece/Support/diff_match_patch.hh:613–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611 */
612 private:
613 static void diff_bisectSplit(const string_t &text1, const string_t &text2, ssize_t x, ssize_t y, clock_t deadline, Diffs& diffs) {
614 string_t text1a = text1.substr(0, x);
615 string_t text2a = text2.substr(0, y);
616 string_t text1b = safeMid(text1, x);
617 string_t text2b = safeMid(text2, y);
618
619 // Compute both diffs serially.
620 diff_main(text1a, text2a, false, deadline, diffs);
621 Diffs diffs_b;
622 diff_main(text1b, text2b, false, deadline, diffs_b);
623 diffs.splice(diffs.end(), diffs_b);
624 }
625
626 /**
627 * Split two texts into a list of strings. Reduce the texts to a string of

Callers

nothing calls this directly

Calls 1

endMethod · 0.45

Tested by

no test coverage detected