mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 13:30:31 +00:00
AK: Add GenericLexer::remaining.
This is useful for debugging with printf :^).
This commit is contained in:
parent
5b7decc3af
commit
84d276dba0
Notes:
sideshowbarker
2024-07-19 02:13:32 +09:00
Author: https://github.com/asynts Commit: https://github.com/SerenityOS/serenity/commit/84d276dba0d Pull-request: https://github.com/SerenityOS/serenity/pull/3597 Reviewed-by: https://github.com/benit8
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…
Reference in a new issue