author | sandman <sandman> | 2002-04-13 00:47:20 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-04-13 00:47:20 (UTC) |
commit | 98a1e3f36567639344f12932b629e526a8783aa8 (patch) (unidiff) | |
tree | 0433d296857faceeafc54f7deabddb621f45a933 /noncore/unsupported/qpdf/xpdf/NameToCharCode.h | |
parent | 7e31b1fba119f69929d6744d7295555ff1727f4f (diff) | |
download | opie-98a1e3f36567639344f12932b629e526a8783aa8.zip opie-98a1e3f36567639344f12932b629e526a8783aa8.tar.gz opie-98a1e3f36567639344f12932b629e526a8783aa8.tar.bz2 |
CVS import of QPdf
Diffstat (limited to 'noncore/unsupported/qpdf/xpdf/NameToCharCode.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/qpdf/xpdf/NameToCharCode.h | 40 |
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 | |||
18 | struct NameToCharCodeEntry; | ||
19 | |||
20 | //------------------------------------------------------------------------ | ||
21 | |||
22 | class NameToCharCode { | ||
23 | public: | ||
24 | |||
25 | NameToCharCode(); | ||
26 | ~NameToCharCode(); | ||
27 | |||
28 | void add(char *name, CharCode c); | ||
29 | CharCode lookup(char *name); | ||
30 | |||
31 | private: | ||
32 | |||
33 | int hash(char *name); | ||
34 | |||
35 | NameToCharCodeEntry *tab; | ||
36 | int size; | ||
37 | int len; | ||
38 | }; | ||
39 | |||
40 | #endif | ||