blob: fa6d4c2795f91795feb927fd379a2c778d14892f [file] [log] [blame]
//========================================================================
//
// PSTokenizer.h
//
// Copyright 2002-2003 Glyph & Cog, LLC
//
//========================================================================
#ifndef PSTOKENIZER_H
#define PSTOKENIZER_H
#ifdef USE_GCC_PRAGMAS
#pragma interface
#endif
#include "goo/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();
void consumeChar();
int getChar();
int (*getCharFunc)(void *);
void *data;
int charBuf;
};
#endif