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