mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
AK: Add `GenericLexer::consume_escaped_character()'
...and use it in `consume_and_unescape_string()'.
This commit is contained in:
parent
c057225a36
commit
27040e65eb
Notes:
sideshowbarker
2024-07-19 01:47:49 +09:00
Author: https://github.com/alimpfard
Commit: 27040e65eb
Pull-request: https://github.com/SerenityOS/serenity/pull/3797
Reviewed-by: https://github.com/benit8
2 changed files with 18 additions and 13 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue