src/lib/BackspaceUnescapingProcessor.h
branchv_0
changeset 29 06aaad12c207
parent 28 0e7c57d48d1e
--- a/src/lib/BackspaceUnescapingProcessor.h	Sat Nov 28 18:14:15 2020 +0100
+++ b/src/lib/BackspaceUnescapingProcessor.h	Sat Nov 28 21:09:18 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) {
-	}
-
 };
 
 }