OLD | NEW |
1 /* | 1 /* |
2 ********************************************************************** | 2 ********************************************************************** |
3 * Copyright (C) 2002-2013, International Business Machines | 3 * Copyright (C) 2002-2014, International Business Machines |
4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
5 ********************************************************************** | 5 ********************************************************************** |
6 * file name: uconfig.h | 6 * file name: uconfig.h |
7 * encoding: US-ASCII | 7 * encoding: US-ASCII |
8 * tab size: 8 (not used) | 8 * tab size: 8 (not used) |
9 * indentation:4 | 9 * indentation:4 |
10 * | 10 * |
11 * created on: 2002sep19 | 11 * created on: 2002sep19 |
12 * created by: Markus W. Scherer | 12 * created by: Markus W. Scherer |
13 */ | 13 */ |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 #endif | 178 #endif |
179 | 179 |
180 /** | 180 /** |
181 * \def U_LIB_SUFFIX_C_NAME_STRING | 181 * \def U_LIB_SUFFIX_C_NAME_STRING |
182 * Defines the library suffix as a string with C syntax. | 182 * Defines the library suffix as a string with C syntax. |
183 * @internal | 183 * @internal |
184 */ | 184 */ |
185 #ifdef U_LIB_SUFFIX_C_NAME_STRING | 185 #ifdef U_LIB_SUFFIX_C_NAME_STRING |
186 /* Use the predefined value. */ | 186 /* Use the predefined value. */ |
187 #elif defined(U_LIB_SUFFIX_C_NAME) | 187 #elif defined(U_LIB_SUFFIX_C_NAME) |
188 # define U_LIB_SUFFIX_C_NAME_STRING #U_LIB_SUFFIX_C_NAME | 188 # define CONVERT_TO_STRING(s) #s |
| 189 # define U_LIB_SUFFIX_C_NAME_STRING CONVERT_TO_STRING(U_LIB_SUFFIX_C_NAME) |
189 #else | 190 #else |
190 # define U_LIB_SUFFIX_C_NAME_STRING "" | 191 # define U_LIB_SUFFIX_C_NAME_STRING "" |
191 #endif | 192 #endif |
192 | 193 |
193 /* common/i18n library switches --------------------------------------------- */ | 194 /* common/i18n library switches --------------------------------------------- */ |
194 | 195 |
195 /** | 196 /** |
196 * \def UCONFIG_ONLY_COLLATION | 197 * \def UCONFIG_ONLY_COLLATION |
197 * This switch turns off modules that are not needed for collation. | 198 * This switch turns off modules that are not needed for collation. |
198 * | 199 * |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 * | 239 * |
239 * File access cannot be turned off for the icuio library or for the ICU | 240 * File access cannot be turned off for the icuio library or for the ICU |
240 * test suites and ICU tools. | 241 * test suites and ICU tools. |
241 * | 242 * |
242 * @stable ICU 3.6 | 243 * @stable ICU 3.6 |
243 */ | 244 */ |
244 #ifndef UCONFIG_NO_FILE_IO | 245 #ifndef UCONFIG_NO_FILE_IO |
245 # define UCONFIG_NO_FILE_IO 0 | 246 # define UCONFIG_NO_FILE_IO 0 |
246 #endif | 247 #endif |
247 | 248 |
| 249 #if UCONFIG_NO_FILE_IO && defined(U_TIMEZONE_FILES_DIR) |
| 250 # error Contradictory file io switches in uconfig.h. |
| 251 #endif |
| 252 |
248 /** | 253 /** |
249 * \def UCONFIG_NO_CONVERSION | 254 * \def UCONFIG_NO_CONVERSION |
250 * ICU will not completely build with this switch turned on. | 255 * ICU will not completely build with this switch turned on. |
251 * This switch turns off all converters. | 256 * This switch turns off all converters. |
252 * | 257 * |
253 * You may want to use this together with U_CHARSET_IS_UTF8 defined to 1 | 258 * You may want to use this together with U_CHARSET_IS_UTF8 defined to 1 |
254 * in utypes.h if char* strings in your environment are always in UTF-8. | 259 * in utypes.h if char* strings in your environment are always in UTF-8. |
255 * | 260 * |
256 * @stable ICU 3.2 | 261 * @stable ICU 3.2 |
257 * @see U_CHARSET_IS_UTF8 | 262 * @see U_CHARSET_IS_UTF8 |
258 */ | 263 */ |
259 #ifndef UCONFIG_NO_CONVERSION | 264 #ifndef UCONFIG_NO_CONVERSION |
260 # define UCONFIG_NO_CONVERSION 0 | 265 # define UCONFIG_NO_CONVERSION 0 |
261 #endif | 266 #endif |
262 | 267 |
263 #if UCONFIG_NO_CONVERSION | 268 #if UCONFIG_NO_CONVERSION |
264 # define UCONFIG_NO_LEGACY_CONVERSION 1 | 269 # define UCONFIG_NO_LEGACY_CONVERSION 1 |
265 #endif | 270 #endif |
266 | 271 |
267 /** | 272 /** |
268 * This switch turns off all the converters NOT listed in | |
269 * the encoding standard : http://encoding.spec.whatwg.org | |
270 */ | |
271 #ifndef UCONFIG_NO_NON_HTML5_CONVERSION | |
272 #define UCONFIG_NO_NON_HTML5_CONVERSION 0 | |
273 #endif | |
274 | |
275 /** | |
276 * \def UCONFIG_NO_LEGACY_CONVERSION | 273 * \def UCONFIG_NO_LEGACY_CONVERSION |
277 * This switch turns off all converters except for | 274 * This switch turns off all converters except for |
278 * - Unicode charsets (UTF-7/8/16/32, CESU-8, SCSU, BOCU-1) | 275 * - Unicode charsets (UTF-7/8/16/32, CESU-8, SCSU, BOCU-1) |
279 * - US-ASCII | 276 * - US-ASCII |
280 * - ISO-8859-1 | 277 * - ISO-8859-1 |
281 * | 278 * |
282 * Turning off legacy conversion is not possible on EBCDIC platforms | 279 * Turning off legacy conversion is not possible on EBCDIC platforms |
283 * because they need ibm-37 or ibm-1047 default converters. | 280 * because they need ibm-37 or ibm-1047 default converters. |
284 * | 281 * |
285 * @stable ICU 2.4 | 282 * @stable ICU 2.4 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 /** | 407 /** |
411 * \def UCONFIG_FORMAT_FASTPATHS_49 | 408 * \def UCONFIG_FORMAT_FASTPATHS_49 |
412 * This switch turns on other formatting fastpaths. Binary incompatible in objec
t DecimalFormat and DecimalFormatSymbols | 409 * This switch turns on other formatting fastpaths. Binary incompatible in objec
t DecimalFormat and DecimalFormatSymbols |
413 * | 410 * |
414 * @internal | 411 * @internal |
415 */ | 412 */ |
416 #ifndef UCONFIG_FORMAT_FASTPATHS_49 | 413 #ifndef UCONFIG_FORMAT_FASTPATHS_49 |
417 # define UCONFIG_FORMAT_FASTPATHS_49 1 | 414 # define UCONFIG_FORMAT_FASTPATHS_49 1 |
418 #endif | 415 #endif |
419 | 416 |
| 417 /** |
| 418 * \def UCONFIG_NO_FILTERED_BREAK_ITERATION |
| 419 * This switch turns off filtered break iteration code. |
| 420 * |
| 421 * @internal |
| 422 */ |
| 423 #ifndef UCONFIG_NO_FILTERED_BREAK_ITERATION |
| 424 # define UCONFIG_NO_FILTERED_BREAK_ITERATION 0 |
| 425 |
| 426 |
| 427 |
420 #endif | 428 #endif |
| 429 |
| 430 #endif |
OLD | NEW |