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.

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

Definition at line 111 of file coll.cpp.

References Collator::compare().

Referenced by CollationAPITest::TestCompare().

{
  return (compare(source, target) == EQUAL);
}


Generated by  Doxygen 1.6.0   Back to index