ICU 54.1 54.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
uconfig.h
Go to the documentation of this file.
1 /*
2 **********************************************************************
3 * Copyright (C) 2002-2014, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 * file name: uconfig.h
7 * encoding: US-ASCII
8 * tab size: 8 (not used)
9 * indentation:4
10 *
11 * created on: 2002sep19
12 * created by: Markus W. Scherer
13 */
14
15 #ifndef __UCONFIG_H__
16 #define __UCONFIG_H__
17
18
52 #if defined(UCONFIG_USE_LOCAL)
53 #include "uconfig_local.h"
54 #endif
55
63 #ifdef U_DEBUG
64 /* Use the predefined value. */
65 #elif defined(_DEBUG)
66 /*
67 * _DEBUG is defined by Visual Studio debug compilation.
68 * Do *not* test for its NDEBUG macro: It is an orthogonal macro
69 * which disables assert().
70 */
71 # define U_DEBUG 1
72 # else
73 # define U_DEBUG 0
74 #endif
75
80 #ifndef UCLN_NO_AUTO_CLEANUP
81 #define UCLN_NO_AUTO_CLEANUP 1
82 #endif
83
89 #ifndef U_DISABLE_RENAMING
90 #define U_DISABLE_RENAMING 0
91 #endif
92
101 #ifdef U_NO_DEFAULT_INCLUDE_UTF_HEADERS
102 /* Use the predefined value. */
103 #elif defined(U_COMBINED_IMPLEMENTATION) || defined(U_COMMON_IMPLEMENTATION) || defined(U_I18N_IMPLEMENTATION) || \
104 defined(U_IO_IMPLEMENTATION) || defined(U_LAYOUT_IMPLEMENTATION) || defined(U_LAYOUTEX_IMPLEMENTATION) || \
105 defined(U_TOOLUTIL_IMPLEMENTATION)
106 # define U_NO_DEFAULT_INCLUDE_UTF_HEADERS 1
107 #else
108 # define U_NO_DEFAULT_INCLUDE_UTF_HEADERS 0
109 #endif
110
124 #ifndef U_OVERRIDE_CXX_ALLOCATION
125 #define U_OVERRIDE_CXX_ALLOCATION 1
126 #endif
127
133 #ifndef U_ENABLE_TRACING
134 #define U_ENABLE_TRACING 0
135 #endif
136
142 #ifndef U_ENABLE_DYLOAD
143 #define U_ENABLE_DYLOAD 1
144 #endif
145
151 #ifndef U_CHECK_DYLOAD
152 #define U_CHECK_DYLOAD 1
153 #endif
154
155
161 #ifndef U_DEFAULT_SHOW_DRAFT
162 #define U_DEFAULT_SHOW_DRAFT 1
163 #endif
164
165 /*===========================================================================*/
166 /* Custom icu entry point renaming */
167 /*===========================================================================*/
168
174 #ifdef U_HAVE_LIB_SUFFIX
175 /* Use the predefined value. */
176 #elif defined(U_LIB_SUFFIX_C_NAME)
177 # define U_HAVE_LIB_SUFFIX 1
178 #endif
179
185 #ifdef U_LIB_SUFFIX_C_NAME_STRING
186 /* Use the predefined value. */
187 #elif defined(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)
190 #else
191 # define U_LIB_SUFFIX_C_NAME_STRING ""
192 #endif
193
194 /* common/i18n library switches --------------------------------------------- */
195
207 #ifndef UCONFIG_ONLY_COLLATION
208 # define UCONFIG_ONLY_COLLATION 0
209 #endif
210
211 #if UCONFIG_ONLY_COLLATION
212 /* common library */
213 # define UCONFIG_NO_BREAK_ITERATION 1
214 # define UCONFIG_NO_IDNA 1
215
216 /* i18n library */
217 # if UCONFIG_NO_COLLATION
218 # error Contradictory collation switches in uconfig.h.
219 # endif
220 # define UCONFIG_NO_FORMATTING 1
221 # define UCONFIG_NO_TRANSLITERATION 1
222 # define UCONFIG_NO_REGULAR_EXPRESSIONS 1
223 #endif
224
225 /* common library switches -------------------------------------------------- */
226
245 #ifndef UCONFIG_NO_FILE_IO
246 # define UCONFIG_NO_FILE_IO 0
247 #endif
248
249 #if UCONFIG_NO_FILE_IO && defined(U_TIMEZONE_FILES_DIR)
250 # error Contradictory file io switches in uconfig.h.
251 #endif
252
264 #ifndef UCONFIG_NO_CONVERSION
265 # define UCONFIG_NO_CONVERSION 0
266 #endif
267
268 #if UCONFIG_NO_CONVERSION
269 # define UCONFIG_NO_LEGACY_CONVERSION 1
270 #endif
271
284 #ifndef UCONFIG_NO_LEGACY_CONVERSION
285 # define UCONFIG_NO_LEGACY_CONVERSION 0
286 #endif
287
296 #ifndef UCONFIG_NO_NORMALIZATION
297 # define UCONFIG_NO_NORMALIZATION 0
298 #elif UCONFIG_NO_NORMALIZATION
299 /* common library */
300 /* ICU 50 CJK dictionary BreakIterator uses normalization */
301 # define UCONFIG_NO_BREAK_ITERATION 1
302 /* IDNA (UTS #46) is implemented via normalization */
303 # define UCONFIG_NO_IDNA 1
304
305 /* i18n library */
306 # if UCONFIG_ONLY_COLLATION
307 # error Contradictory collation switches in uconfig.h.
308 # endif
309 # define UCONFIG_NO_COLLATION 1
310 # define UCONFIG_NO_TRANSLITERATION 1
311 #endif
312
319 #ifndef UCONFIG_NO_BREAK_ITERATION
320 # define UCONFIG_NO_BREAK_ITERATION 0
321 #endif
322
329 #ifndef UCONFIG_NO_IDNA
330 # define UCONFIG_NO_IDNA 0
331 #endif
332
340 #ifndef UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE
341 # define UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE UMSGPAT_APOS_DOUBLE_OPTIONAL
342 #endif
343
344 /* i18n library switches ---------------------------------------------------- */
345
352 #ifndef UCONFIG_NO_COLLATION
353 # define UCONFIG_NO_COLLATION 0
354 #endif
355
362 #ifndef UCONFIG_NO_FORMATTING
363 # define UCONFIG_NO_FORMATTING 0
364 #endif
365
372 #ifndef UCONFIG_NO_TRANSLITERATION
373 # define UCONFIG_NO_TRANSLITERATION 0
374 #endif
375
382 #ifndef UCONFIG_NO_REGULAR_EXPRESSIONS
383 # define UCONFIG_NO_REGULAR_EXPRESSIONS 0
384 #endif
385
392 #ifndef UCONFIG_NO_SERVICE
393 # define UCONFIG_NO_SERVICE 0
394 #endif
395
402 #ifndef UCONFIG_HAVE_PARSEALLINPUT
403 # define UCONFIG_HAVE_PARSEALLINPUT 1
404 #endif
405
406
413 #ifndef UCONFIG_FORMAT_FASTPATHS_49
414 # define UCONFIG_FORMAT_FASTPATHS_49 1
415 #endif
416
423 #ifndef UCONFIG_NO_FILTERED_BREAK_ITERATION
424 # define UCONFIG_NO_FILTERED_BREAK_ITERATION 0
425
426
427
428 #endif
429
430 #endif