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

Method toString

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

* Display a human-readable version of this Diff. * @return text version */

Source from the content-addressed store, hash-verified

62 * @return text version
63 */
64QString Diff::toString() const {
65 QString prettyText = text;
66 // Replace linebreaks with Pilcrow signs.
67 prettyText.replace('\n', L'\u00b6');
68 return QString("Diff(") + strOperation(operation) + QString(",\"")
69 + prettyText + QString("\")");
70}
71
72/**
73 * Is this Diff equivalent to another Diff?

Callers 2

diff_lineModeMethod · 0.45
foreachFunction · 0.45

Calls 3

numberClass · 0.85
QStringClass · 0.50
replaceMethod · 0.45

Tested by

no test coverage detected