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
This commit is contained in:
Yoshito Umaoka 2016-02-03 21:51:20 +00:00
parent c123e806f7
commit f8580d17f4

View File

@ -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);