diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-10-05 20:30:27 +0200 |
---|---|---|
committer | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2023-01-07 21:24:51 +0100 |
commit | f689769ccab2f98924f5e22ed145fdbd041f5e1d (patch) | |
tree | 1f54420d108ccb206b1239e097df3610205b2264 | |
parent | 863d95e5676b0c03539c1cd9bacb31039d53b433 (diff) | |
download | qpdf-f689769ccab2f98924f5e22ed145fdbd041f5e1d.tar.zst |
Refactor QPDFTokenizer::readToken
-rw-r--r-- | include/qpdf/QPDFTokenizer.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/qpdf/QPDFTokenizer.hh b/include/qpdf/QPDFTokenizer.hh index db95eff6..ec9e66c7 100644 --- a/include/qpdf/QPDFTokenizer.hh +++ b/include/qpdf/QPDFTokenizer.hh @@ -204,6 +204,9 @@ class QPDFTokenizer QPDF_DLL void expectInlineImage(std::shared_ptr<InputSource> input); + private: + friend class QPDFParser; + // 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. After a token is read, @@ -212,7 +215,7 @@ class QPDFTokenizer // offset" as returned by input->getLastOffset() points to the // beginning of the token. Returns false if the token is bad // or if scanning produced an error message for any reason. - QPDF_DLL + bool nextToken( InputSource& input, std::string const& context, size_t max_len = 0); |