1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:57:44 +00:00

AK: Add `GenericLexer::consume_escaped_character()'

...and use it in `consume_and_unescape_string()'.
This commit is contained in:
AnotherTest 2020-10-19 10:05:20 +03:30 committed by Andreas Kling
parent c057225a36
commit 27040e65eb
2 changed files with 18 additions and 13 deletions

View file

@ -52,6 +52,7 @@ public:
bool consume_specific(char);
bool consume_specific(StringView);
bool consume_specific(const char*);
char consume_escaped_character(char escape_char = '\\', const StringView& escape_map = "n\nr\rt\tb\bf\f");
StringView consume(size_t count);
StringView consume_all();
StringView consume_line();