blob: bc57c3736c1329b8f09380b218f235fb5fab3878 [file] [log] [blame] [edit]
//========================================================================
//
// 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