Logo Search packages:      
Sourcecode: icu version File versions

int8_t UnicodeString::compare ( const UnicodeString text ) const [inline]

Compare the characters bitwise in this UnicodeString to the characters in text.

textThe UnicodeString to compare to this one.
The result of bitwise character comparison: 0 if this contains the same characters as text, -1 if the characters in this are bitwise less than the characters in text, +1 if the characters in this are bitwise greater than the characters in text. ICU 2.0

Definition at line 3602 of file unistr.h.

References length(), and Replaceable::length().

Referenced by TestCollator::compare(), WrapFactory::create(), CanonicalIterator::extract(), PluralFormat::findSubMessage(), CurrencyPluralInfo::getCurrencyPluralPattern(), NumberFormat::makeInstance(), TransliterationRule::masks(), ChoiceFormat::matchStringUntilLimitPart(), RelativeDateFormat::parse(), DecimalFormat::parse(), TimeUnitFormat::parseObject(), SimpleDateFormat::subParse(), DecimalFormat::subparse(), DateIntervalFormatTest::testAPI(), UnicodeStringTest::TestCompare(), TimeZoneTest::TestCustomParse(), TimeZoneTest::TestDisplayName(), CollationAPITest::TestDisplayName(), LocaleTest::TestGetLangsAndCountries(), RBBIAPITest::TestgetRules(), UnicodeStringTest::TestMiscellaneous(), and CollationAPITest::TestSubclass().

{ return doCompare(0, length(), text, 0, text.length()); }

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