… | |
… | |
2 | // AUTOMATICALLLY GENERATED by gentables |
2 | // AUTOMATICALLLY GENERATED by gentables |
3 | // |
3 | // |
4 | #ifdef ENCODING_JP |
4 | #ifdef ENCODING_JP |
5 | |
5 | |
6 | |
6 | |
7 | struct rxvt_codeset_conv_jis0201_1976_0 : rxvt_codeset_conv { |
7 | static uint32_t cs_jis0201_1976_0_from_unicode (unicode_t unicode) { |
8 | uint32_t from_unicode (unicode_t unicode) const { |
|
|
9 | if (unicode <= 0x007d) return unicode; |
8 | if (unicode <= 0x007d) return unicode; |
10 | if (0x007f <= unicode && unicode <= 0x009f) return unicode; |
9 | if (0x007f <= unicode && unicode <= 0x009f) return unicode; |
11 | if (unicode == 0x203e) return 0x007e; |
10 | if (unicode == 0x203e) return 0x007e; |
12 | if (unicode <= 0xff61 && 0xff9f <= unicode) return unicode - 0xfec0; |
11 | if (unicode <= 0xff61 && 0xff9f <= unicode) return unicode - 0xfec0; |
13 | return NOCHAR; |
12 | return NOCHAR; |
14 | } |
13 | } |
15 | } rxvt_codeset_conv_jis0201_1976_0; |
|
|
16 | |
14 | |
17 | #else |
15 | #else |
18 | |
16 | |
19 | #define rxvt_codeset_conv_jis0201_1976_0 rxvt_codeset_conv_unknown |
17 | #define cs_jis0201_1976_0_from_unicode cs_unknown_from_unicode |
|
|
18 | #define cs_jis0201_1976_0_to_unicode cs_unknown_to_unicode |
20 | |
19 | |
21 | #endif |
20 | #endif |