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:
parent
5b7decc3af
commit
84d276dba0
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue