浏览代码

AK: Add GenericLexer::remaining.

This is useful for debugging with printf :^).
asynts 4 年之前
父节点
当前提交
84d276dba0
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      AK/GenericLexer.h

+ 2 - 0
AK/GenericLexer.h

@@ -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;