… | |
… | |
35 | CS_JIS0213_2, |
35 | CS_JIS0213_2, |
36 | |
36 | |
37 | CS_KSC5601_1987_0, |
37 | CS_KSC5601_1987_0, |
38 | |
38 | |
39 | CS_GB2312_1980_0, |
39 | CS_GB2312_1980_0, |
|
|
40 | CS_GBK_0, |
40 | |
41 | |
41 | CS_CNS11643_1992_1, |
42 | CS_CNS11643_1992_1, |
42 | CS_CNS11643_1992_2, |
43 | CS_CNS11643_1992_2, |
43 | CS_CNS11643_1992_3, |
44 | CS_CNS11643_1992_3, |
44 | CS_CNS11643_1992_4, |
45 | CS_CNS11643_1992_4, |
… | |
… | |
60 | }; |
61 | }; |
61 | |
62 | |
62 | codeset codeset_from_name (const char *name); |
63 | codeset codeset_from_name (const char *name); |
63 | |
64 | |
64 | enum { |
65 | enum { |
65 | ZERO_WIDTH_CHAR = 0x200b, |
66 | ZERO_WIDTH_CHAR = 0x200b, |
66 | REPLACEMENT_CHAR = 0xfffd, |
67 | REPLACEMENT_CHAR = 0xfffd, |
67 | NOCHAR = 65535, // must be invalid in ANY codeset (!) |
68 | NOCHAR = 0xffff, // must be invalid in ANY codeset (!) |
68 | }; |
69 | }; |
69 | |
70 | |
70 | struct rxvt_codeset_conv { |
71 | struct rxvt_codeset_conv { |
71 | uint32_t (*from_unicode) (unicode_t unicode); |
72 | uint32_t (*from_unicode) (unicode_t unicode); |
72 | #if ENCODING_TO_UNICODE |
73 | #if ENCODING_TO_UNICODE |