Logo Search packages:      
Sourcecode: icu version File versions

Collator::EComparisonResult Collator::compare ( const UnicodeString source,
const UnicodeString target 
) const [virtual]

The comparison function compares the character data stored in two different strings. Returns information about whether a string is less than, greater than or equal to another string.

Parameters:
sourcethe source string to be compared with.
targetthe string that is to be compared with the source string.
Returns:
Returns a byte value. GREATER if source is greater than target; EQUAL if source is equal to target; LESS if source is less than target
Deprecated:
ICU 2.6 use the overload with UErrorCode &

Reimplemented in RuleBasedCollator, and TestCollator.

Definition at line 408 of file coll.cpp.

References U_ZERO_ERROR.

Referenced by CollationFunction::call(), compare(), compareUTF8(), IntlTestCollator::doTestVariant(), equals(), AlphabeticIndex::getBucketIndex(), AlphabeticIndex::getOverflowComparisonString(), greater(), greaterOrEqual(), CollationAPITest::TestCompare(), CollationThaiTest::TestDictionary(), CollationAPITest::TestDuplicate(), CollationThaiTest::TestNamesList(), and CollationAPITest::TestProperty().

{
    UErrorCode ec = U_ZERO_ERROR;
    return (Collator::EComparisonResult)compare(source, target, ec);
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index