mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 18:15:58 +00:00
AK: Add GenericLexer::remaining.
This is useful for debugging with printf :^).
This commit is contained in:
parent
5b7decc3af
commit
84d276dba0
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue