mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 14:31:31 +00:00
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:
parent
c123e806f7
commit
f8580d17f4
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue