blob: 4d5ee97f4ddd7fc1ba5c6531b5009a7be8e2e10f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
|