Index: source/i18n/translit.cpp |
diff --git a/source/i18n/translit.cpp b/source/i18n/translit.cpp |
index 9e28ea9d7bce1e0acf08ea77af915559ddb94b9a..8a2f98b30bb12df6541857fbd97ee1575410b950 100644 |
--- a/source/i18n/translit.cpp |
+++ b/source/i18n/translit.cpp |
@@ -1,6 +1,8 @@ |
+// Copyright (C) 2016 and later: Unicode, Inc. and others. |
+// License & terms of use: http://www.unicode.org/copyright.html |
/* |
********************************************************************** |
- * Copyright (C) 1999-2014, International Business Machines |
+ * Copyright (C) 1999-2016, International Business Machines |
* Corporation and others. All Rights Reserved. |
********************************************************************** |
* Date Name Description |
@@ -1501,6 +1503,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,6 +1512,10 @@ 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(T_PART) != -1) { |
+ ures_close(colBund); |
+ continue; |
+ } |
UResourceBundle* res = ures_getNextResource(colBund, NULL, &status); |
const char* typeStr = ures_getKey(res); |
UChar type; |