From 83562e872bddb6b7076dc7a1ae2b1e08104341f8 Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Thu, 27 Jan 2011 21:42:08 +0000 Subject: [PATCH] ICU-8167 adjust to BytesTrieBuilder API changes X-SVN-Rev: 29368 --- tools/unicode/c/genpname/genpname.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/unicode/c/genpname/genpname.cpp b/tools/unicode/c/genpname/genpname.cpp index 39c7c4be9bd..171703fadba 100644 --- a/tools/unicode/c/genpname/genpname.cpp +++ b/tools/unicode/c/genpname/genpname.cpp @@ -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; }