diff options
Diffstat (limited to 'Build/source/libs/xpdf/xpdf-3.03/xpdf/PSTokenizer.h')
-rw-r--r-- | Build/source/libs/xpdf/xpdf-3.03/xpdf/PSTokenizer.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Build/source/libs/xpdf/xpdf-3.03/xpdf/PSTokenizer.h b/Build/source/libs/xpdf/xpdf-3.03/xpdf/PSTokenizer.h new file mode 100644 index 00000000000..4d5ee97f4dd --- /dev/null +++ b/Build/source/libs/xpdf/xpdf-3.03/xpdf/PSTokenizer.h @@ -0,0 +1,41 @@ +//======================================================================== +// +// PSTokenizer.h +// +// Copyright 2002-2003 Glyph & Cog, LLC +// +//======================================================================== + +#ifndef PSTOKENIZER_H +#define PSTOKENIZER_H + +#include <aconf.h> + +#ifdef USE_GCC_PRAGMAS +#pragma interface +#endif + +#include "gtypes.h" + +//------------------------------------------------------------------------ + +class PSTokenizer { +public: + + PSTokenizer(int (*getCharFuncA)(void *), void *dataA); + ~PSTokenizer(); + + // Get the next PostScript token. Returns false at end-of-stream. + GBool getToken(char *buf, int size, int *length); + +private: + + int lookChar(); + int getChar(); + + int (*getCharFunc)(void *); + void *data; + int charBuf; +}; + +#endif |