ICU 59.1  59.1
uconfig.h
Go to the documentation of this file.
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /*
4 **********************************************************************
5 * Copyright (C) 2002-2016, International Business Machines
6 * Corporation and others. All Rights Reserved.
7 **********************************************************************
8 * file name: uconfig.h
9 * encoding: UTF-8
10 * tab size: 8 (not used)
11 * indentation:4
12 *
13 * created on: 2002sep19
14 * created by: Markus W. Scherer
15 */
16 
17 #ifndef __UCONFIG_H__
18 #define __UCONFIG_H__
19 
20 
54 #if defined(UCONFIG_USE_LOCAL)
55 #include "uconfig_local.h"
56 #endif
57 
65 #ifdef U_DEBUG
66  /* Use the predefined value. */
67 #elif defined(_DEBUG)
68  /*
69  * _DEBUG is defined by Visual Studio debug compilation.
70  * Do *not* test for its NDEBUG macro: It is an orthogonal macro
71  * which disables assert().
72  */
73 # define U_DEBUG 1
74 # else
75 # define U_DEBUG 0
76 #endif
77 
82 #ifndef UCLN_NO_AUTO_CLEANUP
83 #define UCLN_NO_AUTO_CLEANUP 1
84 #endif
85 
91 #ifndef U_DISABLE_RENAMING
92 #define U_DISABLE_RENAMING 0
93 #endif
94 
103 #ifdef U_NO_DEFAULT_INCLUDE_UTF_HEADERS
104  /* Use the predefined value. */
105 #elif defined(U_COMBINED_IMPLEMENTATION) || defined(U_COMMON_IMPLEMENTATION) || defined(U_I18N_IMPLEMENTATION) || \
106  defined(U_IO_IMPLEMENTATION) || defined(U_LAYOUT_IMPLEMENTATION) || defined(U_LAYOUTEX_IMPLEMENTATION) || \
107  defined(U_TOOLUTIL_IMPLEMENTATION)
108 # define U_NO_DEFAULT_INCLUDE_UTF_HEADERS 1
109 #else
110 # define U_NO_DEFAULT_INCLUDE_UTF_HEADERS 0
111 #endif
112 
126 #ifndef U_OVERRIDE_CXX_ALLOCATION
127 #define U_OVERRIDE_CXX_ALLOCATION 1
128 #endif
129 
135 #ifndef U_ENABLE_TRACING
136 #define U_ENABLE_TRACING 0
137 #endif
138 
144 #ifndef UCONFIG_ENABLE_PLUGINS
145 #define UCONFIG_ENABLE_PLUGINS 0
146 #endif
147 
153 #ifndef U_ENABLE_DYLOAD
154 #define U_ENABLE_DYLOAD 1
155 #endif
156 
162 #ifndef U_CHECK_DYLOAD
163 #define U_CHECK_DYLOAD 1
164 #endif
165 
171 #ifndef U_DEFAULT_SHOW_DRAFT
172 #define U_DEFAULT_SHOW_DRAFT 1
173 #endif
174 
175 /*===========================================================================*/
176 /* Custom icu entry point renaming */
177 /*===========================================================================*/
178 
184 #ifdef U_HAVE_LIB_SUFFIX
185  /* Use the predefined value. */
186 #elif defined(U_LIB_SUFFIX_C_NAME)
187 # define U_HAVE_LIB_SUFFIX 1
188 #endif
189 
195 #ifdef U_LIB_SUFFIX_C_NAME_STRING
196  /* Use the predefined value. */
197 #elif defined(U_LIB_SUFFIX_C_NAME)
198 # define CONVERT_TO_STRING(s) #s
199 # define U_LIB_SUFFIX_C_NAME_STRING CONVERT_TO_STRING(U_LIB_SUFFIX_C_NAME)
200 #else
201 # define U_LIB_SUFFIX_C_NAME_STRING ""
202 #endif
203 
204 /* common/i18n library switches --------------------------------------------- */
205 
217 #ifndef UCONFIG_ONLY_COLLATION
218 # define UCONFIG_ONLY_COLLATION 0
219 #endif
220 
221 #if UCONFIG_ONLY_COLLATION
222  /* common library */
223 # define UCONFIG_NO_BREAK_ITERATION 1
224 # define UCONFIG_NO_IDNA 1
225 
226  /* i18n library */
227 # if UCONFIG_NO_COLLATION
228 # error Contradictory collation switches in uconfig.h.
229 # endif
230 # define UCONFIG_NO_FORMATTING 1
231 # define UCONFIG_NO_TRANSLITERATION 1
232 # define UCONFIG_NO_REGULAR_EXPRESSIONS 1
233 #endif
234 
235 /* common library switches -------------------------------------------------- */
236 
255 #ifndef UCONFIG_NO_FILE_IO
256 # define UCONFIG_NO_FILE_IO 0
257 #endif
258 
259 #if UCONFIG_NO_FILE_IO && defined(U_TIMEZONE_FILES_DIR)
260 # error Contradictory file io switches in uconfig.h.
261 #endif
262 
274 #ifndef UCONFIG_NO_CONVERSION
275 # define UCONFIG_NO_CONVERSION 0
276 #endif
277 
278 #if UCONFIG_NO_CONVERSION
279 # define UCONFIG_NO_LEGACY_CONVERSION 1
280 #endif
281 
293 #ifndef UCONFIG_ONLY_HTML_CONVERSION
294 # define UCONFIG_ONLY_HTML_CONVERSION 0
295 #endif
296 
309 #ifndef UCONFIG_NO_LEGACY_CONVERSION
310 # define UCONFIG_NO_LEGACY_CONVERSION 0
311 #endif
312 
321 #ifndef UCONFIG_NO_NORMALIZATION
322 # define UCONFIG_NO_NORMALIZATION 0
323 #elif UCONFIG_NO_NORMALIZATION
324  /* common library */
325  /* ICU 50 CJK dictionary BreakIterator uses normalization */
326 # define UCONFIG_NO_BREAK_ITERATION 1
327  /* IDNA (UTS #46) is implemented via normalization */
328 # define UCONFIG_NO_IDNA 1
329 
330  /* i18n library */
331 # if UCONFIG_ONLY_COLLATION
332 # error Contradictory collation switches in uconfig.h.
333 # endif
334 # define UCONFIG_NO_COLLATION 1
335 # define UCONFIG_NO_TRANSLITERATION 1
336 #endif
337 
344 #ifndef UCONFIG_NO_BREAK_ITERATION
345 # define UCONFIG_NO_BREAK_ITERATION 0
346 #endif
347 
354 #ifndef UCONFIG_NO_IDNA
355 # define UCONFIG_NO_IDNA 0
356 #endif
357 
365 #ifndef UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE
366 # define UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE UMSGPAT_APOS_DOUBLE_OPTIONAL
367 #endif
368 
369 /* i18n library switches ---------------------------------------------------- */
370 
377 #ifndef UCONFIG_NO_COLLATION
378 # define UCONFIG_NO_COLLATION 0
379 #endif
380 
387 #ifndef UCONFIG_NO_FORMATTING
388 # define UCONFIG_NO_FORMATTING 0
389 #endif
390 
397 #ifndef UCONFIG_NO_TRANSLITERATION
398 # define UCONFIG_NO_TRANSLITERATION 0
399 #endif
400 
407 #ifndef UCONFIG_NO_REGULAR_EXPRESSIONS
408 # define UCONFIG_NO_REGULAR_EXPRESSIONS 0
409 #endif
410 
417 #ifndef UCONFIG_NO_SERVICE
418 # define UCONFIG_NO_SERVICE 0
419 #endif
420 
427 #ifndef UCONFIG_HAVE_PARSEALLINPUT
428 # define UCONFIG_HAVE_PARSEALLINPUT 1
429 #endif
430 
431 
438 #ifndef UCONFIG_FORMAT_FASTPATHS_49
439 # define UCONFIG_FORMAT_FASTPATHS_49 1
440 #endif
441 
448 #ifndef UCONFIG_NO_FILTERED_BREAK_ITERATION
449 # define UCONFIG_NO_FILTERED_BREAK_ITERATION 0
450 #endif
451 
452 #endif