summaryrefslogtreecommitdiff
path: root/noncore/unsupported/qpdf/xpdf/NameToCharCode.h
Unidiff
Diffstat (limited to 'noncore/unsupported/qpdf/xpdf/NameToCharCode.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/qpdf/xpdf/NameToCharCode.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/noncore/unsupported/qpdf/xpdf/NameToCharCode.h b/noncore/unsupported/qpdf/xpdf/NameToCharCode.h
new file mode 100644
index 0000000..9f9b1c3
--- a/dev/null
+++ b/noncore/unsupported/qpdf/xpdf/NameToCharCode.h
@@ -0,0 +1,40 @@
1//========================================================================
2//
3// NameToCharCode.h
4//
5// Copyright 2001 Derek B. Noonburg
6//
7//========================================================================
8
9#ifndef NAMETOCHARCODE_H
10#define NAMETOCHARCODE_H
11
12#ifdef __GNUC__
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