diff options
author | Jay Berkenbilt <ejb@ql.org> | 2012-07-21 11:48:13 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2012-07-21 15:06:10 +0200 |
commit | f3e267fce28c58039789379ba3488ad12c20a7f6 (patch) | |
tree | 3c941af787762825af91f19a4a9078d0a266da16 /include | |
parent | 15eaed5c52c85dd97ce5bc829817c5535c527207 (diff) | |
download | qpdf-f3e267fce28c58039789379ba3488ad12c20a7f6.tar.zst |
Move readToken from QPDF to QPDFTokenizer
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFTokenizer.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/qpdf/QPDFTokenizer.hh b/include/qpdf/QPDFTokenizer.hh index 122c193f..8a1bd216 100644 --- a/include/qpdf/QPDFTokenizer.hh +++ b/include/qpdf/QPDFTokenizer.hh @@ -10,6 +10,8 @@ #include <qpdf/DLL.h> +#include <qpdf/InputSource.hh> +#include <qpdf/PointerHolder.hh> #include <string> #include <stdio.h> @@ -122,6 +124,13 @@ class QPDFTokenizer QPDF_DLL bool betweenTokens(); + // Read a token from an input source. Context describes the + // context in which the token is being read and is used in the + // exception thrown if there is an error. + QPDF_DLL + Token readToken(PointerHolder<InputSource> input, + std::string const& context); + private: void reset(); |