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

Side by Side Diff: source/i18n/rbt_data.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 unified diff | Download patch
« no previous file with comments | « source/i18n/rbt.cpp ('k') | source/i18n/rbt_pars.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ********************************************************************** 2 **********************************************************************
3 * Copyright (C) 1999-2014, International Business Machines 3 * Copyright (C) 1999-2014, International Business Machines
4 * Corporation and others. All Rights Reserved. 4 * Corporation and others. All Rights Reserved.
5 ********************************************************************** 5 **********************************************************************
6 * Date Name Description 6 * Date Name Description
7 * 11/17/99 aliu Creation. 7 * 11/17/99 aliu Creation.
8 ********************************************************************** 8 **********************************************************************
9 */ 9 */
10 10
(...skipping 24 matching lines...) Expand all
35 35
36 TransliterationRuleData::TransliterationRuleData(const TransliterationRuleData& other) : 36 TransliterationRuleData::TransliterationRuleData(const TransliterationRuleData& other) :
37 UMemory(other), ruleSet(other.ruleSet), 37 UMemory(other), ruleSet(other.ruleSet),
38 variablesAreOwned(TRUE), 38 variablesAreOwned(TRUE),
39 variablesBase(other.variablesBase), 39 variablesBase(other.variablesBase),
40 variablesLength(other.variablesLength) 40 variablesLength(other.variablesLength)
41 { 41 {
42 UErrorCode status = U_ZERO_ERROR; 42 UErrorCode status = U_ZERO_ERROR;
43 int32_t i = 0; 43 int32_t i = 0;
44 variableNames.setValueDeleter(uprv_deleteUObject); 44 variableNames.setValueDeleter(uprv_deleteUObject);
45 int32_t pos = -1; 45 int32_t pos = UHASH_FIRST;
46 const UHashElement *e; 46 const UHashElement *e;
47 while ((e = other.variableNames.nextElement(pos)) != 0) { 47 while ((e = other.variableNames.nextElement(pos)) != 0) {
48 UnicodeString* value = 48 UnicodeString* value =
49 new UnicodeString(*(const UnicodeString*)e->value.pointer); 49 new UnicodeString(*(const UnicodeString*)e->value.pointer);
50 // Exit out if value could not be created. 50 // Exit out if value could not be created.
51 if (value == NULL) { 51 if (value == NULL) {
52 return; 52 return;
53 } 53 }
54 variableNames.put(*(UnicodeString*)e->key.pointer, value, status); 54 variableNames.put(*(UnicodeString*)e->key.pointer, value, status);
55 } 55 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 UnicodeReplacer* 108 UnicodeReplacer*
109 TransliterationRuleData::lookupReplacer(UChar32 standIn) const { 109 TransliterationRuleData::lookupReplacer(UChar32 standIn) const {
110 UnicodeFunctor *f = lookup(standIn); 110 UnicodeFunctor *f = lookup(standIn);
111 return (f != 0) ? f->toReplacer() : 0; 111 return (f != 0) ? f->toReplacer() : 0;
112 } 112 }
113 113
114 114
115 U_NAMESPACE_END 115 U_NAMESPACE_END
116 116
117 #endif /* #if !UCONFIG_NO_TRANSLITERATION */ 117 #endif /* #if !UCONFIG_NO_TRANSLITERATION */
OLDNEW
« no previous file with comments | « source/i18n/rbt.cpp ('k') | source/i18n/rbt_pars.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698