aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QPDFTokenizer.hh
diff options
context:
space:
mode:
Diffstat (limited to 'include/qpdf/QPDFTokenizer.hh')
-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;