Util: Add two functions to GenericLexer

- tellRemaining
- consumeSpecific
This commit is contained in:
Riyyi
2022-07-22 01:48:14 +02:00
parent dd209a2609
commit 9b3489676e
2 changed files with 20 additions and 1 deletions
+2
View File
@@ -21,6 +21,7 @@ public:
// Position
size_t tell() const;
size_t tellRemaining() const;
bool isEOF() const;
// Access
@@ -32,6 +33,7 @@ public:
void ignore(size_t count = 1);
void retreat(size_t count = 1);
char consume();
bool consumeSpecific(const char& character);
protected:
size_t m_index { 0 };