diff options
author | Jay Berkenbilt <ejb@ql.org> | 2017-07-23 01:23:52 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2017-07-27 19:59:56 +0200 |
commit | dd8dad74f47b6068281dd605a04bc2d0b6283423 (patch) | |
tree | db7d72b522591b4f47bf44569713dc9752416b63 /include/qpdf | |
parent | 0a745021e7d6676ded2a344134b68b180fb3be60 (diff) | |
download | qpdf-dd8dad74f47b6068281dd605a04bc2d0b6283423.tar.zst |
Move lexer helper functions to QUtil
Diffstat (limited to 'include/qpdf')
-rw-r--r-- | include/qpdf/QUtil.hh | 15 |
1 files changed, 15 insertions, 0 deletions
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__ |