Sets the variable top to a collation element value of a string supplied.
|varTop||one or more (if contraction) UChars to which the variable top should be set |
|len||length of variable top string. If -1 it is considered to be zero terminated. |
|status||error 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
Implemented in RuleBasedCollator, and TestCollator.
Referenced by CollationAPITest::TestVariableTopSetting().