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

Side by Side Diff: source/tools/gennorm2/gennorm2.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/tools/gendict/gendict.vcxproj.filters ('k') | source/tools/gennorm2/gennorm2.vcxproj » ('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 * 3 *
4 * Copyright (C) 2009-2014, International Business Machines 4 * Copyright (C) 2009-2014, International Business Machines
5 * Corporation and others. All Rights Reserved. 5 * Corporation and others. All Rights Reserved.
6 * 6 *
7 ******************************************************************************* 7 *******************************************************************************
8 * file name: gennorm2.cpp 8 * file name: gennorm2.cpp
9 * encoding: US-ASCII 9 * encoding: US-ASCII
10 * tab size: 8 (not used) 10 * tab size: 8 (not used)
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 "gennorm2 writes a dummy binary data file " 135 "gennorm2 writes a dummy binary data file "
136 "because UCONFIG_NO_NORMALIZATION is set, \n" 136 "because UCONFIG_NO_NORMALIZATION is set, \n"
137 "see icu/source/common/unicode/uconfig.h\n"); 137 "see icu/source/common/unicode/uconfig.h\n");
138 udata_createDummy(NULL, NULL, options[OUTPUT_FILENAME].value, errorCode); 138 udata_createDummy(NULL, NULL, options[OUTPUT_FILENAME].value, errorCode);
139 // Should not return an error since this is the expected behaviour if UCONFI G_NO_NORMALIZATION is on. 139 // Should not return an error since this is the expected behaviour if UCONFI G_NO_NORMALIZATION is on.
140 // return U_UNSUPPORTED_ERROR; 140 // return U_UNSUPPORTED_ERROR;
141 return 0; 141 return 0;
142 142
143 #else 143 #else
144 144
145 LocalPointer<Normalizer2DataBuilder> builder(new Normalizer2DataBuilder(erro rCode)); 145 LocalPointer<Normalizer2DataBuilder> builder(new Normalizer2DataBuilder(erro rCode), errorCode);
146 errorCode.assertSuccess(); 146 errorCode.assertSuccess();
147 147
148 if(options[UNICODE_VERSION].doesOccur) { 148 if(options[UNICODE_VERSION].doesOccur) {
149 builder->setUnicodeVersion(options[UNICODE_VERSION].value); 149 builder->setUnicodeVersion(options[UNICODE_VERSION].value);
150 } 150 }
151 151
152 if(options[OPT_FAST].doesOccur) { 152 if(options[OPT_FAST].doesOccur) {
153 builder->setOptimization(Normalizer2DataBuilder::OPTIMIZE_FAST); 153 builder->setOptimization(Normalizer2DataBuilder::OPTIMIZE_FAST);
154 } 154 }
155 155
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 U_NAMESPACE_END 275 U_NAMESPACE_END
276 276
277 /* 277 /*
278 * Hey, Emacs, please set the following: 278 * Hey, Emacs, please set the following:
279 * 279 *
280 * Local Variables: 280 * Local Variables:
281 * indent-tabs-mode: nil 281 * indent-tabs-mode: nil
282 * End: 282 * End:
283 * 283 *
284 */ 284 */
OLDNEW
« no previous file with comments | « source/tools/gendict/gendict.vcxproj.filters ('k') | source/tools/gennorm2/gennorm2.vcxproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698