aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-09-29 13:52:19 +0200
committerJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-11-20 17:55:02 +0100
commitdca70f13e77a5b20ba4f438350a67e48baa796d0 (patch)
tree2ab2ada7758e1bfbbb3f6b085df3473e96739f84 /include
parente9980efec87a7a678a1a00cfaf8fc60263c54d24 (diff)
downloadqpdf-dca70f13e77a5b20ba4f438350a67e48baa796d0.tar.zst
Add method QPDFTokenizer::Token::isInteger
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;