mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-8167 adjust to BytesTrieBuilder API changes
X-SVN-Rev: 29368
This commit is contained in:
parent
9cc27feeb4
commit
83562e872b
1 changed files with 3 additions and 3 deletions
|
@ -176,7 +176,7 @@ int32_t Alias::getUniqueNames(int32_t* stringIndices) const {
|
|||
|
||||
class Builder {
|
||||
public:
|
||||
Builder(UErrorCode &errorCode) : valueMaps(errorCode), maxNameLength(0) {}
|
||||
Builder(UErrorCode &errorCode) : valueMaps(errorCode), btb(errorCode), maxNameLength(0) {}
|
||||
|
||||
void build() {
|
||||
IcuToolErrorCode errorCode("genpname Builder::build()");
|
||||
|
@ -386,7 +386,7 @@ public:
|
|||
addAliasToBytesTrie(aliases[i], errorCode);
|
||||
}
|
||||
int32_t bytesTrieOffset=bytesTries.length();
|
||||
bytesTries.append(btb.build(USTRINGTRIE_BUILD_SMALL, errorCode), errorCode);
|
||||
bytesTries.append(btb.buildStringPiece(USTRINGTRIE_BUILD_SMALL, errorCode), errorCode);
|
||||
return bytesTrieOffset;
|
||||
}
|
||||
|
||||
|
@ -399,7 +399,7 @@ public:
|
|||
addAliasToBytesTrie(aliases[i], errorCode);
|
||||
}
|
||||
int32_t bytesTrieOffset=bytesTries.length();
|
||||
bytesTries.append(btb.build(USTRINGTRIE_BUILD_SMALL, errorCode), errorCode);
|
||||
bytesTries.append(btb.buildStringPiece(USTRINGTRIE_BUILD_SMALL, errorCode), errorCode);
|
||||
return bytesTrieOffset;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue