1 #ifdef OLDUDEFS
2 typedef unsigned long	UTF32;
3 typedef unsigned short	UTF16;
4 typedef unsigned short	UCS2;
5 typedef unsigned char	UTF8;
6 #else
7 typedef u_int8_t	UTF8;	/* at least  8 bits */
8 typedef u_int16_t	UTF16;	/* at least 16 bits */
9 typedef u_int16_t	UCS2;	/* at least 16 bits */
10 typedef u_int32_t	UTF32;	/* at least 32 bits */
11 #endif
12 
13 typedef unsigned char	Boolean; /* 0 or 1 */
14 
15 #define UNI_MAX_ASCII (UTF32)0x0000007F
16 #define UNI_MAX_BMP   (UTF32)0x0000FFFF
17 #define UNI_MAX_UTF16 (UTF32)0x0010FFFF
18 #define UNI_MAX_UTF32 (UTF32)0x7FFFFFFF
19 #define UNI_SUR_HIGH_START	(UTF32)0xD800
20 #define UNI_SUR_HIGH_END	(UTF32)0xDBFF
21 #define UNI_SUR_LOW_START	(UTF32)0xDC00
22 #define UNI_SUR_LOW_END		(UTF32)0xDFFF
23 #define UNI_REPLACEMENT_CHAR (UTF32)0x0000FFFD
24 #define _UNICODE_POSER
25 
26