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

Comparing rxvt-unicode/src/table/iso8859_16.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:29 2004 UTC

20 0xbc, 0xbd, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd7, 0xf7, 0x00, 0x00, 0x00, 0x00, 0xa6, 0xa8, 20 0xbc, 0xbd, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd7, 0xf7, 0x00, 0x00, 0x00, 0x00, 0xa6, 0xa8,
21 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd8, 0xf8, 21 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd8, 0xf8,
22 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xbe, 0xac, 0xae, 0xaf, 0xbf, 0xb4, 0xb8 22 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xbe, 0xac, 0xae, 0xaf, 0xbf, 0xb4, 0xb8
23}; 23};
24 24
25struct rxvt_codeset_conv_iso8859_16 : rxvt_codeset_conv {
26 uint32_t from_unicode (unicode_t unicode) const { 25static uint32_t cs_iso8859_16_from_unicode (unicode_t unicode) {
27 if (unicode <= 0x009f) return unicode; 26 if (unicode <= 0x009f) return unicode;
28 if (unicode == 0x0218) return 0x00aa; 27 if (unicode == 0x0218) return 0x00aa;
29 if (unicode == 0x0219) return 0x00ba; 28 if (unicode == 0x0219) return 0x00ba;
30 if (unicode == 0x021a) return 0x00de; 29 if (unicode == 0x021a) return 0x00de;
31 if (unicode == 0x021b) return 0x00fe; 30 if (unicode == 0x021b) return 0x00fe;
35 if (0x00a0 <= unicode && unicode <= 0x00ff) 34 if (0x00a0 <= unicode && unicode <= 0x00ff)
36 return iso8859_16_f_0[unicode - 0x00a0] == 0 ? NOCHAR : iso8859_16_f_0[unicode - 0x00a0]; 35 return iso8859_16_f_0[unicode - 0x00a0] == 0 ? NOCHAR : iso8859_16_f_0[unicode - 0x00a0];
37 if (0x0102 <= unicode && unicode <= 0x017e) 36 if (0x0102 <= unicode && unicode <= 0x017e)
38 return iso8859_16_f_256[unicode - 0x0102] == 0 ? NOCHAR : iso8859_16_f_256[unicode - 0x0102]; 37 return iso8859_16_f_256[unicode - 0x0102] == 0 ? NOCHAR : iso8859_16_f_256[unicode - 0x0102];
39 return NOCHAR; 38 return NOCHAR;
40 } 39}
41} rxvt_codeset_conv_iso8859_16;
42 40
43#else 41#else
44 42
45#define rxvt_codeset_conv_iso8859_16 rxvt_codeset_conv_unknown 43#define cs_iso8859_16_from_unicode cs_unknown_from_unicode
44#define cs_iso8859_16_to_unicode cs_unknown_to_unicode
46 45
47#endif 46#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines