TCollationKeyTable Struct Reference

struct TCollationKeyTable

Collation key table structure.

Public Member Enumerations
enum anonymous { ELevel0Mask  = 0xFFFF0000, ELevel1Mask  = 0x0000FF00, ELevel2Mask  = 0x000000FC, EIgnoreFlag  = 0x2, EStopFlag  = 0x1 }
Public Attributes
const TUint32 * iIndex
TInt iIndices
const TUint32 * iKey
const TUint16 * iString
const TUint32 * iStringIndex
TInt iStringIndices

Member Enumerations Documentation

Enum anonymous

Masks for the various parts of the elements of the iKey array.

Enumerators

ELevel0Mask = 0xFFFF0000
ELevel1Mask = 0x0000FF00
ELevel2Mask = 0x000000FC
EIgnoreFlag = 0x2
EStopFlag = 0x1

Member Data Documentation

const TUint32 * iIndex

const TUint32 * iIndex

An array of indices into the iKey array. Each element has its high 16 bits indicating a Unicode value and its low 16 bits indicating an index into the iKey array at which its key starts. For surrogate pairs, high surrogate code is in index[i]:16-31, and low surrogate code is in index[i+1]:16-31. These two elements are combined to represent a surrogate pair. The elements are sorted by Unicode value.

TInt iIndices

TInt iIndices

The size of the iIndex array.

const TUint32 * iKey

const TUint32 * iKey

An array containing all of the keys and strings of keys concatenated together. Each key has EStopFlag set only if it is the last key in its string. Eack key contains the keys for levels 0, 1 and 2, and a flag EIgnoreFlag if the key is usually ignored (for punctuation & spaces etc.).

const TUint16 * iString

const TUint16 * iString

Concatenated Unicode strings. Each is a strings that is to be converted to keys differently from how it would be if each letter were converted independently. An example is "ch" in Spanish, which sorts as though it were a single letter. Each Unicode string is preceeded by a 16-bit value indicating the string's length (in 16-bit). The end of the string is not delimited. A surrogate pair is represented by two ajacent 16-bit values.

const TUint32 * iStringIndex

const TUint32 * iStringIndex

An array of elements mapping elements of iString to elements of iIndex. Each element has its high 16 bits indicating the index of the start of an element of iString, and its low 16 bits indicating the corresponding element in iIndex. This array is sorted on the string index.

TInt iStringIndices

TInt iStringIndices

The size of the iStringIndex array.