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

U_STABLE int32_t U_EXPORT2 u_memcasecmp ( const UChar *  s1,
const UChar *  s2,
int32_t  length,
uint32_t  options 
)

Compare two strings case-insensitively using full case folding. This is equivalent to u_strcmp(u_strFoldCase(s1, n, options), u_strFoldCase(s2, n, options)).

Parameters:
s1 A string to compare.
s2 A string to compare.
length The number of characters in each string to case-fold and then compare.
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 977 of file ustrcase.c.

References U_COMPARE_IGNORE_CASE, and U_ZERO_ERROR.

                                                                                 {
    UErrorCode errorCode=U_ZERO_ERROR;
    return u_strcmpFold(s1, length, s2, length,
                        options|U_COMPARE_IGNORE_CASE,
                        &errorCode);
}


Generated by  Doxygen 1.6.0   Back to index