Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

NameToCharCode Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/qpdf/xpdf/NameToCharCode.h>

Collaboration diagram for NameToCharCode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NameToCharCode ()
 ~NameToCharCode ()
void add (char *name, CharCode c)
CharCode lookup (char *name)

Private Member Functions

int hash (char *name)

Private Attributes

NameToCharCodeEntrytab
int size
int len

Constructor & Destructor Documentation

NameToCharCode::NameToCharCode  ) 
 

Definition at line 27 of file NameToCharCode.cc.

References gmalloc(), i, len, NameToCharCodeEntry::name, NULL, size, and tab.

NameToCharCode::~NameToCharCode  ) 
 

Definition at line 38 of file NameToCharCode.cc.

References gfree(), i, name, size, and tab.


Member Function Documentation

void NameToCharCode::add char *  name,
CharCode  c
 

Definition at line 49 of file NameToCharCode.cc.

References NameToCharCodeEntry::c, copyString(), gfree(), gmalloc(), hash(), i, len, NameToCharCodeEntry::name, NULL, size, and tab.

Referenced by GlobalParams::GlobalParams(), and GlobalParams::parseNameToUnicode().

int NameToCharCode::hash char *  name  )  [private]
 

Definition at line 106 of file NameToCharCode.cc.

References p, and size.

Referenced by add(), and lookup().

CharCode NameToCharCode::lookup char *  name  ) 
 

Definition at line 91 of file NameToCharCode.cc.

References NameToCharCodeEntry::c, hash(), size, and tab.

Referenced by GlobalParams::getMacRomanCharCode(), and GlobalParams::mapNameToUnicode().


Member Data Documentation

int NameToCharCode::len [private]
 

Definition at line 37 of file NameToCharCode.h.

Referenced by add(), and NameToCharCode().

int NameToCharCode::size [private]
 

Definition at line 36 of file NameToCharCode.h.

Referenced by add(), hash(), lookup(), NameToCharCode(), and ~NameToCharCode().

NameToCharCodeEntry* NameToCharCode::tab [private]
 

Definition at line 35 of file NameToCharCode.h.

Referenced by add(), lookup(), NameToCharCode(), and ~NameToCharCode().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:41:03 2005 for OPIE by  doxygen 1.4.2