1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:17:34 +00:00

AK: Add a consume_until(StringView) overload to GenericLexer

This allows us to skip a strlen call.
This commit is contained in:
Idan Horowitz 2022-01-24 23:25:53 +02:00 committed by Ali Mohammad Pur
parent 10b25d2a57
commit d49d2c7ec4
3 changed files with 18 additions and 1 deletions

View file

@ -113,6 +113,7 @@ public:
StringView consume_line();
StringView consume_until(char);
StringView consume_until(const char*);
StringView consume_until(StringView);
StringView consume_quoted_string(char escape_char = 0);
String consume_and_unescape_string(char escape_char = '\\');