aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-09-29 15:33:11 +0200
committerJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-11-20 17:55:02 +0100
commit34a6f8938f0e6d55eeb9f37c0ef23e02fec88932 (patch)
tree0815d2e295f7a8e44d9e76ae8238db5c151bb683 /include
parentdca70f13e77a5b20ba4f438350a67e48baa796d0 (diff)
downloadqpdf-34a6f8938f0e6d55eeb9f37c0ef23e02fec88932.tar.zst
Add methods QPDFTokenizer::Token::isWord
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFTokenizer.hh10
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;