Skip to content

Commit 8a715a1

Browse files
committed
Even if a correctly mangled string can not contain a line-feed, no ambiguity will be created from allowing a manually quoted line-feed.
1 parent d521bf1 commit 8a715a1

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Source/DFPSR/api/stringAPI.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -798,18 +798,6 @@ String dsr::string_unmangleQuote(const ReadableString& mangledText) {
798798
// Detect bad input
799799
if (c == U'\"') { // Double quote
800800
throwError(U"Unmangled double quote sign detected in string_unmangleQuote!\n", mangledText, U"\n");
801-
} else if (c == U'\a') { // Audible bell
802-
throwError(U"Unmangled audible bell detected in string_unmangleQuote!\n", mangledText, U"\n");
803-
} else if (c == U'\b') { // Backspace
804-
throwError(U"Unmangled backspace detected in string_unmangleQuote!\n", mangledText, U"\n");
805-
} else if (c == U'\f') { // Form feed
806-
throwError(U"Unmangled form feed detected in string_unmangleQuote!\n", mangledText, U"\n");
807-
} else if (c == U'\n') { // Line feed
808-
throwError(U"Unmangled line feed detected in string_unmangleQuote!\n", mangledText, U"\n");
809-
} else if (c == U'\r') { // Carriage return
810-
throwError(U"Unmangled carriage return detected in string_unmangleQuote!\n", mangledText, U"\n");
811-
} else if (c == U'\0') { // Null terminator
812-
throwError(U"Unmangled null terminator detected in string_unmangleQuote!\n", mangledText, U"\n");
813801
} else {
814802
string_appendChar(result, c);
815803
}

0 commit comments

Comments
 (0)