diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-04-01 20:58:27 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-01 21:24:45 +0100 |
commit | 086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch) | |
tree | 02b3699a66735ef806d9b46353491f18f8e4e7b4 /AK/GenericLexer.h | |
parent | 0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff) | |
download | serenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip |
Everywhere: Run clang-format
Diffstat (limited to 'AK/GenericLexer.h')
-rw-r--r-- | AK/GenericLexer.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/AK/GenericLexer.h b/AK/GenericLexer.h index 57649f9840..5db2bdc5ea 100644 --- a/AK/GenericLexer.h +++ b/AK/GenericLexer.h @@ -43,7 +43,7 @@ public: return true; } - constexpr bool next_is(const char* expected) const + constexpr bool next_is(char const* expected) const { for (size_t i = 0; expected[i] != '\0'; ++i) if (peek(i) != expected[i]) @@ -84,13 +84,13 @@ public: } #ifndef KERNEL - bool consume_specific(const String& next) + bool consume_specific(String const& next) { return consume_specific(StringView { next }); } #endif - constexpr bool consume_specific(const char* next) + constexpr bool consume_specific(char const* next) { return consume_specific(StringView { next }); } @@ -114,7 +114,7 @@ public: StringView consume_all(); StringView consume_line(); StringView consume_until(char); - StringView consume_until(const char*); + StringView consume_until(char const*); StringView consume_until(StringView); StringView consume_quoted_string(char escape_char = 0); #ifndef KERNEL @@ -144,7 +144,7 @@ public: ignore(); } - constexpr void ignore_until(const char* stop) + constexpr void ignore_until(char const* stop) { while (!is_eof() && !next_is(stop)) { ++m_index; |