* Corporation and others. All Rights Reserved.
*******************************************************************************
* file name: ucharstriebuilder.h
* Corporation and others. All Rights Reserved.
*******************************************************************************
* file name: ucharstriebuilder.h
static int32_t U_CALLCONV
compareElementStrings(const void *context, const void *left, const void *right) {
static int32_t U_CALLCONV
compareElementStrings(const void *context, const void *left, const void *right) {
- const UnicodeString *strings=reinterpret_cast<const UnicodeString *>(context);
- const UCharsTrieElement *leftElement=reinterpret_cast<const UCharsTrieElement *>(left);
- const UCharsTrieElement *rightElement=reinterpret_cast<const UCharsTrieElement *>(right);
+ const UnicodeString *strings=static_cast<const UnicodeString *>(context);
+ const UCharsTrieElement *leftElement=static_cast<const UCharsTrieElement *>(left);
+ const UCharsTrieElement *rightElement=static_cast<const UCharsTrieElement *>(right);
UCharsTrieBuilder::UCTLinearMatchNode::UCTLinearMatchNode(const UChar *units, int32_t len, Node *nextNode)
: LinearMatchNode(len, nextNode), s(units) {
UCharsTrieBuilder::UCTLinearMatchNode::UCTLinearMatchNode(const UChar *units, int32_t len, Node *nextNode)
: LinearMatchNode(len, nextNode), s(units) {
int32_t length;
if(value<0 || value>UCharsTrie::kMaxTwoUnitNodeValue) {
intUnits[0]=(UChar)(UCharsTrie::kThreeUnitNodeValueLead);
int32_t length;
if(value<0 || value>UCharsTrie::kMaxTwoUnitNodeValue) {
intUnits[0]=(UChar)(UCharsTrie::kThreeUnitNodeValueLead);