Logo Search packages:      
Sourcecode: icu version File versions

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

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

sourcethe source string to be compared with.
targetthe target string to be compared with.
true if the strings are equal according to the collation rules. false, otherwise.
See also:
Collator::compare ICU 2.0

Definition at line 455 of file coll.cpp.

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

Referenced by NFRule::prefixLength(), and CollationAPITest::TestCompare().

    UErrorCode ec = U_ZERO_ERROR;
    return (compare(source, target, ec) == UCOL_EQUAL);

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