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

Method toString

Fleece/Support/diff_match_patch.hh:128–134  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

126 * @return text version.
127 */
128 string_t toString() const {
129 string_t prettyText = text;
130 // Replace linebreaks with Pilcrow signs.
131 for (typename string_t::iterator i = prettyText.begin(); i != prettyText.end(); ++i)
132 if (traits::to_wchar(*i) == L'\n') *i = traits::from_wchar(L'\u00b6');
133 return traits::cs(L"Diff(") + strOperation(operation) + traits::cs(L",\"") + prettyText + traits::cs(L"\")");
134 }
135
136 /**
137 * Is this Diff equivalent to another Diff?

Callers 1

patch_toTextMethod · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected