Files
Yajbir Singh f1b860b25c
Some checks failed
check / markdownlint (push) Has been cancelled
check / spellchecker (push) Has been cancelled
updated
2025-12-11 19:03:17 +05:30

42 lines
771 B
C++

//========================================================================
//
// 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