1 |
// |
2 |
// AUTOMATICALLLY GENERATED by gentables |
3 |
// |
4 |
#ifdef ENCODING_EU |
5 |
|
6 |
static const uint8_t iso8859_8_f_0[] = { |
7 |
0xa0, 0x00, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0x00, 0xab, 0xac, 0xad, 0xae, 0xaf, |
8 |
0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0x00, 0xbb, 0xbc, 0xbd, 0xbe, 0x00, |
9 |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
10 |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xaa, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
11 |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
12 |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xba |
13 |
}; |
14 |
|
15 |
static uint32_t cs_iso8859_8_from_unicode (unicode_t unicode) { |
16 |
if (unicode <= 0x009f) return unicode; |
17 |
if (unicode >= 0x05d0 && 0x05ea >= unicode) return unicode - 0x04f0; |
18 |
if (unicode == 0x200e) return 0x00fd; |
19 |
if (unicode == 0x200f) return 0x00fe; |
20 |
if (unicode == 0x2017) return 0x00df; |
21 |
if (0x00a0 <= unicode && unicode <= 0x00f7) |
22 |
return iso8859_8_f_0[unicode - 0x00a0] == 0 ? NOCHAR : iso8859_8_f_0[unicode - 0x00a0]; |
23 |
return NOCHAR; |
24 |
} |
25 |
|
26 |
#else |
27 |
|
28 |
#define cs_iso8859_8_from_unicode cs_unknown_from_unicode |
29 |
#define cs_iso8859_8_to_unicode cs_unknown_to_unicode |
30 |
|
31 |
#endif |