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

CharCodeToUnicode Class Reference

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

Collaboration diagram for CharCodeToUnicode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ~CharCodeToUnicode ()
void incRefCnt ()
void decRefCnt ()
GBool match (GString *collectionA)
int mapToUnicode (CharCode c, Unicode *u, int size)

Static Public Member Functions

static CharCodeToUnicodeparseCIDToUnicode (GString *collectionA)
static CharCodeToUnicodemake8BitToUnicode (Unicode *toUnicode)
static CharCodeToUnicodeparseCMap (GString *buf, int nBits)

Private Member Functions

void parseCMap1 (int(*getCharFunc)(void *), void *data, int nBits)
 CharCodeToUnicode (GString *collectionA)
 CharCodeToUnicode (GString *collectionA, Unicode *mapA, CharCode mapLenA, GBool copyMap, CharCodeToUnicodeString *sMapA, int sMapLenA)

Private Attributes

GStringcollection
Unicode * map
CharCode mapLen
CharCodeToUnicodeStringsMap
int sMapLen
int sMapSize
int refCnt

Constructor & Destructor Documentation

CharCodeToUnicode::~CharCodeToUnicode  ) 
 

Definition at line 294 of file CharCodeToUnicode.cc.

References collection, gfree(), map, and sMap.

CharCodeToUnicode::CharCodeToUnicode GString collectionA  )  [private]
 

Definition at line 263 of file CharCodeToUnicode.cc.

References collection, gmalloc(), i, map, mapLen, NULL, refCnt, sMap, sMapLen, and sMapSize.

Referenced by make8BitToUnicode(), parseCIDToUnicode(), and parseCMap().

CharCodeToUnicode::CharCodeToUnicode GString collectionA,
Unicode *  mapA,
CharCode  mapLenA,
GBool  copyMap,
CharCodeToUnicodeString sMapA,
int  sMapLenA
[private]
 

Definition at line 277 of file CharCodeToUnicode.cc.

References collection, gmalloc(), map, mapLen, refCnt, sMap, sMapLen, and sMapSize.


Member Function Documentation

void CharCodeToUnicode::decRefCnt  ) 
 

Definition at line 308 of file CharCodeToUnicode.cc.

References refCnt.

Referenced by CIDToUnicodeCache::getCIDToUnicode(), CIDToUnicodeCache::~CIDToUnicodeCache(), and Gfx8BitFont::~Gfx8BitFont().

void CharCodeToUnicode::incRefCnt  ) 
 

Definition at line 304 of file CharCodeToUnicode.cc.

References refCnt.

Referenced by CIDToUnicodeCache::getCIDToUnicode(), GfxCIDFont::getToUnicode(), and Gfx8BitFont::getToUnicode().

CharCodeToUnicode * CharCodeToUnicode::make8BitToUnicode Unicode *  toUnicode  )  [static]
 

Definition at line 95 of file CharCodeToUnicode.cc.

References CharCodeToUnicode(), gTrue, and NULL.

Referenced by Gfx8BitFont::Gfx8BitFont().

int CharCodeToUnicode::mapToUnicode CharCode  c,
Unicode *  u,
int  size
 

Definition at line 318 of file CharCodeToUnicode.cc.

References i, len, map, mapLen, sMap, sMapLen, and CharCodeToUnicodeString::u.

Referenced by Gfx8BitFont::getNextChar().

GBool CharCodeToUnicode::match GString collectionA  ) 
 

Definition at line 314 of file CharCodeToUnicode.cc.

References GString::cmp(), and collection.

CharCodeToUnicode * CharCodeToUnicode::parseCIDToUnicode GString collectionA  )  [static]
 

Definition at line 56 of file CharCodeToUnicode.cc.

References buf, CharCodeToUnicode(), GString::copy(), error(), f, GlobalParams::getCIDToUnicodeFile(), GString::getCString(), getLine(), gfree(), globalParams, gmalloc(), grealloc(), gTrue, NULL, size, and u.

Referenced by CIDToUnicodeCache::getCIDToUnicode().

CharCodeToUnicode * CharCodeToUnicode::parseCMap GString buf,
int  nBits
[static]
 

Definition at line 99 of file CharCodeToUnicode.cc.

References CharCodeToUnicode(), getCharFromString(), GString::getCString(), NULL, p, and parseCMap1().

Referenced by GfxFont::readToUnicodeCMap().

void CharCodeToUnicode::parseCMap1 int(*)(void *)  getCharFunc,
void *  data,
int  nBits
[private]
 

Definition at line 109 of file CharCodeToUnicode.cc.

References CharCodeToUnicodeString::c, error(), f, GlobalParams::findToUnicodeFile(), getCharFromFile(), GString::getCString(), PSTokenizer::getToken(), globalParams, grealloc(), i, len, CharCodeToUnicodeString::len, map, mapLen, maxUnicodeString, name, sMap, sMapLen, sMapSize, CharCodeToUnicodeString::u, and u.

Referenced by parseCMap().


Member Data Documentation

GString* CharCodeToUnicode::collection [private]
 

Definition at line 59 of file CharCodeToUnicode.h.

Referenced by CharCodeToUnicode(), match(), and ~CharCodeToUnicode().

Unicode* CharCodeToUnicode::map [private]
 

Definition at line 60 of file CharCodeToUnicode.h.

Referenced by CharCodeToUnicode(), mapToUnicode(), parseCMap1(), and ~CharCodeToUnicode().

CharCode CharCodeToUnicode::mapLen [private]
 

Definition at line 61 of file CharCodeToUnicode.h.

Referenced by CharCodeToUnicode(), mapToUnicode(), and parseCMap1().

int CharCodeToUnicode::refCnt [private]
 

Definition at line 64 of file CharCodeToUnicode.h.

Referenced by CharCodeToUnicode(), decRefCnt(), and incRefCnt().

CharCodeToUnicodeString* CharCodeToUnicode::sMap [private]
 

Definition at line 62 of file CharCodeToUnicode.h.

Referenced by CharCodeToUnicode(), mapToUnicode(), parseCMap1(), and ~CharCodeToUnicode().

int CharCodeToUnicode::sMapLen [private]
 

Definition at line 63 of file CharCodeToUnicode.h.

Referenced by CharCodeToUnicode(), mapToUnicode(), and parseCMap1().

int CharCodeToUnicode::sMapSize [private]
 

Definition at line 63 of file CharCodeToUnicode.h.

Referenced by CharCodeToUnicode(), and parseCMap1().


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