From dd8dad74f47b6068281dd605a04bc2d0b6283423 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 22 Jul 2017 19:23:52 -0400 Subject: Move lexer helper functions to QUtil --- include/qpdf/QUtil.hh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include') diff --git a/include/qpdf/QUtil.hh b/include/qpdf/QUtil.hh index f92cc7fc..eba4ef61 100644 --- a/include/qpdf/QUtil.hh +++ b/include/qpdf/QUtil.hh @@ -157,6 +157,21 @@ namespace QUtil // exception will be thrown. QPDF_DLL RandomDataProvider* getRandomDataProvider(); + + // These routines help the tokenizer recognize certain character + // classes without using ctype, which we avoid because of locale + // considerations. + QPDF_DLL + bool is_hex_digit(char); + + QPDF_DLL + bool is_space(char); + + QPDF_DLL + bool is_digit(char); + + QPDF_DLL + bool is_number(char const*); }; #endif // __QUTIL_HH__ -- cgit v1.2.3-54-g00ecf