… | |
… | |
2 | // AUTOMATICALLLY GENERATED by gentables |
2 | // AUTOMATICALLLY GENERATED by gentables |
3 | // |
3 | // |
4 | #ifdef ENCODING_DEFAULT |
4 | #ifdef ENCODING_DEFAULT |
5 | |
5 | |
6 | |
6 | |
7 | struct rxvt_codeset_conv_iso8859_1 : rxvt_codeset_conv { |
7 | static uint32_t cs_iso8859_1_from_unicode (unicode_t unicode) { |
8 | uint32_t from_unicode (uint32_t unicode) const { |
|
|
9 | if (unicode <= 0x00ff) return unicode; |
8 | if (unicode <= 0x00ff) return unicode; |
10 | return NOCHAR; |
9 | return NOCHAR; |
11 | } |
10 | } |
12 | uint32_t to_unicode (uint32_t enc) const { |
|
|
13 | if (enc <= 0x00ff) return enc; |
|
|
14 | return NOCHAR; |
|
|
15 | } |
|
|
16 | } rxvt_codeset_conv_iso8859_1; |
|
|
17 | |
11 | |
18 | #else |
12 | #else |
19 | |
13 | |
20 | #define rxvt_codeset_conv_iso8859_1 rxvt_codeset_conv_unknown |
14 | #define cs_iso8859_1_from_unicode cs_unknown_from_unicode |
|
|
15 | #define cs_iso8859_1_to_unicode cs_unknown_to_unicode |
21 | |
16 | |
22 | #endif |
17 | #endif |