Logo Search packages:      
Sourcecode: icu version File versions  Download package

Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends

CollData Class Reference

#include <colldata.h>

Inheritance diagram for CollData:
Inheritance graph
[legend]
Collaboration diagram for CollData:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void freeCEList (const CEList *list)
const CEListgetCEList (const UnicodeString *string) const
UCollatorgetCollator () const
virtual UClassID getDynamicClassID () const
const StringListgetStringList (int32_t ce) const
int32_t minLengthInChars (const CEList *ces, int32_t offset, int32_t *history) const
int32_t minLengthInChars (const CEList *ces, int32_t offset) const

Static Public Member Functions

static void close (CollData *collData)
static void flushCollDataCache ()
static void freeCollDataCache ()
static UClassID getStaticClassID ()
static CollDataopen (UCollator *collator, UErrorCode &status)
static void U_EXPORT2 operator delete (void *p) U_NO_THROW
static void U_EXPORT2 operator delete (void *, void *) U_NO_THROW
static void U_EXPORT2 operator delete[] (void *p) U_NO_THROW
static void *U_EXPORT2 operator new (size_t size) U_NO_THROW
static void *U_EXPORT2 operator new (size_t, void *ptr) U_NO_THROW
static void *U_EXPORT2 operator new[] (size_t size) U_NO_THROW

Private Member Functions

 CollData (UCollator *collator, char *cacheKey, int32_t cachekeyLength, UErrorCode &status)

Static Private Member Functions

static char * getCollatorKey (UCollator *collator, char *buffer, int32_t bufferLength)
static CollDataCachegetCollDataCache ()

Private Attributes

CEToStringsMapceToCharsStartingWith
StringToCEsMapcharsToCEList
UCollatorcoll
uint32_t jamoLimits [4]
char * key
char keyBuffer [KEY_BUFFER_SIZE]
uint32_t maxHan
uint32_t minHan

Static Private Attributes

static CollDataCachecollDataCache = NULL

Friends

class CollDataCache
class CollDataCacheEntry

Detailed Description

CollData

This class holds the Collator-specific data needed to compute the length of the shortest string that can generate a partcular list of CEs.

CollData objects are quite expensive to compute. Because of this, they are cached. When you call CollData::open it returns a reference counted cached object. When you call CollData::close the reference count on the object is decremented but the object is not deleted.

If you do not need to reuse any unreferenced objects in the cache, you can call CollData::flushCollDataCache. If you no longer need any CollData objects, you can call CollData::freeCollDataCache

ICU 4.0.1 technology preview

Definition at line 267 of file colldata.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index