From fa05c7cbbccd4caf9db7ba90944deca5a84b27f8 Mon Sep 17 00:00:00 2001 From: tomo Date: Tue, 4 Dec 2001 11:30:01 +0000 Subject: [PATCH] (LEADING_BYTE_UCS_SMP): New macro. (LEADING_BYTE_UCS_SIP): New macro. (MIN_CHAR_SMP): New macro. (MAX_CHAR_SMP): New macro. (MIN_CHAR_SIP): New macro. (MAX_CHAR_SIP): New macro. --- src/char-ucs.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/char-ucs.h b/src/char-ucs.h index d8768c6..5087c10 100644 --- a/src/char-ucs.h +++ b/src/char-ucs.h @@ -53,14 +53,20 @@ typedef short Charset_ID; /* ISO/IEC 10646 BMP */ #define LEADING_BYTE_UCS_BMP (CHARSET_ID_OFFSET - 3) +/* ISO/IEC 10646 SMP */ +#define LEADING_BYTE_UCS_SMP (CHARSET_ID_OFFSET - 4) + +/* ISO/IEC 10646 SIP */ +#define LEADING_BYTE_UCS_SIP (CHARSET_ID_OFFSET - 5) + /* ISO/IEC 10646 for CNS */ -#define LEADING_BYTE_UCS_CNS (CHARSET_ID_OFFSET - 5) +#define LEADING_BYTE_UCS_CNS (CHARSET_ID_OFFSET - 6) /* ISO/IEC 10646 for JIS */ -#define LEADING_BYTE_UCS_JIS (CHARSET_ID_OFFSET - 6) +#define LEADING_BYTE_UCS_JIS (CHARSET_ID_OFFSET - 7) /* ISO/IEC 10646 for KS */ -#define LEADING_BYTE_UCS_KS (CHARSET_ID_OFFSET - 7) +#define LEADING_BYTE_UCS_KS (CHARSET_ID_OFFSET - 8) /* ISO/IEC 10646 for Big5 */ #define LEADING_BYTE_UCS_BIG5 (CHARSET_ID_OFFSET - 9) @@ -448,6 +454,12 @@ CHARSET_BY_ATTRIBUTES (int chars, int dimension, int final, int dir) #define MAX_CHAR_BMP 0x00FFFF +#define MIN_CHAR_SMP 0x010000 +#define MAX_CHAR_SMP 0x01FFFF + +#define MIN_CHAR_SIP 0x020000 +#define MAX_CHAR_SIP 0x02FFFF + #define MIN_CHAR_DAIKANWA 0x00E00000 #define MAX_CHAR_DAIKANWA (MIN_CHAR_DAIKANWA + 50100) /* 0xE0FFFF */ /* -- 1.7.10.4