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

U_STABLE void U_EXPORT2 ucol_restoreVariableTop ( UCollator coll,
const uint32_t  varTop,
UErrorCode status 

Sets the variable top to a collation element value supplied. Variable top is set to the upper 16 bits. Lower 16 bits are ignored.

coll collator which variable top needs to be changed
varTop CE value, as returned by ucol_setVariableTop or ucol)getVariableTop
status error code (not changed by function)
See also:

ucol_setVariableTop ICU 2.0

Definition at line 6893 of file ucol.cpp.

References FALSE, NULL, and U_FAILURE.

    if(U_FAILURE(*status) || coll == NULL) {

    if(coll->variableTopValue != (varTop & UCOL_PRIMARYMASK)>>16) {
        coll->variableTopValueisDefault = FALSE;
        coll->variableTopValue = (varTop & UCOL_PRIMARYMASK)>>16;

Generated by  Doxygen 1.6.0   Back to index