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

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

31 0x8b, 0x00, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x00, 0x8d, 0x00, 0x00, 0x00, 0x8e, 0x00, 0x00, 0x00, 31 0x8b, 0x00, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x00, 0x8d, 0x00, 0x00, 0x00, 0x8e, 0x00, 0x00, 0x00,
32 0x8f, 0x90, 0x91, 0x92, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 32 0x8f, 0x90, 0x91, 0x92, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
33 0x94 33 0x94
34}; 34};
35 35
36struct rxvt_codeset_conv_koi8_r : rxvt_codeset_conv {
37 uint32_t from_unicode (unicode_t unicode) const { 36static uint32_t cs_koi8_r_from_unicode (unicode_t unicode) {
38 if (unicode <= 0x007f) return unicode; 37 if (unicode <= 0x007f) return unicode;
39 if (unicode == 0x2219) return 0x0095; 38 if (unicode == 0x2219) return 0x0095;
40 if (unicode == 0x221a) return 0x0096; 39 if (unicode == 0x221a) return 0x0096;
41 if (unicode == 0x2248) return 0x0097; 40 if (unicode == 0x2248) return 0x0097;
42 if (unicode == 0x2264) return 0x0098; 41 if (unicode == 0x2264) return 0x0098;
48 if (0x0401 <= unicode && unicode <= 0x0451) 47 if (0x0401 <= unicode && unicode <= 0x0451)
49 return koi8_r_f_1024[unicode - 0x0401] == 0 ? NOCHAR : koi8_r_f_1024[unicode - 0x0401]; 48 return koi8_r_f_1024[unicode - 0x0401] == 0 ? NOCHAR : koi8_r_f_1024[unicode - 0x0401];
50 if (0x2500 <= unicode && unicode <= 0x25a0) 49 if (0x2500 <= unicode && unicode <= 0x25a0)
51 return koi8_r_f_9472[unicode - 0x2500] == 0 ? NOCHAR : koi8_r_f_9472[unicode - 0x2500]; 50 return koi8_r_f_9472[unicode - 0x2500] == 0 ? NOCHAR : koi8_r_f_9472[unicode - 0x2500];
52 return NOCHAR; 51 return NOCHAR;
53 } 52}
54} rxvt_codeset_conv_koi8_r;
55 53
56#else 54#else
57 55
58#define rxvt_codeset_conv_koi8_r rxvt_codeset_conv_unknown 56#define cs_koi8_r_from_unicode cs_unknown_from_unicode
57#define cs_koi8_r_to_unicode cs_unknown_to_unicode
59 58
60#endif 59#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines