# use AROS_LIB/INCLUDES
[AROS-Contrib.git] / arospdf / xpdf / NameToCharCode.h
blob65453c3a3eb4cc2530129c022068293e2d1739ec
1 //========================================================================
2 //
3 // NameToCharCode.h
4 //
5 // Copyright 2001-2003 Glyph & Cog, LLC
6 //
7 //========================================================================
9 #ifndef NAMETOCHARCODE_H
10 #define NAMETOCHARCODE_H
12 #include <aconf.h>
14 #ifdef USE_GCC_PRAGMAS
15 #pragma interface
16 #endif
18 #include "CharTypes.h"
20 struct NameToCharCodeEntry;
22 //------------------------------------------------------------------------
24 class NameToCharCode {
25 public:
27 NameToCharCode();
28 ~NameToCharCode();
30 void add(char *name, CharCode c);
31 CharCode lookup(char *name);
33 private:
35 int hash(char *name);
37 NameToCharCodeEntry *tab;
38 int size;
39 int len;
42 #endif