diff options
author | Jay Berkenbilt <ejb@ql.org> | 2009-10-21 02:27:24 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2009-10-21 02:27:24 +0200 |
commit | 748ab301d4f17c77393b08de4ef541b957bde275 (patch) | |
tree | 5801b2c2f64a3ea3873bfd46fb3ac0cfeb9cc411 /include/qpdf/QPDFTokenizer.hh | |
parent | eff113fa6891387fc16c179ab5ef6f15674513ec (diff) | |
download | qpdf-748ab301d4f17c77393b08de4ef541b957bde275.tar.zst |
go back to function-based DLL_EXPORT rather than class-based to avoid creation of export files with executables under msvc
git-svn-id: svn+q:///qpdf/trunk@849 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'include/qpdf/QPDFTokenizer.hh')
-rw-r--r-- | include/qpdf/QPDFTokenizer.hh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/qpdf/QPDFTokenizer.hh b/include/qpdf/QPDFTokenizer.hh index a48a78d6..b93df068 100644 --- a/include/qpdf/QPDFTokenizer.hh +++ b/include/qpdf/QPDFTokenizer.hh @@ -13,7 +13,7 @@ #include <string> #include <stdio.h> -class DLL_EXPORT QPDFTokenizer +class QPDFTokenizer { public: enum token_type_e @@ -84,6 +84,7 @@ class DLL_EXPORT QPDFTokenizer std::string error_message; }; + DLL_EXPORT QPDFTokenizer(); // PDF files with version < 1.2 allowed the pound character @@ -91,6 +92,7 @@ class DLL_EXPORT QPDFTokenizer // character was allowed only when followed by two hexadecimal // digits. This method should be called when parsing a PDF file // whose version is older than 1.2. + DLL_EXPORT void allowPoundAnywhereInName(); // Mode of operation: @@ -101,19 +103,23 @@ class DLL_EXPORT QPDFTokenizer // It these are called when a token is available, an exception // will be thrown. + DLL_EXPORT void presentCharacter(char ch); + DLL_EXPORT void presentEOF(); // If a token is available, return true and initialize token with // the token, unread_char with whether or not we have to unread // the last character, and if unread_char, ch with the character // to unread. + DLL_EXPORT bool getToken(Token& token, bool& unread_char, char& ch); // This function returns true of the current character is between // tokens (i.e., white space that is not part of a string) or is // part of a comment. A tokenizing filter can call this to // determine whether to output the character. + DLL_EXPORT bool betweenTokens(); private: |