00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __UCONFIG_H__
00018 #define __UCONFIG_H__
00019
00020
00054 #if defined(UCONFIG_USE_LOCAL)
00055 #include "uconfig_local.h"
00056 #endif
00057
00065 #ifdef U_DEBUG
00066
00067 #elif defined(_DEBUG)
00068
00069
00070
00071
00072
00073 # define U_DEBUG 1
00074 # else
00075 # define U_DEBUG 0
00076 #endif
00077
00082 #ifndef UCLN_NO_AUTO_CLEANUP
00083 #define UCLN_NO_AUTO_CLEANUP 1
00084 #endif
00085
00091 #ifndef U_DISABLE_RENAMING
00092 #define U_DISABLE_RENAMING 0
00093 #endif
00094
00103 #ifdef U_NO_DEFAULT_INCLUDE_UTF_HEADERS
00104
00105 #elif defined(U_COMBINED_IMPLEMENTATION) || defined(U_COMMON_IMPLEMENTATION) || defined(U_I18N_IMPLEMENTATION) || \
00106 defined(U_IO_IMPLEMENTATION) || defined(U_LAYOUT_IMPLEMENTATION) || defined(U_LAYOUTEX_IMPLEMENTATION) || \
00107 defined(U_TOOLUTIL_IMPLEMENTATION)
00108 # define U_NO_DEFAULT_INCLUDE_UTF_HEADERS 1
00109 #else
00110 # define U_NO_DEFAULT_INCLUDE_UTF_HEADERS 0
00111 #endif
00112
00126 #ifndef U_OVERRIDE_CXX_ALLOCATION
00127 #define U_OVERRIDE_CXX_ALLOCATION 1
00128 #endif
00129
00135 #ifndef U_ENABLE_TRACING
00136 #define U_ENABLE_TRACING 0
00137 #endif
00138
00144 #ifndef UCONFIG_ENABLE_PLUGINS
00145 #define UCONFIG_ENABLE_PLUGINS 0
00146 #endif
00147
00153 #ifndef U_ENABLE_DYLOAD
00154 #define U_ENABLE_DYLOAD 1
00155 #endif
00156
00162 #ifndef U_CHECK_DYLOAD
00163 #define U_CHECK_DYLOAD 1
00164 #endif
00165
00171 #ifndef U_DEFAULT_SHOW_DRAFT
00172 #define U_DEFAULT_SHOW_DRAFT 1
00173 #endif
00174
00175
00176
00177
00178
00184 #ifdef U_HAVE_LIB_SUFFIX
00185
00186 #elif defined(U_LIB_SUFFIX_C_NAME) || defined(U_IN_DOXYGEN)
00187 # define U_HAVE_LIB_SUFFIX 1
00188 #endif
00189
00195 #ifdef U_LIB_SUFFIX_C_NAME_STRING
00196
00197 #elif defined(U_LIB_SUFFIX_C_NAME)
00198 # define CONVERT_TO_STRING(s) #s
00199 # define U_LIB_SUFFIX_C_NAME_STRING CONVERT_TO_STRING(U_LIB_SUFFIX_C_NAME)
00200 #else
00201 # define U_LIB_SUFFIX_C_NAME_STRING ""
00202 #endif
00203
00204
00205
00217 #ifndef UCONFIG_ONLY_COLLATION
00218 # define UCONFIG_ONLY_COLLATION 0
00219 #endif
00220
00221 #if UCONFIG_ONLY_COLLATION
00222
00223 # define UCONFIG_NO_BREAK_ITERATION 1
00224 # define UCONFIG_NO_IDNA 1
00225
00226
00227 # if UCONFIG_NO_COLLATION
00228 # error Contradictory collation switches in uconfig.h.
00229 # endif
00230 # define UCONFIG_NO_FORMATTING 1
00231 # define UCONFIG_NO_TRANSLITERATION 1
00232 # define UCONFIG_NO_REGULAR_EXPRESSIONS 1
00233 #endif
00234
00235
00236
00255 #ifndef UCONFIG_NO_FILE_IO
00256 # define UCONFIG_NO_FILE_IO 0
00257 #endif
00258
00259 #if UCONFIG_NO_FILE_IO && defined(U_TIMEZONE_FILES_DIR)
00260 # error Contradictory file io switches in uconfig.h.
00261 #endif
00262
00275 #ifndef UCONFIG_NO_CONVERSION
00276 # define UCONFIG_NO_CONVERSION 0
00277 #endif
00278
00279 #if UCONFIG_NO_CONVERSION
00280 # define UCONFIG_NO_LEGACY_CONVERSION 1
00281 #endif
00282
00294 #ifndef UCONFIG_ONLY_HTML_CONVERSION
00295 # define UCONFIG_ONLY_HTML_CONVERSION 0
00296 #endif
00297
00310 #ifndef UCONFIG_NO_LEGACY_CONVERSION
00311 # define UCONFIG_NO_LEGACY_CONVERSION 0
00312 #endif
00313
00322 #ifndef UCONFIG_NO_NORMALIZATION
00323 # define UCONFIG_NO_NORMALIZATION 0
00324 #endif
00325
00326 #if UCONFIG_NO_NORMALIZATION
00327
00328
00329 # define UCONFIG_NO_BREAK_ITERATION 1
00330
00331 # define UCONFIG_NO_IDNA 1
00332
00333
00334 # if UCONFIG_ONLY_COLLATION
00335 # error Contradictory collation switches in uconfig.h.
00336 # endif
00337 # define UCONFIG_NO_COLLATION 1
00338 # define UCONFIG_NO_TRANSLITERATION 1
00339 #endif
00340
00347 #ifndef UCONFIG_NO_BREAK_ITERATION
00348 # define UCONFIG_NO_BREAK_ITERATION 0
00349 #endif
00350
00357 #ifndef UCONFIG_NO_IDNA
00358 # define UCONFIG_NO_IDNA 0
00359 #endif
00360
00368 #ifndef UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE
00369 # define UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE UMSGPAT_APOS_DOUBLE_OPTIONAL
00370 #endif
00371
00380 #ifndef UCONFIG_USE_WINDOWS_LCID_MAPPING_API
00381 # define UCONFIG_USE_WINDOWS_LCID_MAPPING_API 1
00382 #endif
00383
00384
00385
00392 #ifndef UCONFIG_NO_COLLATION
00393 # define UCONFIG_NO_COLLATION 0
00394 #endif
00395
00402 #ifndef UCONFIG_NO_FORMATTING
00403 # define UCONFIG_NO_FORMATTING 0
00404 #endif
00405
00412 #ifndef UCONFIG_NO_TRANSLITERATION
00413 # define UCONFIG_NO_TRANSLITERATION 0
00414 #endif
00415
00422 #ifndef UCONFIG_NO_REGULAR_EXPRESSIONS
00423 # define UCONFIG_NO_REGULAR_EXPRESSIONS 0
00424 #endif
00425
00432 #ifndef UCONFIG_NO_SERVICE
00433 # define UCONFIG_NO_SERVICE 0
00434 #endif
00435
00442 #ifndef UCONFIG_HAVE_PARSEALLINPUT
00443 # define UCONFIG_HAVE_PARSEALLINPUT 1
00444 #endif
00445
00452 #ifndef UCONFIG_NO_FILTERED_BREAK_ITERATION
00453 # define UCONFIG_NO_FILTERED_BREAK_ITERATION 0
00454 #endif
00455
00456 #endif