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
Notes: sideshowbarker 2024-07-19 02:13:32 +09:00

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;