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

Class Diff

3rdparty/diff-match-patch/diff_match_patch.h:77–97  ·  view source on GitHub ↗

* Class representing one diff operation. */

Source from the content-addressed store, hash-verified

75* Class representing one diff operation.
76*/
77class Diff {
78public:
79 Operation operation;
80 // One of: INSERT, DELETE or EQUAL.
81 QString text;
82 // The text associated with this diff operation.
83
84 /**
85 * Constructor. Initializes the diff with the provided values.
86 * @param operation One of INSERT, DELETE or EQUAL.
87 * @param text The text being applied.
88 */
89 Diff(Operation _operation, const QString &_text);
90 Diff();
91 inline bool isNull() const;
92 QString toString() const;
93 bool operator==(const Diff &d) const;
94 bool operator!=(const Diff &d) const;
95
96 static QString strOperation(Operation op);
97};
98
99
100/**

Callers 15

diff_mainMethod · 0.70
diff_computeMethod · 0.70
diff_lineModeMethod · 0.70
diff_bisectMethod · 0.70
diff_cleanupSemanticMethod · 0.70
diff_cleanupMergeMethod · 0.70
foreachFunction · 0.70
patch_addContextMethod · 0.70
patch_addPaddingMethod · 0.70
patch_splitMaxMethod · 0.70
patch_fromTextMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected