ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/table/iso8859_15.h
(Generate patch)

Comparing rxvt-unicode/src/table/iso8859_15.h (file contents):
Revision 1.1 by pcg, Mon Nov 24 17:28:08 2003 UTC vs.
Revision 1.4 by root, Wed Aug 4 03:29:28 2004 UTC

14static const uint8_t iso8859_15_f_256[] = { 14static const uint8_t iso8859_15_f_256[] = {
15 0xbc, 0xbd, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa6, 0xa8, 15 0xbc, 0xbd, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa6, 0xa8,
16 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 16 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
17 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xbe, 0x00, 0x00, 0x00, 0x00, 0xb4, 0xb8 17 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xbe, 0x00, 0x00, 0x00, 0x00, 0xb4, 0xb8
18}; 18};
19static const uint16_t iso8859_15_t_0[] = {
20 0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x20ac, 0x00a5, 0x0160, 0x00a7, 0x0161, 0x00a9, 0x00aa, 0x00ab,
21 0x00ac, 0x00ad, 0x00ae, 0x00af, 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x017d, 0x00b5, 0x00b6, 0x00b7,
22 0x017e, 0x00b9, 0x00ba, 0x00bb, 0x0152, 0x0153, 0x0178, 0x00bf, 0x00c0, 0x00c1, 0x00c2, 0x00c3,
23 0x00c4, 0x00c5, 0x00c6, 0x00c7, 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
24 0x00d0, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d7, 0x00d8, 0x00d9, 0x00da, 0x00db,
25 0x00dc, 0x00dd, 0x00de, 0x00df, 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7,
26 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef, 0x00f0, 0x00f1, 0x00f2, 0x00f3,
27 0x00f4, 0x00f5, 0x00f6, 0x00f7, 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x00ff
28};
29 19
30struct rxvt_codeset_conv_iso8859_15 : rxvt_codeset_conv { 20static uint32_t cs_iso8859_15_from_unicode (unicode_t unicode) {
31 uint32_t from_unicode (uint32_t unicode) const {
32 if (unicode <= 0x009f) return unicode; 21 if (unicode <= 0x009f) return unicode;
33 if (unicode == 0x20ac) return 0x00a4; 22 if (unicode == 0x20ac) return 0x00a4;
34 if (0x00a0 <= unicode && unicode <= 0x00ff) 23 if (0x00a0 <= unicode && unicode <= 0x00ff)
35 return iso8859_15_f_0[unicode - 0x00a0] == 0 ? NOCHAR : iso8859_15_f_0[unicode - 0x00a0]; 24 return iso8859_15_f_0[unicode - 0x00a0] == 0 ? NOCHAR : iso8859_15_f_0[unicode - 0x00a0];
36 if (0x0152 <= unicode && unicode <= 0x017e) 25 if (0x0152 <= unicode && unicode <= 0x017e)
37 return iso8859_15_f_256[unicode - 0x0152] == 0 ? NOCHAR : iso8859_15_f_256[unicode - 0x0152]; 26 return iso8859_15_f_256[unicode - 0x0152] == 0 ? NOCHAR : iso8859_15_f_256[unicode - 0x0152];
38 return NOCHAR; 27 return NOCHAR;
39 } 28}
40 uint32_t to_unicode (uint32_t enc) const {
41 if (enc <= 0x009f) return enc;
42 if (0x00a0 <= enc && enc <= 0x00ff)
43 return iso8859_15_t_0[enc - 0x00a0];
44 return NOCHAR;
45 }
46} rxvt_codeset_conv_iso8859_15;
47 29
48#else 30#else
49 31
50#define rxvt_codeset_conv_iso8859_15 rxvt_codeset_conv_unknown 32#define cs_iso8859_15_from_unicode cs_unknown_from_unicode
33#define cs_iso8859_15_to_unicode cs_unknown_to_unicode
51 34
52#endif 35#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines