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

int8_t UnicodeString::caseCompare ( int32_t  start,
int32_t  length,
const UChar *  srcChars,
uint32_t  options 
) const [inline]

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

Parameters:
start The start offset in this string at which the compare operation begins.
length The number of code units from this string to compare.
srcChars A pointer to 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 3730 of file unistr.h.

                                                   {
  return doCaseCompare(start, _length, srcChars, 0, _length, options);
}


Generated by  Doxygen 1.6.0   Back to index