Logo Search packages:      
Sourcecode: icu version File versions

int32_t RuleBasedCollator::getSortKey ( const UChar source,
int32_t  sourceLength,
uint8_t *  result,
int32_t  resultLength 
) const [virtual]

Get the sort key as an array of bytes from an UChar buffer.

Parameters:
sourcestring to be processed.
sourceLengthlength of string to be processed. If -1, the string is 0 terminated and length will be decided by the function.
resultbuffer to store result in. If NULL, number of bytes needed will be returned.
resultLengthlength of the result buffer. If if not enough the buffer will be filled to capacity.
Returns:
Number of bytes needed for storing the sort key ICU 2.2

Implements Collator.

Definition at line 594 of file tblcoll.cpp.

References ucollator.

{
    return ucol_getSortKey(ucollator, source, sourceLength, result, resultLength);
}

Generated by  Doxygen 1.6.0   Back to index