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

Comparing rxvt-unicode/src/table/iso8859_13.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

20 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xaa, 0xba, 0x00, 0x00, 0xda, 0xfa, 0x00, 0x00, 0x00, 0x00, 20 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xaa, 0xba, 0x00, 0x00, 0xda, 0xfa, 0x00, 0x00, 0x00, 0x00,
21 0xd0, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xdb, 0xfb, 0x00, 0x00, 0x00, 0x00, 21 0xd0, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xdb, 0xfb, 0x00, 0x00, 0x00, 0x00,
22 0x00, 0x00, 0xd8, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0xca, 0xea, 0xdd, 0xfd, 0xde, 0xfe 22 0x00, 0x00, 0xd8, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0xca, 0xea, 0xdd, 0xfd, 0xde, 0xfe
23}; 23};
24 24
25struct rxvt_codeset_conv_iso8859_13 : rxvt_codeset_conv {
26 uint32_t from_unicode (unicode_t unicode) const { 25static uint32_t cs_iso8859_13_from_unicode (unicode_t unicode) {
27 if (unicode <= 0x009f) return unicode; 26 if (unicode <= 0x009f) return unicode;
28 if (unicode == 0x2019) return 0x00ff; 27 if (unicode == 0x2019) return 0x00ff;
29 if (unicode == 0x201c) return 0x00b4; 28 if (unicode == 0x201c) return 0x00b4;
30 if (unicode == 0x201d) return 0x00a1; 29 if (unicode == 0x201d) return 0x00a1;
31 if (unicode == 0x201e) return 0x00a5; 30 if (unicode == 0x201e) return 0x00a5;
32 if (0x00a0 <= unicode && unicode <= 0x00fc) 31 if (0x00a0 <= unicode && unicode <= 0x00fc)
33 return iso8859_13_f_0[unicode - 0x00a0] == 0 ? NOCHAR : iso8859_13_f_0[unicode - 0x00a0]; 32 return iso8859_13_f_0[unicode - 0x00a0] == 0 ? NOCHAR : iso8859_13_f_0[unicode - 0x00a0];
34 if (0x0100 <= unicode && unicode <= 0x017e) 33 if (0x0100 <= unicode && unicode <= 0x017e)
35 return iso8859_13_f_256[unicode - 0x0100] == 0 ? NOCHAR : iso8859_13_f_256[unicode - 0x0100]; 34 return iso8859_13_f_256[unicode - 0x0100] == 0 ? NOCHAR : iso8859_13_f_256[unicode - 0x0100];
36 return NOCHAR; 35 return NOCHAR;
37 } 36}
38} rxvt_codeset_conv_iso8859_13;
39 37
40#else 38#else
41 39
42#define rxvt_codeset_conv_iso8859_13 rxvt_codeset_conv_unknown 40#define cs_iso8859_13_from_unicode cs_unknown_from_unicode
41#define cs_iso8859_13_to_unicode cs_unknown_to_unicode
43 42
44#endif 43#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines