Logo Search packages:      
Sourcecode: icu version File versions

UBool Collator::greater ( const UnicodeString source,
const UnicodeString target 
) const [inherited]

Convenience method for comparing two strings based on the collation rules.

Parameters:
sourcethe source string to be compared with.
targetthe target string to be compared with.
Returns:
true if the first string is greater than the second one, according to the collation rules. false, otherwise.
See also:
Collator::compare ICU 2.0

Definition at line 469 of file coll.cpp.

References Collator::compare(), U_ZERO_ERROR, and UCOL_GREATER.

Referenced by CollationAPITest::TestCompare(), and CollationAPITest::TestSafeClone().

{
    UErrorCode ec = U_ZERO_ERROR;
    return (compare(source, target, ec) == UCOL_GREATER);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index