Logo Search packages:      
Sourcecode: icu version File versions

virtual UCollationResult Collator::compare ( const UnicodeString source,
const UnicodeString target,
int32_t  length,
UErrorCode status 
) const [pure virtual]

Does the same thing as compare but limits the comparison to a specified length

sourcethe source string to be compared with.
targetthe string that is to be compared with the source string.
lengththe length the comparison is limited to
statuspossible error code
Returns an enum value. UCOL_GREATER if source (up to the specified length) is greater than target; UCOL_EQUAL if source (up to specified length) is equal to target; UCOL_LESS if source (up to the specified length) is less than target. ICU 2.6

Implemented in RuleBasedCollator, and TestCollator.

Generated by  Doxygen 1.6.0   Back to index