uconfig.h

Go to the documentation of this file.
00001 /*  
00002 **********************************************************************
00003 *   Copyright (C) 2002-2012, International Business Machines
00004 *   Corporation and others.  All Rights Reserved.
00005 **********************************************************************
00006 *   file name:  uconfig.h
00007 *   encoding:   US-ASCII
00008 *   tab size:   8 (not used)
00009 *   indentation:4
00010 *
00011 *   created on: 2002sep19
00012 *   created by: Markus W. Scherer
00013 */
00014 
00015 #ifndef __UCONFIG_H__
00016 #define __UCONFIG_H__
00017 
00018 
00052 #if defined(UCONFIG_USE_LOCAL)
00053 #include "uconfig_local.h"
00054 #endif
00055 
00063 #ifdef U_DEBUG
00064     /* Use the predefined value. */
00065 #elif defined(_DEBUG)
00066     /*
00067      * _DEBUG is defined by Visual Studio debug compilation.
00068      * Do *not* test for its NDEBUG macro: It is an orthogonal macro
00069      * which disables assert().
00070      */
00071 #   define U_DEBUG 1
00072 # else
00073 #   define U_DEBUG 0
00074 #endif
00075 
00080 #ifndef UCLN_NO_AUTO_CLEANUP
00081 #define UCLN_NO_AUTO_CLEANUP 1
00082 #endif
00083 
00089 #ifndef U_DISABLE_RENAMING
00090 #define U_DISABLE_RENAMING 0
00091 #endif
00092 
00101 #ifdef U_NO_DEFAULT_INCLUDE_UTF_HEADERS
00102     /* Use the predefined value. */
00103 #elif defined(U_COMBINED_IMPLEMENTATION) || defined(U_COMMON_IMPLEMENTATION) || defined(U_I18N_IMPLEMENTATION) || \
00104       defined(U_IO_IMPLEMENTATION) || defined(U_LAYOUT_IMPLEMENTATION) || defined(U_LAYOUTEX_IMPLEMENTATION) || \
00105       defined(U_TOOLUTIL_IMPLEMENTATION)
00106 #   define U_NO_DEFAULT_INCLUDE_UTF_HEADERS 1
00107 #else
00108 #   define U_NO_DEFAULT_INCLUDE_UTF_HEADERS 0
00109 #endif
00110 
00124 #ifndef U_OVERRIDE_CXX_ALLOCATION
00125 #define U_OVERRIDE_CXX_ALLOCATION 1
00126 #endif
00127 
00133 #ifndef U_ENABLE_TRACING
00134 #define U_ENABLE_TRACING 0
00135 #endif
00136 
00142 #ifndef U_ENABLE_DYLOAD
00143 #define U_ENABLE_DYLOAD 1
00144 #endif
00145 
00151 #ifndef U_CHECK_DYLOAD
00152 #define U_CHECK_DYLOAD 1
00153 #endif
00154 
00155 
00161 #ifndef U_DEFAULT_SHOW_DRAFT
00162 #define U_DEFAULT_SHOW_DRAFT 1
00163 #endif
00164 
00165 /*===========================================================================*/
00166 /* Custom icu entry point renaming                                           */
00167 /*===========================================================================*/
00168 
00174 #ifdef U_HAVE_LIB_SUFFIX
00175     /* Use the predefined value. */
00176 #elif defined(U_LIB_SUFFIX_C_NAME)
00177 #   define U_HAVE_LIB_SUFFIX 1
00178 #endif
00179 
00185 #ifdef U_LIB_SUFFIX_C_NAME_STRING
00186     /* Use the predefined value. */
00187 #elif defined(U_LIB_SUFFIX_C_NAME)
00188 #   define U_LIB_SUFFIX_C_NAME_STRING #U_LIB_SUFFIX_C_NAME
00189 #else
00190 #   define U_LIB_SUFFIX_C_NAME_STRING ""
00191 #endif
00192 
00193 /* common/i18n library switches --------------------------------------------- */
00194 
00206 #ifndef UCONFIG_ONLY_COLLATION
00207 #   define UCONFIG_ONLY_COLLATION 0
00208 #endif
00209 
00210 #if UCONFIG_ONLY_COLLATION
00211     /* common library */
00212 #   define UCONFIG_NO_BREAK_ITERATION 1
00213 #   define UCONFIG_NO_IDNA 1
00214 
00215     /* i18n library */
00216 #   if UCONFIG_NO_COLLATION
00217 #       error Contradictory collation switches in uconfig.h.
00218 #   endif
00219 #   define UCONFIG_NO_FORMATTING 1
00220 #   define UCONFIG_NO_TRANSLITERATION 1
00221 #   define UCONFIG_NO_REGULAR_EXPRESSIONS 1
00222 #endif
00223 
00224 /* common library switches -------------------------------------------------- */
00225 
00244 #ifndef UCONFIG_NO_FILE_IO
00245 #   define UCONFIG_NO_FILE_IO 0
00246 #endif
00247 
00259 #ifndef UCONFIG_NO_CONVERSION
00260 #   define UCONFIG_NO_CONVERSION 0
00261 #endif
00262 
00263 #if UCONFIG_NO_CONVERSION
00264 #   define UCONFIG_NO_LEGACY_CONVERSION 1
00265 #endif
00266 
00279 #ifndef UCONFIG_NO_LEGACY_CONVERSION
00280 #   define UCONFIG_NO_LEGACY_CONVERSION 0
00281 #endif
00282 
00291 #ifndef UCONFIG_NO_NORMALIZATION
00292 #   define UCONFIG_NO_NORMALIZATION 0
00293 #elif UCONFIG_NO_NORMALIZATION
00294     /* common library */
00295     /* ICU 50 CJK dictionary BreakIterator uses normalization */
00296 #   define UCONFIG_NO_BREAK_ITERATION 1
00297     /* IDNA (UTS #46) is implemented via normalization */
00298 #   define UCONFIG_NO_IDNA 1
00299 
00300     /* i18n library */
00301 #   if UCONFIG_ONLY_COLLATION
00302 #       error Contradictory collation switches in uconfig.h.
00303 #   endif
00304 #   define UCONFIG_NO_COLLATION 1
00305 #   define UCONFIG_NO_TRANSLITERATION 1
00306 #endif
00307 
00314 #ifndef UCONFIG_NO_BREAK_ITERATION
00315 #   define UCONFIG_NO_BREAK_ITERATION 0
00316 #endif
00317 
00324 #ifndef UCONFIG_NO_IDNA
00325 #   define UCONFIG_NO_IDNA 0
00326 #endif
00327 
00335 #ifndef UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE
00336 #   define UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE UMSGPAT_APOS_DOUBLE_OPTIONAL
00337 #endif
00338 
00339 /* i18n library switches ---------------------------------------------------- */
00340 
00347 #ifndef UCONFIG_NO_COLLATION
00348 #   define UCONFIG_NO_COLLATION 0
00349 #endif
00350 
00357 #ifndef UCONFIG_NO_FORMATTING
00358 #   define UCONFIG_NO_FORMATTING 0
00359 #endif
00360 
00367 #ifndef UCONFIG_NO_TRANSLITERATION
00368 #   define UCONFIG_NO_TRANSLITERATION 0
00369 #endif
00370 
00377 #ifndef UCONFIG_NO_REGULAR_EXPRESSIONS
00378 #   define UCONFIG_NO_REGULAR_EXPRESSIONS 0
00379 #endif
00380 
00387 #ifndef UCONFIG_NO_SERVICE
00388 #   define UCONFIG_NO_SERVICE 0
00389 #endif
00390 
00397 #ifndef UCONFIG_HAVE_PARSEALLINPUT
00398 #   define UCONFIG_HAVE_PARSEALLINPUT 1
00399 #endif
00400 
00401 
00408 #ifndef UCONFIG_FORMAT_FASTPATHS_49
00409 #   define UCONFIG_FORMAT_FASTPATHS_49 1
00410 #endif
00411 
00412 #endif

Generated on 25 Nov 2014 for ICU 50.1.2 by  doxygen 1.4.7