source: trunk/poppler/mypoppler/poppler/PSTokenizer.h @ 257

Last change on this file since 257 was 257, checked in by Eugene Romanenko, 13 years ago

PDF plugin: Poppler library updated to version 0.10.0

File size: 1.3 KB
RevLine 
[2]1//========================================================================
2//
3// PSTokenizer.h
4//
5// Copyright 2002-2003 Glyph & Cog, LLC
6//
7//========================================================================
8
[257]9//========================================================================
10//
11// Modified under the Poppler project - http://poppler.freedesktop.org
12//
13// All changes made under the Poppler project to this file are licensed
14// under GPL version 2 or later
15//
16// Copyright (C) 2006 Scott Turner <scotty1024@mac.com>
17//
18// To see a description of the changes please see the Changelog file that
19// came with your tarball or type make ChangeLog if you are building from git
20//
21//========================================================================
22
[2]23#ifndef PSTOKENIZER_H
24#define PSTOKENIZER_H
25
26#ifdef USE_GCC_PRAGMAS
27#pragma interface
28#endif
29
30#include "goo/gtypes.h"
31
32//------------------------------------------------------------------------
33
34class PSTokenizer {
35public:
36
37  PSTokenizer(int (*getCharFuncA)(void *), void *dataA);
38  ~PSTokenizer();
39
40  // Get the next PostScript token.  Returns false at end-of-stream.
41  GBool getToken(char *buf, int size, int *length);
42
43private:
44
45  int lookChar();
[250]46  void consumeChar();
[2]47  int getChar();
48
49  int (*getCharFunc)(void *);
50  void *data;
51  int charBuf;
52};
53
54#endif
Note: See TracBrowser for help on using the repository browser.