beta-0.89.2
[luatex.git] / source / libs / poppler / poppler-src / poppler / NameToCharCode.h
blob5b1092bb96b38fcdafcea7c2cdae658a30556b08
1 //========================================================================
2 //
3 // NameToCharCode.h
4 //
5 // Copyright 2001-2003 Glyph & Cog, LLC
6 //
7 //========================================================================
9 #ifndef NAMETOCHARCODE_H
10 #define NAMETOCHARCODE_H
12 #ifdef USE_GCC_PRAGMAS
13 #pragma interface
14 #endif
16 #include "CharTypes.h"
18 struct NameToCharCodeEntry;
20 //------------------------------------------------------------------------
22 class NameToCharCode {
23 public:
25 NameToCharCode();
26 ~NameToCharCode();
28 void add(const char *name, CharCode c);
29 CharCode lookup(const char *name);
31 private:
33 int hash(const char *name);
35 NameToCharCodeEntry *tab;
36 int size;
37 int len;
40 #endif