* Display a human-readable version of this Diff. * @return text version. */
| 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? |
no test coverage detected