ICU 55.1  55.1
uconfig.h
Go to the documentation of this file.
1 /*
2 **********************************************************************
3 * Copyright (C) 2002-2015, 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 
283 #ifndef UCONFIG_ONLY_HTML_CONVERSION
284 # define UCONFIG_ONLY_HTML_CONVERSION 0
285 #endif
286 
299 #ifndef UCONFIG_NO_LEGACY_CONVERSION
300 # define UCONFIG_NO_LEGACY_CONVERSION 0
301 #endif
302 
311 #ifndef UCONFIG_NO_NORMALIZATION
312 # define UCONFIG_NO_NORMALIZATION 0
313 #elif UCONFIG_NO_NORMALIZATION
314  /* common library */
315  /* ICU 50 CJK dictionary BreakIterator uses normalization */
316 # define UCONFIG_NO_BREAK_ITERATION 1
317  /* IDNA (UTS #46) is implemented via normalization */
318 # define UCONFIG_NO_IDNA 1
319 
320  /* i18n library */
321 # if UCONFIG_ONLY_COLLATION
322 # error Contradictory collation switches in uconfig.h.
323 # endif
324 # define UCONFIG_NO_COLLATION 1
325 # define UCONFIG_NO_TRANSLITERATION 1
326 #endif
327 
334 #ifndef UCONFIG_NO_BREAK_ITERATION
335 # define UCONFIG_NO_BREAK_ITERATION 0
336 #endif
337 
344 #ifndef UCONFIG_NO_IDNA
345 # define UCONFIG_NO_IDNA 0
346 #endif
347 
355 #ifndef UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE
356 # define UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE UMSGPAT_APOS_DOUBLE_OPTIONAL
357 #endif
358 
359 /* i18n library switches ---------------------------------------------------- */
360 
367 #ifndef UCONFIG_NO_COLLATION
368 # define UCONFIG_NO_COLLATION 0
369 #endif
370 
377 #ifndef UCONFIG_NO_FORMATTING
378 # define UCONFIG_NO_FORMATTING 0
379 #endif
380 
387 #ifndef UCONFIG_NO_TRANSLITERATION
388 # define UCONFIG_NO_TRANSLITERATION 0
389 #endif
390 
397 #ifndef UCONFIG_NO_REGULAR_EXPRESSIONS
398 # define UCONFIG_NO_REGULAR_EXPRESSIONS 0
399 #endif
400 
407 #ifndef UCONFIG_NO_SERVICE
408 # define UCONFIG_NO_SERVICE 0
409 #endif
410 
417 #ifndef UCONFIG_HAVE_PARSEALLINPUT
418 # define UCONFIG_HAVE_PARSEALLINPUT 1
419 #endif
420 
421 
428 #ifndef UCONFIG_FORMAT_FASTPATHS_49
429 # define UCONFIG_FORMAT_FASTPATHS_49 1
430 #endif
431 
438 #ifndef UCONFIG_NO_FILTERED_BREAK_ITERATION
439 # define UCONFIG_NO_FILTERED_BREAK_ITERATION 0
440 
441 
442 
443 #endif
444 
445 #endif