From f3e267fce28c58039789379ba3488ad12c20a7f6 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 21 Jul 2012 05:48:13 -0400 Subject: Move readToken from QPDF to QPDFTokenizer --- include/qpdf/QPDFTokenizer.hh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') 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 +#include +#include #include #include @@ -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 input, + std::string const& context); + private: void reset(); -- cgit v1.2.3-54-g00ecf