From f8580d17f47086be88f4dee652eccfdcdeee7f88 Mon Sep 17 00:00:00 2001 From: Yoshito Umaoka Date: Wed, 3 Feb 2016 21:51:20 +0000 Subject: [PATCH] ICU-12091 Update to the previous commit - Made UnicodeString -t- to constant to match the diff provided by Steven in #12077 X-SVN-Rev: 38256 --- icu4c/source/i18n/translit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/icu4c/source/i18n/translit.cpp b/icu4c/source/i18n/translit.cpp index cd7b0f7789c..1288a7d7b72 100644 --- a/icu4c/source/i18n/translit.cpp +++ b/icu4c/source/i18n/translit.cpp @@ -1501,6 +1501,7 @@ UBool Transliterator::initializeRegistry(UErrorCode &status) { UResourceBundle *bundle, *transIDs, *colBund; bundle = ures_open(U_ICUDATA_TRANSLIT, NULL/*open default locale*/, &status); transIDs = ures_getByKey(bundle, RB_RULE_BASED_IDS, 0, &status); + const UnicodeString T_PART = UNICODE_STRING_SIMPLE("-t-"); int32_t row, maxRows; if (U_SUCCESS(status)) { @@ -1509,7 +1510,7 @@ UBool Transliterator::initializeRegistry(UErrorCode &status) { colBund = ures_getByIndex(transIDs, row, 0, &status); if (U_SUCCESS(status)) { UnicodeString id(ures_getKey(colBund), -1, US_INV); - if(id.indexOf(UnicodeString("-t-")) != -1) { + if(id.indexOf(T_PART) != -1) { continue; } UResourceBundle* res = ures_getNextResource(colBund, NULL, &status); -- 2.40.0