Commit f689769ccab2f98924f5e22ed145fdbd041f5e1d
Committed by
Jay Berkenbilt
1 parent
863d95e5
Refactor QPDFTokenizer::readToken
Showing
1 changed file
with
4 additions
and
1 deletions
include/qpdf/QPDFTokenizer.hh
| @@ -204,6 +204,9 @@ class QPDFTokenizer | @@ -204,6 +204,9 @@ class QPDFTokenizer | ||
| 204 | QPDF_DLL | 204 | QPDF_DLL |
| 205 | void expectInlineImage(std::shared_ptr<InputSource> input); | 205 | void expectInlineImage(std::shared_ptr<InputSource> input); |
| 206 | 206 | ||
| 207 | + private: | ||
| 208 | + friend class QPDFParser; | ||
| 209 | + | ||
| 207 | // Read a token from an input source. Context describes the | 210 | // Read a token from an input source. Context describes the |
| 208 | // context in which the token is being read and is used in the | 211 | // context in which the token is being read and is used in the |
| 209 | // exception thrown if there is an error. After a token is read, | 212 | // exception thrown if there is an error. After a token is read, |
| @@ -212,7 +215,7 @@ class QPDFTokenizer | @@ -212,7 +215,7 @@ class QPDFTokenizer | ||
| 212 | // offset" as returned by input->getLastOffset() points to the | 215 | // offset" as returned by input->getLastOffset() points to the |
| 213 | // beginning of the token. Returns false if the token is bad | 216 | // beginning of the token. Returns false if the token is bad |
| 214 | // or if scanning produced an error message for any reason. | 217 | // or if scanning produced an error message for any reason. |
| 215 | - QPDF_DLL | 218 | + |
| 216 | bool nextToken( | 219 | bool nextToken( |
| 217 | InputSource& input, std::string const& context, size_t max_len = 0); | 220 | InputSource& input, std::string const& context, size_t max_len = 0); |
| 218 | 221 |