You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
771 B
42 lines
771 B
//========================================================================
|
|
//
|
|
// 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
|