OLD | NEW |
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 Loading... |
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 Loading... |
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 */ |
OLD | NEW |