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

Method patch_make

Fleece/Support/diff_match_patch.hh:1843–1852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1841 */
1842 public:
1843 Patches patch_make(const string_t &text1, const string_t &text2) const {
1844 // No diffs provided, compute our own.
1845 Diffs diffs = diff_main(text1, text2, true);
1846 if (diffs.size() > 2) {
1847 diff_cleanupSemantic(diffs);
1848 diff_cleanupEfficiency(diffs);
1849 }
1850
1851 return patch_make(text1, diffs);
1852 }
1853
1854 /**
1855 * Compute a list of patches to turn text1 into text2.

Callers 1

createStringDeltaMethod · 0.80

Calls 6

PatchClass · 0.85
lengthMethod · 0.80
sizeMethod · 0.45
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected