… | |
… | |
6 | |
6 | |
7 | static uint32_t cs_jis0201_1976_0_from_unicode (unicode_t unicode) { |
7 | static uint32_t cs_jis0201_1976_0_from_unicode (unicode_t unicode) { |
8 | if (unicode <= 0x007d) return unicode; |
8 | if (unicode <= 0x007d) return unicode; |
9 | if (0x007f <= unicode && unicode <= 0x009f) return unicode; |
9 | if (0x007f <= unicode && unicode <= 0x009f) return unicode; |
10 | if (unicode == 0x203e) return 0x007e; |
10 | if (unicode == 0x203e) return 0x007e; |
11 | if (unicode <= 0xff61 && 0xff9f <= unicode) return unicode - 0xfec0; |
11 | if (unicode >= 0xff61 && 0xff9f >= unicode) return unicode - 0xfec0; |
12 | return NOCHAR; |
12 | return NOCHAR; |
13 | } |
13 | } |
14 | |
14 | |
15 | #else |
15 | #else |
16 | |
16 | |