Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-10 10:23:50

0001 //========================================================================
0002 //
0003 // PSTokenizer.h
0004 //
0005 // Copyright 2002-2003 Glyph & Cog, LLC
0006 //
0007 //========================================================================
0008 
0009 //========================================================================
0010 //
0011 // Modified under the Poppler project - http://poppler.freedesktop.org
0012 //
0013 // All changes made under the Poppler project to this file are licensed
0014 // under GPL version 2 or later
0015 //
0016 // Copyright (C) 2006 Scott Turner <scotty1024@mac.com>
0017 //
0018 // To see a description of the changes please see the Changelog file that
0019 // came with your tarball or type make ChangeLog if you are building from git
0020 //
0021 //========================================================================
0022 
0023 #ifndef PSTOKENIZER_H
0024 #define PSTOKENIZER_H
0025 
0026 //------------------------------------------------------------------------
0027 
0028 class PSTokenizer
0029 {
0030 public:
0031     PSTokenizer(int (*getCharFuncA)(void *), void *dataA);
0032     ~PSTokenizer();
0033 
0034     // Get the next PostScript token.  Returns false at end-of-stream.
0035     bool getToken(char *buf, int size, int *length);
0036 
0037 private:
0038     int lookChar();
0039     void consumeChar();
0040     int getChar();
0041 
0042     int (*getCharFunc)(void *);
0043     void *data;
0044     int charBuf;
0045 };
0046 
0047 #endif