diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-09-29 15:33:11 +0200 |
---|---|---|
committer | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2022-11-20 17:55:02 +0100 |
commit | 34a6f8938f0e6d55eeb9f37c0ef23e02fec88932 (patch) | |
tree | 0815d2e295f7a8e44d9e76ae8238db5c151bb683 /include | |
parent | dca70f13e77a5b20ba4f438350a67e48baa796d0 (diff) | |
download | qpdf-34a6f8938f0e6d55eeb9f37c0ef23e02fec88932.tar.zst |
Add methods QPDFTokenizer::Token::isWord
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; |