From dca70f13e77a5b20ba4f438350a67e48baa796d0 Mon Sep 17 00:00:00 2001 From: m-holger Date: Thu, 29 Sep 2022 12:52:19 +0100 Subject: Add method QPDFTokenizer::Token::isInteger --- include/qpdf/QPDFTokenizer.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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; -- cgit v1.2.3-54-g00ecf