2 * utf8tbl.h - Header file for Convertion Table
4 * $Id: utf8tbl.h,v 1.3 2008/01/23 09:10:25 naruse Exp $
10 #ifdef UTF8_OUTPUT_ENABLE
11 #define sizeof_euc_to_utf8_1byte 94
12 #define sizeof_euc_to_utf8_2bytes 94
13 extern const unsigned short euc_to_utf8_1byte[];
14 extern const unsigned short *const euc_to_utf8_2bytes[];
15 extern const unsigned short *const euc_to_utf8_2bytes_ms[];
16 extern const unsigned short *const euc_to_utf8_2bytes_mac[];
17 extern const unsigned short *const x0212_to_utf8_2bytes[];
18 #endif /* UTF8_OUTPUT_ENABLE */
20 #ifdef UTF8_INPUT_ENABLE
21 #define sizeof_utf8_to_euc_C2 64
22 #define sizeof_utf8_to_euc_E5B8 64
23 #define sizeof_utf8_to_euc_2bytes 112
24 #define sizeof_utf8_to_euc_3bytes 16
25 extern const unsigned short *const utf8_to_euc_2bytes[];
26 extern const unsigned short *const utf8_to_euc_2bytes_ms[];
27 extern const unsigned short *const utf8_to_euc_2bytes_932[];
28 extern const unsigned short *const utf8_to_euc_2bytes_mac[];
29 extern const unsigned short *const *const utf8_to_euc_3bytes[];
30 extern const unsigned short *const *const utf8_to_euc_3bytes_ms[];
31 extern const unsigned short *const *const utf8_to_euc_3bytes_932[];
32 extern const unsigned short *const *const utf8_to_euc_3bytes_mac[];
33 #endif /* UTF8_INPUT_ENABLE */
35 #ifdef UNICODE_NORMALIZATION
37 #define NORMALIZATION_TABLE_LENGTH 942
38 #define NORMALIZATION_TABLE_NFC_LENGTH 3
39 #define NORMALIZATION_TABLE_NFD_LENGTH 9
40 struct normalization_pair {
41 const unsigned char nfc[NORMALIZATION_TABLE_NFC_LENGTH];
42 const unsigned char nfd[NORMALIZATION_TABLE_NFD_LENGTH];
44 extern const struct normalization_pair normalization_table[];
48 #define CP932_TABLE_BEGIN 0xFA
49 #define CP932_TABLE_END 0xFC
50 extern const unsigned short shiftjis_cp932[3][189];
51 #define CP932INV_TABLE_BEGIN 0xED
52 #define CP932INV_TABLE_END 0xEE
53 extern const unsigned short cp932inv[2][189];
54 #endif /* SHIFTJIS_CP932 */
57 extern const unsigned short shiftjis_x0212[3][189];
58 extern const unsigned short *const x0212_shiftjis[];
59 #endif /* X0212_ENABLE */