add a "matches()" method to the Tokenizer and ValueTokenizer classes using utils::strmatch()
This commit is contained in:
@ -46,6 +46,7 @@ class Tokenizer {
|
||||
void skip(int n = 1);
|
||||
bool has_next() const;
|
||||
bool contains(const std::string &str) const;
|
||||
bool matches(const std::string &str) const;
|
||||
std::string next();
|
||||
|
||||
size_t count();
|
||||
@ -119,6 +120,7 @@ class ValueTokenizer {
|
||||
|
||||
bool has_next() const;
|
||||
bool contains(const std::string &value) const;
|
||||
bool matches(const std::string &str) const;
|
||||
void skip(int ntokens = 1);
|
||||
|
||||
size_t count();
|
||||
|
||||
Reference in New Issue
Block a user