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.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

19 0x00, 0xd9, 0xf9, 0xd1, 0xf1, 0xd2, 0xf2, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd4, 0xf4, 0x00, 0x00, 19 0x00, 0xd9, 0xf9, 0xd1, 0xf1, 0xd2, 0xf2, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd4, 0xf4, 0x00, 0x00,
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};
24static const uint16_t iso8859_13_t_0[] = {
25 0x00a0, 0x201d, 0x00a2, 0x00a3, 0x00a4, 0x201e, 0x00a6, 0x00a7, 0x00d8, 0x00a9, 0x0156, 0x00ab,
26 0x00ac, 0x00ad, 0x00ae, 0x00c6, 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x201c, 0x00b5, 0x00b6, 0x00b7,
27 0x00f8, 0x00b9, 0x0157, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00e6, 0x0104, 0x012e, 0x0100, 0x0106,
28 0x00c4, 0x00c5, 0x0118, 0x0112, 0x010c, 0x00c9, 0x0179, 0x0116, 0x0122, 0x0136, 0x012a, 0x013b,
29 0x0160, 0x0143, 0x0145, 0x00d3, 0x014c, 0x00d5, 0x00d6, 0x00d7, 0x0172, 0x0141, 0x015a, 0x016a,
30 0x00dc, 0x017b, 0x017d, 0x00df, 0x0105, 0x012f, 0x0101, 0x0107, 0x00e4, 0x00e5, 0x0119, 0x0113,
31 0x010d, 0x00e9, 0x017a, 0x0117, 0x0123, 0x0137, 0x012b, 0x013c, 0x0161, 0x0144, 0x0146, 0x00f3,
32 0x014d, 0x00f5, 0x00f6, 0x00f7, 0x0173, 0x0142, 0x015b, 0x016b, 0x00fc, 0x017c, 0x017e, 0x2019
33};
34 24
35struct rxvt_codeset_conv_iso8859_13 : rxvt_codeset_conv { 25static uint32_t cs_iso8859_13_from_unicode (unicode_t unicode) {
36 uint32_t from_unicode (uint32_t unicode) const {
37 if (unicode <= 0x009f) return unicode; 26 if (unicode <= 0x009f) return unicode;
38 if (unicode == 0x2019) return 0x00ff; 27 if (unicode == 0x2019) return 0x00ff;
39 if (unicode == 0x201c) return 0x00b4; 28 if (unicode == 0x201c) return 0x00b4;
40 if (unicode == 0x201d) return 0x00a1; 29 if (unicode == 0x201d) return 0x00a1;
41 if (unicode == 0x201e) return 0x00a5; 30 if (unicode == 0x201e) return 0x00a5;
42 if (0x00a0 <= unicode && unicode <= 0x00fc) 31 if (0x00a0 <= unicode && unicode <= 0x00fc)
43 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];
44 if (0x0100 <= unicode && unicode <= 0x017e) 33 if (0x0100 <= unicode && unicode <= 0x017e)
45 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];
46 return NOCHAR; 35 return NOCHAR;
47 } 36}
48 uint32_t to_unicode (uint32_t enc) const {
49 if (enc <= 0x009f) return enc;
50 if (0x00a0 <= enc && enc <= 0x00ff)
51 return iso8859_13_t_0[enc - 0x00a0];
52 return NOCHAR;
53 }
54} rxvt_codeset_conv_iso8859_13;
55 37
56#else 38#else
57 39
58#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
59 42
60#endif 43#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines