ICU 4.2.1
 All Data Structures 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-2009, 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 
45 #if defined(UCONFIG_USE_LOCAL)
46 #include "uconfig_local.h"
47 #endif
48 
60 #ifndef UCONFIG_ONLY_COLLATION
61 # define UCONFIG_ONLY_COLLATION 0
62 #endif
63 
64 #if UCONFIG_ONLY_COLLATION
65  /* common library */
66 # define UCONFIG_NO_BREAK_ITERATION 1
67 # define UCONFIG_NO_IDNA 1
68 
69  /* i18n library */
70 # if UCONFIG_NO_COLLATION
71 # error Contradictory collation switches in uconfig.h.
72 # endif
73 # define UCONFIG_NO_FORMATTING 1
74 # define UCONFIG_NO_TRANSLITERATION 1
75 # define UCONFIG_NO_REGULAR_EXPRESSIONS 1
76 #endif
77 
78 /* common library switches -------------------------------------------------- */
79 
98 #ifndef UCONFIG_NO_FILE_IO
99 # define UCONFIG_NO_FILE_IO 0
100 #endif
101 
113 #ifndef UCONFIG_NO_CONVERSION
114 # define UCONFIG_NO_CONVERSION 0
115 #endif
116 
117 #if UCONFIG_NO_CONVERSION
118 # define UCONFIG_NO_LEGACY_CONVERSION 1
119 #endif
120 
133 #ifndef UCONFIG_NO_LEGACY_CONVERSION
134 # define UCONFIG_NO_LEGACY_CONVERSION 0
135 #endif
136 
145 #ifndef UCONFIG_NO_NORMALIZATION
146 # define UCONFIG_NO_NORMALIZATION 0
147 #elif UCONFIG_NO_NORMALIZATION
148  /* common library */
149 # define UCONFIG_NO_IDNA 1
150 
151  /* i18n library */
152 # if UCONFIG_ONLY_COLLATION
153 # error Contradictory collation switches in uconfig.h.
154 # endif
155 # define UCONFIG_NO_COLLATION 1
156 # define UCONFIG_NO_TRANSLITERATION 1
157 #endif
158 
165 #ifndef UCONFIG_NO_BREAK_ITERATION
166 # define UCONFIG_NO_BREAK_ITERATION 0
167 #endif
168 
175 #ifndef UCONFIG_NO_IDNA
176 # define UCONFIG_NO_IDNA 0
177 #endif
178 
179 /* i18n library switches ---------------------------------------------------- */
180 
187 #ifndef UCONFIG_NO_COLLATION
188 # define UCONFIG_NO_COLLATION 0
189 #endif
190 
197 #ifndef UCONFIG_NO_FORMATTING
198 # define UCONFIG_NO_FORMATTING 0
199 #endif
200 
207 #ifndef UCONFIG_NO_TRANSLITERATION
208 # define UCONFIG_NO_TRANSLITERATION 0
209 #endif
210 
217 #ifndef UCONFIG_NO_REGULAR_EXPRESSIONS
218 # define UCONFIG_NO_REGULAR_EXPRESSIONS 0
219 #endif
220 
227 #ifndef UCONFIG_NO_SERVICE
228 # define UCONFIG_NO_SERVICE 0
229 #endif
230 
231 #endif