aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFTokenizer.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/qpdf/QPDFTokenizer.hh b/include/qpdf/QPDFTokenizer.hh
index 4727dac4..3f5e5206 100644
--- a/include/qpdf/QPDFTokenizer.hh
+++ b/include/qpdf/QPDFTokenizer.hh
@@ -107,6 +107,11 @@ class QPDFTokenizer
(this->type != tt_bad) && (this->type == rhs.type) &&
(this->value == rhs.value));
}
+ bool
+ isInteger() const
+ {
+ return this->type == tt_integer;
+ }
private:
token_type_e type;