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

U_STABLE UBool U_EXPORT2 ucol_equal ( const UCollator coll,
const UChar *  source,
int32_t  sourceLength,
const UChar *  target,
int32_t  targetLength 

Compare two strings for equality. This function is equivalent to ucol_strcoll == UCOL_EQUAL

coll The UCollator containing the comparison rules.
source The source string.
sourceLength The length of source, or -1 if null-terminated.
target The target string.
targetLength The length of target, or -1 if null-terminated.
TRUE if source is equal to target, FALSE otherwise
See also:


ucol_greaterOrEqual ICU 2.0

Definition at line 8456 of file ucol.cpp.

References UCOL_EQUAL.

    return (ucol_strcoll(coll, source, sourceLength, target, targetLength)
        == UCOL_EQUAL);

Generated by  Doxygen 1.6.0   Back to index