beta-0.89.2
[luatex.git] / source / libs / poppler / poppler-src / poppler / PSTokenizer.h
blobfc2f053d3f2f50290666ffc15cf0ac7914c1521d
1 //========================================================================
2 //
3 // PSTokenizer.h
4 //
5 // Copyright 2002-2003 Glyph & Cog, LLC
6 //
7 //========================================================================
9 //========================================================================
11 // Modified under the Poppler project - http://poppler.freedesktop.org
13 // All changes made under the Poppler project to this file are licensed
14 // under GPL version 2 or later
16 // Copyright (C) 2006 Scott Turner <scotty1024@mac.com>
18 // To see a description of the changes please see the Changelog file that
19 // came with your tarball or type make ChangeLog if you are building from git
21 //========================================================================
23 #ifndef PSTOKENIZER_H
24 #define PSTOKENIZER_H
26 #ifdef USE_GCC_PRAGMAS
27 #pragma interface
28 #endif
30 #include "goo/gtypes.h"
32 //------------------------------------------------------------------------
34 class PSTokenizer {
35 public:
37 PSTokenizer(int (*getCharFuncA)(void *), void *dataA);
38 ~PSTokenizer();
40 // Get the next PostScript token. Returns false at end-of-stream.
41 GBool getToken(char *buf, int size, int *length);
43 private:
45 int lookChar();
46 void consumeChar();
47 int getChar();
49 int (*getCharFunc)(void *);
50 void *data;
51 int charBuf;
54 #endif