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

Comparing rxvt-unicode/src/table/viscii.h (file contents):
Revision 1.3 by pcg, Mon Mar 15 00:27:14 2004 UTC vs.
Revision 1.4 by root, Wed Aug 4 03:29:29 2004 UTC

41 0x8f, 0xaf, 0x90, 0xb0, 0x91, 0xb1, 0x92, 0xb2, 0x93, 0xb5, 0x95, 0xbe, 0x96, 0xb6, 0x97, 0xb7, 41 0x8f, 0xaf, 0x90, 0xb0, 0x91, 0xb1, 0x92, 0xb2, 0x93, 0xb5, 0x95, 0xbe, 0x96, 0xb6, 0x97, 0xb7,
42 0xb3, 0xde, 0x94, 0xfe, 0x9e, 0xf8, 0x9c, 0xfc, 0xba, 0xd1, 0xbb, 0xd7, 0xbc, 0xd8, 0xff, 0xe6, 42 0xb3, 0xde, 0x94, 0xfe, 0x9e, 0xf8, 0x9c, 0xfc, 0xba, 0xd1, 0xbb, 0xd7, 0xbc, 0xd8, 0xff, 0xe6,
43 0xb9, 0xf1, 0x9f, 0xcf, 0x1e, 0xdc, 0x14, 0xd6, 0x19, 0xdb 43 0xb9, 0xf1, 0x9f, 0xcf, 0x1e, 0xdc, 0x14, 0xd6, 0x19, 0xdb
44}; 44};
45 45
46struct rxvt_codeset_conv_viscii : rxvt_codeset_conv {
47 uint32_t from_unicode (unicode_t unicode) const { 46static uint32_t cs_viscii_from_unicode (unicode_t unicode) {
48 if (unicode == 0x007e) return 0x007e; 47 if (unicode == 0x007e) return 0x007e;
49 if (unicode == 0x007f) return 0x007f; 48 if (unicode == 0x007f) return 0x007f;
50 if (0x0000 <= unicode && unicode <= 0x00fd) 49 if (0x0000 <= unicode && unicode <= 0x00fd)
51 return viscii_f_0[unicode - 0x0000] == 128 ? NOCHAR : viscii_f_0[unicode - 0x0000]; 50 return viscii_f_0[unicode - 0x0000] == 128 ? NOCHAR : viscii_f_0[unicode - 0x0000];
52 if (0x0102 <= unicode && unicode <= 0x01b0) 51 if (0x0102 <= unicode && unicode <= 0x01b0)
53 return viscii_f_256[unicode - 0x0102] == 0 ? NOCHAR : viscii_f_256[unicode - 0x0102]; 52 return viscii_f_256[unicode - 0x0102] == 0 ? NOCHAR : viscii_f_256[unicode - 0x0102];
54 if (0x1ea0 <= unicode && unicode <= 0x1ef9) 53 if (0x1ea0 <= unicode && unicode <= 0x1ef9)
55 return viscii_f_7680[unicode - 0x1ea0]; 54 return viscii_f_7680[unicode - 0x1ea0];
56 return NOCHAR; 55 return NOCHAR;
57 } 56}
58} rxvt_codeset_conv_viscii;
59 57
60#else 58#else
61 59
62#define rxvt_codeset_conv_viscii rxvt_codeset_conv_unknown 60#define cs_viscii_from_unicode cs_unknown_from_unicode
61#define cs_viscii_to_unicode cs_unknown_to_unicode
63 62
64#endif 63#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines