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

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

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

Parameters:
s1 A string to compare.
s2 A string to 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 969 of file ustrcase.c.

References U_COMPARE_IGNORE_CASE, and U_ZERO_ERROR.

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


Generated by  Doxygen 1.6.0   Back to index