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.3 by pcg, Mon Mar 15 00:27:13 2004 UTC vs.
Revision 1.4 by root, Wed Aug 4 03:29:28 2004 UTC

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};
19 19
20struct rxvt_codeset_conv_iso8859_15 : rxvt_codeset_conv {
21 uint32_t from_unicode (unicode_t unicode) const { 20static uint32_t cs_iso8859_15_from_unicode (unicode_t unicode) {
22 if (unicode <= 0x009f) return unicode; 21 if (unicode <= 0x009f) return unicode;
23 if (unicode == 0x20ac) return 0x00a4; 22 if (unicode == 0x20ac) return 0x00a4;
24 if (0x00a0 <= unicode && unicode <= 0x00ff) 23 if (0x00a0 <= unicode && unicode <= 0x00ff)
25 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];
26 if (0x0152 <= unicode && unicode <= 0x017e) 25 if (0x0152 <= unicode && unicode <= 0x017e)
27 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];
28 return NOCHAR; 27 return NOCHAR;
29 } 28}
30} rxvt_codeset_conv_iso8859_15;
31 29
32#else 30#else
33 31
34#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
35 34
36#endif 35#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines