Logo Search packages:      
Sourcecode: icu version File versions

uint32_t RuleBasedCollator::setVariableTop ( const UnicodeString  varTop,
UErrorCode status 
) [virtual]

Sets the variable top to a collation element value of a string supplied.

varTopan UnicodeString size 1 or more (if contraction) of UChars to which the variable top should be set
statuserror code. If error code is set, the return value is undefined. Errors set by this function are:
U_CE_NOT_FOUND_ERROR if more than one character was passed and there is no such a contraction
U_PRIMARY_TOO_LONG_ERROR if the primary for the variable top has more than two bytes
a 32 bit value containing the value of the variable top in upper 16 bits. Lower 16 bits are undefined ICU 2.0

Implements Collator.

Definition at line 550 of file tblcoll.cpp.

References UnicodeString::getBuffer(), UnicodeString::length(), and ucollator.

    return ucol_setVariableTop(ucollator, varTop.getBuffer(), varTop.length(), &status);

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index