diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h index e27968fd..88bbf480 100644 --- a/src/common.h +++ b/src/common.h @@ -825,6 +825,9 @@ wcstring escape_string(const wcstring &in, escape_flags_t flags); character set. */ +/** Given a null terminated string starting with a backslash, read the escape as if it is unquoted, appending to result. Return the number of characters consumed, or 0 on error */ +size_t read_unquoted_escape(const wchar_t *input, wcstring *result, bool allow_incomplete, bool unescape_special); + /** Unescapes a string in-place. A true result indicates the string was unescaped, a false result indicates the string was unmodified. */ bool unescape_string_in_place(wcstring *str, unescape_flags_t escape_special); |