1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:37:35 +00:00

AK: Add GenericLexer::remaining.

This is useful for debugging with printf :^).
This commit is contained in:
asynts 2020-09-25 13:10:36 +02:00 committed by Andreas Kling
parent 5b7decc3af
commit 84d276dba0

View file

@ -41,6 +41,8 @@ public:
size_t tell() const { return m_index; }
size_t tell_remaining() const { return m_input.length() - m_index; }
StringView remaining() const { return m_input.substring_view(m_index); }
bool is_eof() const;
char peek(size_t offset = 0) const;