23 #ifndef __UMACHINE_H__
24 #define __UMACHINE_H__
45 # include "unicode/ppalmos.h"
46 #elif !defined(__MINGW32__) && (defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64))
53 #ifndef STUBDATA_BUILD
58 # include "unicode/ptypes.h"
105 # define U_CFUNC extern "C"
106 # define U_CDECL_BEGIN extern "C" {
107 # define U_CDECL_END }
109 # define U_CFUNC extern
110 # define U_CDECL_BEGIN
114 #ifndef U_ATTRIBUTE_DEPRECATED
120 #if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
121 # define U_ATTRIBUTE_DEPRECATED __attribute__ ((deprecated))
127 #elif defined(U_WINDOWS) && defined(_MSC_VER) && (_MSC_VER >= 1400)
128 # define U_ATTRIBUTE_DEPRECATED __declspec(deprecated)
130 # define U_ATTRIBUTE_DEPRECATED
135 #define U_CAPI U_CFUNC U_EXPORT
137 #define U_STABLE U_CAPI
139 #define U_DRAFT U_CAPI
141 #define U_DEPRECATED U_CAPI U_ATTRIBUTE_DEPRECATED
143 #define U_OBSOLETE U_CAPI
145 #define U_INTERNAL U_CAPI
153 # define INT8_MIN ((int8_t)(-128))
157 # define INT16_MIN ((int16_t)(-32767-1))
161 # define INT32_MIN ((int32_t)(-2147483647-1))
166 # define INT8_MAX ((int8_t)(127))
170 # define INT16_MAX ((int16_t)(32767))
174 # define INT32_MAX ((int32_t)(2147483647))
179 # define UINT8_MAX ((uint8_t)(255U))
183 # define UINT16_MAX ((uint16_t)(65535U))
187 # define UINT32_MAX ((uint32_t)(4294967295U))
190 #if defined(U_INT64_T_UNAVAILABLE)
191 # error int64_t is required for decimal format and rule-based number format.
199 # define INT64_C(c) c ## LL
207 # define UINT64_C(c) c ## ULL
211 # define U_INT64_MIN ((int64_t)(INT64_C(-9223372036854775807)-1))
215 # define U_INT64_MAX ((int64_t)(INT64_C(9223372036854775807)))
217 # ifndef U_UINT64_MAX
219 # define U_UINT64_MAX ((uint64_t)(UINT64_C(18446744073709551615)))
252 #ifndef U_HAVE_WCHAR_H
253 # define U_HAVE_WCHAR_H 1
262 #if U_SIZEOF_WCHAR_T==0
263 # undef U_SIZEOF_WCHAR_T
264 # define U_SIZEOF_WCHAR_T 4
279 #if !defined(U_WCHAR_IS_UTF16) && !defined(U_WCHAR_IS_UTF32)
280 # ifdef __STDC_ISO_10646__
281 # if (U_SIZEOF_WCHAR_T==2)
282 # define U_WCHAR_IS_UTF16
283 # elif (U_SIZEOF_WCHAR_T==4)
284 # define U_WCHAR_IS_UTF32
286 # elif defined __UCS2__
287 # if (__OS390__ || __OS400__) && (U_SIZEOF_WCHAR_T==2)
288 # define U_WCHAR_IS_UTF16
290 # elif defined __UCS4__
291 # if (U_SIZEOF_WCHAR_T==4)
292 # define U_WCHAR_IS_UTF32
294 # elif defined(U_WINDOWS)
295 # define U_WCHAR_IS_UTF16
302 #define U_SIZEOF_UCHAR 2
317 #if U_SIZEOF_WCHAR_T==2
318 typedef wchar_t UChar;
319 #elif U_GNUC_UTF16_STRING
321 typedef __CHAR16_TYPE__ char16_t;
323 typedef char16_t
UChar;
354 #ifndef U_HIDE_INTERNAL_API
363 # define U_ALIGN_CODE(n)
376 # define U_INLINE inline
382 #include "unicode/urename.h"
Configuration constants for the Windows platform.
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
uint16_t UChar
Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned.
int8_t UBool
The ICU boolean type.