Logo Search packages:      
Sourcecode: icu version File versions

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

Get the sort key as an array of bytes from an UnicodeString. Sort key byte arrays are zero-terminated and can be compared using strcmp().

sourcestring to be processed.
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.
Number of bytes needed for storing the sort key ICU 2.2

Implemented in RuleBasedCollator, and TestCollator.

Referenced by CollationAPITest::TestBounds(), and CollationAPITest::TestSortKey().

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index