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

int8_t UnicodeString::caseCompare ( const UnicodeString text,
uint32_t  options 
) const [inline]

Compare two strings case-insensitively using full case folding. This is equivalent to this->foldCase(options).compare(text.foldCase(options)).

Parameters:
text Another string to compare this one to.
options A bit set of options:
  • U_FOLD_CASE_DEFAULT or 0 is used for default options: Comparison in code unit order with default case folding.
  • U_COMPARE_CODE_POINT_ORDER Set to choose code point order instead of code unit order (see u_strCompare for details).

  • U_FOLD_CASE_EXCLUDE_SPECIAL_I

Returns:
A negative, zero, or positive integer indicating the comparison result. ICU 2.0

Definition at line 3700 of file unistr.h.

References length().

Referenced by AnyTransliterator::registerIDs(), TransliteratorIDParser::registerSpecialInverse(), TransliteratorIDParser::specsToSpecialInverse(), DecimalFormat::subparse(), UnicodeStringTest::TestBasicManipulation(), UnicodeStringTest::TestCompare(), and TransliteratorTest::TestSTV().

                                                                            {
  return doCaseCompare(0, length(), text, 0, text.length(), options);
}


Generated by  Doxygen 1.6.0   Back to index