]> granicus.if.org Git - icu/commitdiff
ICU-12091 Ignore BCP 47 -t- style transliterator IDs. The support for such -t- IDs...
authorYoshito Umaoka <y.umaoka@gmail.com>
Wed, 3 Feb 2016 21:39:38 +0000 (21:39 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Wed, 3 Feb 2016 21:39:38 +0000 (21:39 +0000)
X-SVN-Rev: 38255

icu4c/source/i18n/translit.cpp

index 9e28ea9d7bce1e0acf08ea77af915559ddb94b9a..cd7b0f7789cbd22de953e68768e15ee95e4dd4e8 100644 (file)
@@ -1,6 +1,6 @@
 /*
  **********************************************************************
- *   Copyright (C) 1999-2014, International Business Machines
+ *   Copyright (C) 1999-2016, International Business Machines
  *   Corporation and others.  All Rights Reserved.
  **********************************************************************
  *   Date        Name        Description
@@ -1509,6 +1509,9 @@ 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) {
+                    continue;
+                }
                 UResourceBundle* res = ures_getNextResource(colBund, NULL, &status);
                 const char* typeStr = ures_getKey(res);
                 UChar type;