diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFTokenizer.hh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/qpdf/QPDFTokenizer.hh b/include/qpdf/QPDFTokenizer.hh index 3f5e5206..0fd34fb9 100644 --- a/include/qpdf/QPDFTokenizer.hh +++ b/include/qpdf/QPDFTokenizer.hh @@ -112,6 +112,16 @@ class QPDFTokenizer { return this->type == tt_integer; } + bool + isWord() const + { + return this->type == tt_word; + } + bool + isWord(std::string const& value) const + { + return this->type == tt_word && this->value == value; + } private: token_type_e type; |