ICU 53.1  53.1
 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 
260 #ifndef UCONFIG_NO_CONVERSION
261 # define UCONFIG_NO_CONVERSION 0
262 #endif
263 
264 #if UCONFIG_NO_CONVERSION
265 # define UCONFIG_NO_LEGACY_CONVERSION 1
266 #endif
267 
280 #ifndef UCONFIG_NO_LEGACY_CONVERSION
281 # define UCONFIG_NO_LEGACY_CONVERSION 0
282 #endif
283 
292 #ifndef UCONFIG_NO_NORMALIZATION
293 # define UCONFIG_NO_NORMALIZATION 0
294 #elif UCONFIG_NO_NORMALIZATION
295  /* common library */
296  /* ICU 50 CJK dictionary BreakIterator uses normalization */
297 # define UCONFIG_NO_BREAK_ITERATION 1
298  /* IDNA (UTS #46) is implemented via normalization */
299 # define UCONFIG_NO_IDNA 1
300 
301  /* i18n library */
302 # if UCONFIG_ONLY_COLLATION
303 # error Contradictory collation switches in uconfig.h.
304 # endif
305 # define UCONFIG_NO_COLLATION 1
306 # define UCONFIG_NO_TRANSLITERATION 1
307 #endif
308 
315 #ifndef UCONFIG_NO_BREAK_ITERATION
316 # define UCONFIG_NO_BREAK_ITERATION 0
317 #endif
318 
325 #ifndef UCONFIG_NO_IDNA
326 # define UCONFIG_NO_IDNA 0
327 #endif
328 
336 #ifndef UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE
337 # define UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE UMSGPAT_APOS_DOUBLE_OPTIONAL
338 #endif
339 
340 /* i18n library switches ---------------------------------------------------- */
341 
348 #ifndef UCONFIG_NO_COLLATION
349 # define UCONFIG_NO_COLLATION 0
350 #endif
351 
358 #ifndef UCONFIG_NO_FORMATTING
359 # define UCONFIG_NO_FORMATTING 0
360 #endif
361 
368 #ifndef UCONFIG_NO_TRANSLITERATION
369 # define UCONFIG_NO_TRANSLITERATION 0
370 #endif
371 
378 #ifndef UCONFIG_NO_REGULAR_EXPRESSIONS
379 # define UCONFIG_NO_REGULAR_EXPRESSIONS 0
380 #endif
381 
388 #ifndef UCONFIG_NO_SERVICE
389 # define UCONFIG_NO_SERVICE 0
390 #endif
391 
398 #ifndef UCONFIG_HAVE_PARSEALLINPUT
399 # define UCONFIG_HAVE_PARSEALLINPUT 1
400 #endif
401 
402 
409 #ifndef UCONFIG_FORMAT_FASTPATHS_49
410 # define UCONFIG_FORMAT_FASTPATHS_49 1
411 #endif
412 
419 #ifndef UCONFIG_NO_FILTERED_BREAK_ITERATION
420 # define UCONFIG_NO_FILTERED_BREAK_ITERATION 1
421 #endif
422 
423 #endif