Ruby 2.0.0p353(2013-11-22revision43784)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

utf8tbl.h
Go to the documentation of this file.
1 /*
2 * utf8tbl.h - Header file for Convertion Table
3 *
4 * $Id: utf8tbl.h 37800 2012-11-22 08:47:30Z naruse $
5 */
6
7 #ifndef _UTF8TBL_H_
8 #define _UTF8TBL_H_
9
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 euc_to_utf8_2bytes_x0213[];
18 extern const unsigned short *const x0212_to_utf8_2bytes[];
19 extern const unsigned short *const x0212_to_utf8_2bytes_x0213[];
20 #define sizeof_x0213_combining_chars 5
21 #define sizeof_x0213_combining_table 25
22 #define sizeof_x0213_1_surrogate_table 26
23 #define sizeof_x0213_2_surrogate_table 277
24 extern const unsigned short x0213_combining_chars[sizeof_x0213_combining_chars];
25 extern const unsigned short x0213_combining_table[sizeof_x0213_combining_table][3];
26 extern const unsigned short x0213_1_surrogate_table[sizeof_x0213_1_surrogate_table][3];
27 extern const unsigned short x0213_2_surrogate_table[sizeof_x0213_2_surrogate_table][3];
28 #endif /* UTF8_OUTPUT_ENABLE */
29
30 #ifdef UTF8_INPUT_ENABLE
31 #define sizeof_utf8_to_euc_C2 64
32 #define sizeof_utf8_to_euc_E5B8 64
33 #define sizeof_utf8_to_euc_2bytes 112
34 #define sizeof_utf8_to_euc_3bytes 16
35 extern const unsigned short *const utf8_to_euc_2bytes[];
36 extern const unsigned short *const utf8_to_euc_2bytes_ms[];
37 extern const unsigned short *const utf8_to_euc_2bytes_932[];
38 extern const unsigned short *const utf8_to_euc_2bytes_mac[];
39 extern const unsigned short *const utf8_to_euc_2bytes_x0213[];
40 extern const unsigned short *const *const utf8_to_euc_3bytes[];
41 extern const unsigned short *const *const utf8_to_euc_3bytes_ms[];
42 extern const unsigned short *const *const utf8_to_euc_3bytes_932[];
43 extern const unsigned short *const *const utf8_to_euc_3bytes_mac[];
44 extern const unsigned short *const *const utf8_to_euc_3bytes_x0213[];
45 #endif /* UTF8_INPUT_ENABLE */
46
47 #ifdef UNICODE_NORMALIZATION
48
49 #define NORMALIZATION_TABLE_LENGTH 942
50 #define NORMALIZATION_TABLE_NFC_LENGTH 3
51 #define NORMALIZATION_TABLE_NFD_LENGTH 9
52 struct normalization_pair {
53 const unsigned char nfc[NORMALIZATION_TABLE_NFC_LENGTH];
54 const unsigned char nfd[NORMALIZATION_TABLE_NFD_LENGTH];
55 };
56 extern const struct normalization_pair normalization_table[];
57 #endif
58
59 #ifdef SHIFTJIS_CP932
60 #define CP932_TABLE_BEGIN 0xFA
61 #define CP932_TABLE_END 0xFC
62 extern const unsigned short shiftjis_cp932[3][189];
63 #define CP932INV_TABLE_BEGIN 0xED
64 #define CP932INV_TABLE_END 0xEE
65 extern const unsigned short cp932inv[2][189];
66 #endif /* SHIFTJIS_CP932 */
67
68 #ifdef X0212_ENABLE
69 extern const unsigned short shiftjis_x0212[3][189];
70 extern const unsigned short *const x0212_shiftjis[];
71 #endif /* X0212_ENABLE */
72
73 #endif
normalization_table
struct normalization_pair normalization_table[]
Definition: utf8tbl.c:12597
x0213_combining_chars
const unsigned short x0213_combining_chars[sizeof_x0213_combining_chars]
Definition: utf8tbl.c:3221
x0212_shiftjis
const unsigned short *const x0212_shiftjis[]
Definition: utf8tbl.c:14603
utf8_to_euc_3bytes_932
const unsigned short *const *const utf8_to_euc_3bytes_932[]
Definition: utf8tbl.c:12573
utf8_to_euc_2bytes_932
const unsigned short *const utf8_to_euc_2bytes_932[]
Definition: utf8tbl.c:12471
cp932inv
const unsigned short cp932inv[2][189]
Definition: utf8tbl.c:13625
euc_to_utf8_2bytes
const unsigned short *const euc_to_utf8_2bytes[]
Definition: utf8tbl.c:3060
x0213_2_surrogate_table
const unsigned short x0213_2_surrogate_table[sizeof_x0213_2_surrogate_table][3]
Definition: utf8tbl.c:3279
euc_to_utf8_1byte
const unsigned short euc_to_utf8_1byte[]
Definition: utf8tbl.c:3046
euc_to_utf8_2bytes_ms
const unsigned short *const euc_to_utf8_2bytes_ms[]
Definition: utf8tbl.c:3087
x0213_1_surrogate_table
const unsigned short x0213_1_surrogate_table[sizeof_x0213_1_surrogate_table][3]
Definition: utf8tbl.c:3251
utf8_to_euc_3bytes_x0213
const unsigned short *const *const utf8_to_euc_3bytes_x0213[]
Definition: utf8tbl.c:12585
x0213_combining_table
const unsigned short x0213_combining_table[sizeof_x0213_combining_table][3]
Definition: utf8tbl.c:3224
utf8_to_euc_2bytes_ms
const unsigned short *const utf8_to_euc_2bytes_ms[]
Definition: utf8tbl.c:12441
utf8_to_euc_3bytes_mac
const unsigned short *const *const utf8_to_euc_3bytes_mac[]
Definition: utf8tbl.c:12579
x0212_to_utf8_2bytes
const unsigned short *const x0212_to_utf8_2bytes[]
Definition: utf8tbl.c:3168
euc_to_utf8_2bytes_x0213
const unsigned short *const euc_to_utf8_2bytes_x0213[]
Definition: utf8tbl.c:3140
shiftjis_x0212
const unsigned short shiftjis_x0212[3][189]
Definition: utf8tbl.c:13682
euc_to_utf8_2bytes_mac
const unsigned short *const euc_to_utf8_2bytes_mac[]
Definition: utf8tbl.c:3114
utf8_to_euc_2bytes
const unsigned short *const utf8_to_euc_2bytes[]
Definition: utf8tbl.c:12411
shiftjis_cp932
const unsigned short shiftjis_cp932[3][189]
Definition: utf8tbl.c:13545
utf8_to_euc_3bytes
const unsigned short *const *const utf8_to_euc_3bytes[]
Definition: utf8tbl.c:12561
x0212_to_utf8_2bytes_x0213
const unsigned short *const x0212_to_utf8_2bytes_x0213[]
Definition: utf8tbl.c:3194
utf8_to_euc_2bytes_mac
const unsigned short *const utf8_to_euc_2bytes_mac[]
Definition: utf8tbl.c:12501
utf8_to_euc_3bytes_ms
const unsigned short *const *const utf8_to_euc_3bytes_ms[]
Definition: utf8tbl.c:12567
utf8_to_euc_2bytes_x0213
const unsigned short *const utf8_to_euc_2bytes_x0213[]
Definition: utf8tbl.c:12531