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