Files
Yajbir Singh f1b860b25c
Some checks failed
check / markdownlint (push) Has been cancelled
check / spellchecker (push) Has been cancelled
updated
2025-12-11 19:03:17 +05:30

43 lines
726 B
C++

//========================================================================
//
// NameToCharCode.h
//
// Copyright 2001-2003 Glyph & Cog, LLC
//
//========================================================================
#ifndef NAMETOCHARCODE_H
#define NAMETOCHARCODE_H
#include <aconf.h>
#ifdef USE_GCC_PRAGMAS
#pragma interface
#endif
#include "CharTypes.h"
struct NameToCharCodeEntry;
//------------------------------------------------------------------------
class NameToCharCode {
public:
NameToCharCode();
~NameToCharCode();
void add(const char *name, CharCode c);
CharCode lookup(const char *name);
private:
int hash(const char *name);
NameToCharCodeEntry *tab;
int size;
int len;
};
#endif