summaryrefslogtreecommitdiff
path: root/Build/source/libs/poppler/poppler-0.18.4/poppler/NameToCharCode.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/poppler/poppler-0.18.4/poppler/NameToCharCode.h')
-rw-r--r--Build/source/libs/poppler/poppler-0.18.4/poppler/NameToCharCode.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/Build/source/libs/poppler/poppler-0.18.4/poppler/NameToCharCode.h b/Build/source/libs/poppler/poppler-0.18.4/poppler/NameToCharCode.h
new file mode 100644
index 00000000000..bc57c3736c1
--- /dev/null
+++ b/Build/source/libs/poppler/poppler-0.18.4/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