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