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

Comparing rxvt-unicode/src/table/iso8859_2.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 0x00, 0x00, 0xc0, 0xe0, 0x00, 0x00, 0xd8, 0xf8, 0xa6, 0xb6, 0x00, 0x00, 0xaa, 0xba, 0xa9, 0xb9, 20 0x00, 0x00, 0xc0, 0xe0, 0x00, 0x00, 0xd8, 0xf8, 0xa6, 0xb6, 0x00, 0x00, 0xaa, 0xba, 0xa9, 0xb9,
21 0xde, 0xfe, 0xab, 0xbb, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd9, 0xf9, 0xdb, 0xfb, 21 0xde, 0xfe, 0xab, 0xbb, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd9, 0xf9, 0xdb, 0xfb,
22 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xac, 0xbc, 0xaf, 0xbf, 0xae, 0xbe 22 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xac, 0xbc, 0xaf, 0xbf, 0xae, 0xbe
23}; 23};
24 24
25struct rxvt_codeset_conv_iso8859_2 : rxvt_codeset_conv {
26 uint32_t from_unicode (unicode_t unicode) const { 25static uint32_t cs_iso8859_2_from_unicode (unicode_t unicode) {
27 if (unicode <= 0x009f) return unicode; 26 if (unicode <= 0x009f) return unicode;
28 if (unicode == 0x02c7) return 0x00b7; 27 if (unicode == 0x02c7) return 0x00b7;
29 if (unicode == 0x02d8) return 0x00a2; 28 if (unicode == 0x02d8) return 0x00a2;
30 if (unicode == 0x02d9) return 0x00ff; 29 if (unicode == 0x02d9) return 0x00ff;
31 if (unicode == 0x02db) return 0x00b2; 30 if (unicode == 0x02db) return 0x00b2;
33 if (0x00a0 <= unicode && unicode <= 0x00fd) 32 if (0x00a0 <= unicode && unicode <= 0x00fd)
34 return iso8859_2_f_0[unicode - 0x00a0] == 0 ? NOCHAR : iso8859_2_f_0[unicode - 0x00a0]; 33 return iso8859_2_f_0[unicode - 0x00a0] == 0 ? NOCHAR : iso8859_2_f_0[unicode - 0x00a0];
35 if (0x0102 <= unicode && unicode <= 0x017e) 34 if (0x0102 <= unicode && unicode <= 0x017e)
36 return iso8859_2_f_256[unicode - 0x0102] == 0 ? NOCHAR : iso8859_2_f_256[unicode - 0x0102]; 35 return iso8859_2_f_256[unicode - 0x0102] == 0 ? NOCHAR : iso8859_2_f_256[unicode - 0x0102];
37 return NOCHAR; 36 return NOCHAR;
38 } 37}
39} rxvt_codeset_conv_iso8859_2;
40 38
41#else 39#else
42 40
43#define rxvt_codeset_conv_iso8859_2 rxvt_codeset_conv_unknown 41#define cs_iso8859_2_from_unicode cs_unknown_from_unicode
42#define cs_iso8859_2_to_unicode cs_unknown_to_unicode
44 43
45#endif 44#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines