You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
ICU: Update to version 72.1
This commit is contained in:
20
thirdparty/icu4c/common/stringtriebuilder.cpp
vendored
20
thirdparty/icu4c/common/stringtriebuilder.cpp
vendored
@@ -85,16 +85,16 @@ StringTrieBuilder::build(UStringTrieBuildOption buildOption, int32_t elementsLen
|
||||
// have a common prefix of length unitIndex.
|
||||
int32_t
|
||||
StringTrieBuilder::writeNode(int32_t start, int32_t limit, int32_t unitIndex) {
|
||||
UBool hasValue=FALSE;
|
||||
UBool hasValue=false;
|
||||
int32_t value=0;
|
||||
int32_t type;
|
||||
if(unitIndex==getElementStringLength(start)) {
|
||||
// An intermediate or final value.
|
||||
value=getElementValue(start++);
|
||||
if(start==limit) {
|
||||
return writeValueAndFinal(value, TRUE); // final-value node
|
||||
return writeValueAndFinal(value, true); // final-value node
|
||||
}
|
||||
hasValue=TRUE;
|
||||
hasValue=true;
|
||||
}
|
||||
// Now all [start..limit[ strings are longer than unitIndex.
|
||||
int32_t minUnit=getElementUnit(start, unitIndex);
|
||||
@@ -209,7 +209,7 @@ StringTrieBuilder::makeNode(int32_t start, int32_t limit, int32_t unitIndex, UEr
|
||||
if(U_FAILURE(errorCode)) {
|
||||
return NULL;
|
||||
}
|
||||
UBool hasValue=FALSE;
|
||||
UBool hasValue=false;
|
||||
int32_t value=0;
|
||||
if(unitIndex==getElementStringLength(start)) {
|
||||
// An intermediate or final value.
|
||||
@@ -217,7 +217,7 @@ StringTrieBuilder::makeNode(int32_t start, int32_t limit, int32_t unitIndex, UEr
|
||||
if(start==limit) {
|
||||
return registerFinalValue(value, errorCode);
|
||||
}
|
||||
hasValue=TRUE;
|
||||
hasValue=true;
|
||||
}
|
||||
Node *node;
|
||||
// Now all [start..limit[ strings are longer than unitIndex.
|
||||
@@ -410,7 +410,7 @@ StringTrieBuilder::FinalValueNode::operator==(const Node &other) const {
|
||||
|
||||
void
|
||||
StringTrieBuilder::FinalValueNode::write(StringTrieBuilder &builder) {
|
||||
offset=builder.writeValueAndFinal(value, TRUE);
|
||||
offset=builder.writeValueAndFinal(value, true);
|
||||
}
|
||||
|
||||
bool
|
||||
@@ -448,7 +448,7 @@ StringTrieBuilder::IntermediateValueNode::markRightEdgesFirst(int32_t edgeNumber
|
||||
void
|
||||
StringTrieBuilder::IntermediateValueNode::write(StringTrieBuilder &builder) {
|
||||
next->write(builder);
|
||||
offset=builder.writeValueAndFinal(value, FALSE);
|
||||
offset=builder.writeValueAndFinal(value, false);
|
||||
}
|
||||
|
||||
bool
|
||||
@@ -526,7 +526,7 @@ StringTrieBuilder::ListBranchNode::write(StringTrieBuilder &builder) {
|
||||
// not jump for it at all.
|
||||
unitNumber=length-1;
|
||||
if(rightEdge==NULL) {
|
||||
builder.writeValueAndFinal(values[unitNumber], TRUE);
|
||||
builder.writeValueAndFinal(values[unitNumber], true);
|
||||
} else {
|
||||
rightEdge->write(builder);
|
||||
}
|
||||
@@ -538,12 +538,12 @@ StringTrieBuilder::ListBranchNode::write(StringTrieBuilder &builder) {
|
||||
if(equal[unitNumber]==NULL) {
|
||||
// Write the final value for the one string ending with this unit.
|
||||
value=values[unitNumber];
|
||||
isFinal=TRUE;
|
||||
isFinal=true;
|
||||
} else {
|
||||
// Write the delta to the start position of the sub-node.
|
||||
U_ASSERT(equal[unitNumber]->getOffset()>0);
|
||||
value=offset-equal[unitNumber]->getOffset();
|
||||
isFinal=FALSE;
|
||||
isFinal=false;
|
||||
}
|
||||
builder.writeValueAndFinal(value, isFinal);
|
||||
offset=builder.write(units[unitNumber]);
|
||||
|
||||
Reference in New Issue
Block a user