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

U_STABLE void U_EXPORT2 ucol_setStrength ( UCollator coll,
UCollationStrength  strength 
)

Set the collation strength used in a UCollator. The strength influences how strings are compared.

Parameters:
coll The UCollator to set.
strength The desired collation strength; one of UCOL_PRIMARY, UCOL_SECONDARY, UCOL_TERTIARY, UCOL_QUATERNARY, UCOL_IDENTICAL, UCOL_DEFAULT
See also:
ucol_getStrength ICU 2.0

Definition at line 7068 of file ucol.cpp.

References U_ZERO_ERROR, and UCOL_STRENGTH.

{
    UErrorCode status = U_ZERO_ERROR;
    ucol_setAttribute(coll, UCOL_STRENGTH, strength, &status);
}


Generated by  Doxygen 1.6.0   Back to index