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

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

Get the sort key as an array of bytes from an UnicodeString.

Parameters:
source string to be processed.
result buffer to store result in. If NULL, number of bytes needed will be returned.
resultLength length 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.0

Implements Collator.

Definition at line 559 of file tblcoll.cpp.

References UnicodeString::getBuffer(), UnicodeString::length(), and ucollator.

{
    return ucol_getSortKey(ucollator, source.getBuffer(), source.length(), result, resultLength);
}


Generated by  Doxygen 1.6.0   Back to index