mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 10:58:58 +00:00
Refactor QPDFTokenizer::readToken
This commit is contained in:
parent
863d95e567
commit
f689769cca
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user