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

Unified Diff: source/i18n/transreg.cpp

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 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/tmutfmt.cpp ('k') | source/i18n/tzfmt.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/i18n/transreg.cpp
diff --git a/source/i18n/transreg.cpp b/source/i18n/transreg.cpp
index 77281511b0b11e0cbfbcbd3b0d9f6a9e08bc7ea2..445a26ac670bfd262572521ef6fa8e985829cb6b 100644
--- a/source/i18n/transreg.cpp
+++ b/source/i18n/transreg.cpp
@@ -1,6 +1,6 @@
/*
**********************************************************************
-* Copyright (c) 2001-2011, International Business Machines
+* Copyright (c) 2001-2014, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Date Name Description
@@ -728,7 +728,7 @@ int32_t TransliteratorRegistry::countAvailableSources(void) const {
UnicodeString& TransliteratorRegistry::getAvailableSource(int32_t index,
UnicodeString& result) const {
- int32_t pos = -1;
+ int32_t pos = UHASH_FIRST;
const UHashElement *e = 0;
while (index-- >= 0) {
e = specDAG.nextElement(pos);
@@ -757,7 +757,7 @@ UnicodeString& TransliteratorRegistry::getAvailableTarget(int32_t index,
result.truncate(0); // invalid source
return result;
}
- int32_t pos = -1;
+ int32_t pos = UHASH_FIRST;
const UHashElement *e = 0;
while (index-- >= 0) {
e = targets->nextElement(pos);
« no previous file with comments | « source/i18n/tmutfmt.cpp ('k') | source/i18n/tzfmt.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698