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

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

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

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

Definition at line 462 of file coll.cpp.

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

Referenced by CollationAPITest::TestCompare().

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


Generated by  Doxygen 1.6.0   Back to index