source: trunk/poppler/mypoppler/poppler/NameToCharCode.h @ 2

Last change on this file since 2 was 2, checked in by Eugene Romanenko, 16 years ago

First import

File size: 688 bytes
Line 
1//========================================================================
2//
3// NameToCharCode.h
4//
5// Copyright 2001-2003 Glyph & Cog, LLC
6//
7//========================================================================
8
9#ifndef NAMETOCHARCODE_H
10#define NAMETOCHARCODE_H
11
12#ifdef USE_GCC_PRAGMAS
13#pragma interface
14#endif
15
16#include "CharTypes.h"
17
18struct NameToCharCodeEntry;
19
20//------------------------------------------------------------------------
21
22class NameToCharCode {
23public:
24
25  NameToCharCode();
26  ~NameToCharCode();
27
28  void add(char *name, CharCode c);
29  CharCode lookup(char *name);
30
31private:
32
33  int hash(char *name);
34
35  NameToCharCodeEntry *tab;
36  int size;
37  int len;
38};
39
40#endif
Note: See TracBrowser for help on using the repository browser.