MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / patch_make

Method patch_make

3rdparty/diff-match-patch/diff_match_patch.cpp:1624–1639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1622
1623
1624QList<Patch> diff_match_patch::patch_make(const QString &text1,
1625 const QString &text2) {
1626 // Check for null inputs.
1627 if (text1.isNull() || text2.isNull()) {
1628 throw "Null inputs. (patch_make)";
1629 }
1630
1631 // No diffs provided, compute our own.
1632 QList<Diff> diffs = diff_main(text1, text2, true);
1633 if (diffs.size() > 2) {
1634 diff_cleanupSemantic(diffs);
1635 diff_cleanupEfficiency(diffs);
1636 }
1637
1638 return patch_make(text1, diffs);
1639}
1640
1641
1642QList<Patch> diff_match_patch::patch_make(const QList<Diff> &diffs) {

Callers 1

handleAcceptMethod · 0.80

Calls 4

isNullMethod · 0.45
sizeMethod · 0.45
isEmptyMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected