Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(771)

Unified Diff: source/i18n/translit.cpp

Issue 2440913002: Update ICU to 58.1
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/i18n/toupptrn.cpp ('k') | source/i18n/transreg.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « source/i18n/toupptrn.cpp ('k') | source/i18n/transreg.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698