summaryrefslogtreecommitdiff
path: root/poppler/NameToCharCode.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2005-03-03 19:45:58 +0000
committerKristian Høgsberg <krh@redhat.com>2005-03-03 19:45:58 +0000
commitcb02d5d0e770e2a8cbe5a8ac810820a2ce5fec0c (patch)
tree89a707862fc867a1aaa879ad3f6fbfb5f16a0a30 /poppler/NameToCharCode.h
Initial revision
Diffstat (limited to 'poppler/NameToCharCode.h')
-rw-r--r--poppler/NameToCharCode.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/poppler/NameToCharCode.h b/poppler/NameToCharCode.h
new file mode 100644
index 00000000..bc57c373
--- /dev/null
+++ b/poppler/NameToCharCode.h
@@ -0,0 +1,40 @@
+//========================================================================
+//
+// NameToCharCode.h
+//
+// Copyright 2001-2003 Glyph & Cog, LLC
+//
+//========================================================================
+
+#ifndef NAMETOCHARCODE_H
+#define NAMETOCHARCODE_H
+
+#ifdef USE_GCC_PRAGMAS
+#pragma interface
+#endif
+
+#include "CharTypes.h"
+
+struct NameToCharCodeEntry;
+
+//------------------------------------------------------------------------
+
+class NameToCharCode {
+public:
+
+ NameToCharCode();
+ ~NameToCharCode();
+
+ void add(char *name, CharCode c);
+ CharCode lookup(char *name);
+
+private:
+
+ int hash(char *name);
+
+ NameToCharCodeEntry *tab;
+ int size;
+ int len;
+};
+
+#endif