diff -r 596a724fbb83 -r f0bf2755249f src/lib/BackspaceUnescapingProcessor.h --- a/src/lib/BackspaceUnescapingProcessor.h Sat Nov 28 20:59:29 2020 +0100 +++ b/src/lib/BackspaceUnescapingProcessor.h Sat Nov 28 21:07:13 2020 +0100 @@ -30,6 +30,14 @@ class BackspaceUnescapingProcessor : public UnescapingProcessor { private: + /** + * By default it is set to true, thus no unrecognized escape sequences may left after this stage. + * Setting this to false is dangerous and may lead to errors and ambiguous behavior. + * It should be used only as a last resort. + * Because both "\\ \xxx" and "\ \xxx" will be converted to "\ \xxx" and the information will be lost. + * So, it is usually better to keep the "\" escaped as "\\" and process both the escaped backspaces and unrecognized escape sequences later. + */ + const bool lastEscaphingPhase = true; public: @@ -51,17 +59,6 @@ return result.str(); } - /** - * @param lastEscaphingPhase whether this is final unescaping stage. - * By default it is set to true, thus no unrecognized escape sequences may left after this stage. - * Setting this to false is dangerous and may lead to errors and ambiguous behavior. - * It should be used only as a last resort. - * Because both "\\ \xxx" and "\ \xxx" will be converted to "\ \xxx" and the information will be lost. - * So, it is usually better to keep the "\" escaped as "\\" and process both the escaped backspaces and unrecognized escape sequences later. - */ - BackspaceUnescapingProcessor(bool lastEscaphingPhase = true) : lastEscaphingPhase(lastEscaphingPhase) { - } - }; }