File: unicode.h

package info (click to toggle)
libuninum 2.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,204 kB
  • sloc: ansic: 9,968; sh: 8,721; tcl: 553; makefile: 27
file content (18 lines) | stat: -rw-r--r-- 598 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdint.h>

typedef uint32_t	UTF32;	/* 32 bits */
typedef uint16_t	UTF16;	/* 16 bits */
typedef uint16_t	UCS2;	/* 16 bits */
typedef uint8_t	UTF8;	/* 8 bits */
typedef uint8_t	Boolean; /* 0 or 1 */

#define UNI_MAX_ASCII (UTF32)0x0000007F 
#define UNI_MAX_BMP   (UTF32)0x0000FFFF
#define UNI_MAX_UTF16 (UTF32)0x0010FFFF
#define UNI_MAX_UTF32 (UTF32)0x7FFFFFFF
#define UNI_SUR_HIGH_START	(UTF32)0xD800
#define UNI_SUR_HIGH_END	(UTF32)0xDBFF
#define UNI_SUR_LOW_START	(UTF32)0xDC00
#define UNI_SUR_LOW_END		(UTF32)0xDFFF
#define UNI_REPLACEMENT_CHAR (UTF32)0x0000FFFD
#define _UNICODE_POSER