1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/textandloc/fontservices/textshaperplugin/IcuSource/common/unicode/uconfig.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,186 @@
1.4 +/*
1.5 +**********************************************************************
1.6 +* Copyright (C) 2002-2005, International Business Machines
1.7 +* Corporation and others. All Rights Reserved.
1.8 +**********************************************************************
1.9 +* file name: uconfig.h
1.10 +* encoding: US-ASCII
1.11 +* tab size: 8 (not used)
1.12 +* indentation:4
1.13 +*
1.14 +* created on: 2002sep19
1.15 +* created by: Markus W. Scherer
1.16 +*/
1.17 +
1.18 +#ifndef __UCONFIG_H__
1.19 +#define __UCONFIG_H__
1.20 +
1.21 +/*!
1.22 + * \file
1.23 + * \brief Switches for excluding parts of ICU library code modules.
1.24 + *
1.25 + * Allows to build partial, smaller libraries for special purposes.
1.26 + * By default, all modules are built.
1.27 + * The switches are fairly coarse, controlling large modules.
1.28 + * Basic services cannot be turned off.
1.29 + *
1.30 + * @stable ICU 2.4
1.31 + */
1.32 +
1.33 +/**
1.34 + * \def UCONFIG_ONLY_COLLATION
1.35 + * This switch turns off modules that are not needed for collation.
1.36 + *
1.37 + * It does not turn off legacy conversion because that is necessary
1.38 + * for ICU to work on EBCDIC platforms (for the default converter).
1.39 + * If you want "only collation" and do not build for EBCDIC,
1.40 + * then you can define UCONFIG_NO_LEGACY_CONVERSION 1 as well.
1.41 + *
1.42 + * @stable ICU 2.4
1.43 + */
1.44 +#ifndef UCONFIG_ONLY_COLLATION
1.45 +# define UCONFIG_ONLY_COLLATION 0
1.46 +#endif
1.47 +
1.48 +#if UCONFIG_ONLY_COLLATION
1.49 + /* common library */
1.50 +# define UCONFIG_NO_BREAK_ITERATION 1
1.51 +# define UCONFIG_NO_IDNA 1
1.52 +
1.53 + /* i18n library */
1.54 +# if UCONFIG_NO_COLLATION
1.55 +# error Contradictory collation switches in uconfig.h.
1.56 +# endif
1.57 +# define UCONFIG_NO_FORMATTING 1
1.58 +# define UCONFIG_NO_TRANSLITERATION 1
1.59 +# define UCONFIG_NO_REGULAR_EXPRESSIONS 1
1.60 +#endif
1.61 +
1.62 +/* common library switches -------------------------------------------------- */
1.63 +
1.64 +/**
1.65 + * \def UCONFIG_NO_CONVERSION
1.66 + * ICU will not completely build with this switch turned on.
1.67 + * This switch turns off all converters.
1.68 + *
1.69 + * @draft ICU 3.2
1.70 + */
1.71 +#ifndef UCONFIG_NO_CONVERSION
1.72 +# define UCONFIG_NO_CONVERSION 0
1.73 +#endif
1.74 +
1.75 +#if UCONFIG_NO_CONVERSION
1.76 +# define UCONFIG_NO_LEGACY_CONVERSION 1
1.77 +#endif
1.78 +
1.79 +/**
1.80 + * \def UCONFIG_NO_LEGACY_CONVERSION
1.81 + * This switch turns off all converters except for
1.82 + * - Unicode charsets (UTF-7/8/16/32, CESU-8, SCSU, BOCU-1)
1.83 + * - US-ASCII
1.84 + * - ISO-8859-1
1.85 + *
1.86 + * Turning off legacy conversion is not possible on EBCDIC platforms
1.87 + * because they need ibm-37 or ibm-1047 default converters.
1.88 + *
1.89 + * @stable ICU 2.4
1.90 + */
1.91 +#ifndef UCONFIG_NO_LEGACY_CONVERSION
1.92 +# define UCONFIG_NO_LEGACY_CONVERSION 0
1.93 +#endif
1.94 +
1.95 +/**
1.96 + * \def UCONFIG_NO_NORMALIZATION
1.97 + * This switch turns off normalization.
1.98 + * It implies turning off several other services as well, for example
1.99 + * collation and IDNA.
1.100 + *
1.101 + * @stable ICU 2.6
1.102 + */
1.103 +#ifndef UCONFIG_NO_NORMALIZATION
1.104 +# define UCONFIG_NO_NORMALIZATION 0
1.105 +#elif UCONFIG_NO_NORMALIZATION
1.106 + /* common library */
1.107 +# define UCONFIG_NO_IDNA 1
1.108 +
1.109 + /* i18n library */
1.110 +# if UCONFIG_ONLY_COLLATION
1.111 +# error Contradictory collation switches in uconfig.h.
1.112 +# endif
1.113 +# define UCONFIG_NO_COLLATION 1
1.114 +# define UCONFIG_NO_TRANSLITERATION 1
1.115 +#endif
1.116 +
1.117 +/**
1.118 + * \def UCONFIG_NO_BREAK_ITERATION
1.119 + * This switch turns off break iteration.
1.120 + *
1.121 + * @stable ICU 2.4
1.122 + */
1.123 +#ifndef UCONFIG_NO_BREAK_ITERATION
1.124 +# define UCONFIG_NO_BREAK_ITERATION 0
1.125 +#endif
1.126 +
1.127 +/**
1.128 + * \def UCONFIG_NO_IDNA
1.129 + * This switch turns off IDNA.
1.130 + *
1.131 + * @stable ICU 2.6
1.132 + */
1.133 +#ifndef UCONFIG_NO_IDNA
1.134 +# define UCONFIG_NO_IDNA 0
1.135 +#endif
1.136 +
1.137 +/* i18n library switches ---------------------------------------------------- */
1.138 +
1.139 +/**
1.140 + * \def UCONFIG_NO_COLLATION
1.141 + * This switch turns off collation and collation-based string search.
1.142 + *
1.143 + * @stable ICU 2.4
1.144 + */
1.145 +#ifndef UCONFIG_NO_COLLATION
1.146 +# define UCONFIG_NO_COLLATION 0
1.147 +#endif
1.148 +
1.149 +/**
1.150 + * \def UCONFIG_NO_FORMATTING
1.151 + * This switch turns off formatting and calendar/timezone services.
1.152 + *
1.153 + * @stable ICU 2.4
1.154 + */
1.155 +#ifndef UCONFIG_NO_FORMATTING
1.156 +# define UCONFIG_NO_FORMATTING 0
1.157 +#endif
1.158 +
1.159 +/**
1.160 + * \def UCONFIG_NO_TRANSLITERATION
1.161 + * This switch turns off transliteration.
1.162 + *
1.163 + * @stable ICU 2.4
1.164 + */
1.165 +#ifndef UCONFIG_NO_TRANSLITERATION
1.166 +# define UCONFIG_NO_TRANSLITERATION 0
1.167 +#endif
1.168 +
1.169 +/**
1.170 + * \def UCONFIG_NO_REGULAR_EXPRESSIONS
1.171 + * This switch turns off regular expressions.
1.172 + *
1.173 + * @stable ICU 2.4
1.174 + */
1.175 +#ifndef UCONFIG_NO_REGULAR_EXPRESSIONS
1.176 +# define UCONFIG_NO_REGULAR_EXPRESSIONS 0
1.177 +#endif
1.178 +
1.179 +/**
1.180 + * \def UCONFIG_NO_SERVICE
1.181 + * This switch turns off service registration.
1.182 + *
1.183 + * @draft ICU 3.2
1.184 + */
1.185 +#ifndef UCONFIG_NO_SERVICE
1.186 +# define UCONFIG_NO_SERVICE 0
1.187 +#endif
1.188 +
1.189 +#endif