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

Comparing rxvt-unicode/src/table/jis0208_1990_0.h (file contents):
Revision 1.3 by root, Thu Jul 29 23:18:06 2004 UTC vs.
Revision 1.4 by root, Wed Aug 4 03:29:29 2004 UTC

2237 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2237 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2238 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, jis0208_1990_0_f_255 2238 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, jis0208_1990_0_f_255
2239}; 2239};
2240 2240
2241 2241
2242struct rxvt_codeset_conv_jis0208_1990_0 : rxvt_codeset_conv { 2242static uint32_t cs_jis0208_1990_0_from_unicode (unicode_t unicode) {
2243 uint32_t from_unicode (unicode_t unicode) const {
2244 if (unicode == 0x2312) return 0x225e; 2243 if (unicode == 0x2312) return 0x225e;
2245 uint8_t l = unicode; 2244 uint8_t l = unicode;
2246 uint16_t h = unicode >> 8; 2245 uint16_t h = unicode >> 8;
2247 if (h <= 0xff 2246 if (0x00 <= h && h <= 0xff
2247 && 0x00 <= l && l <= 0xff
2248 && jis0208_1990_0_f_i[h - 0x00]) 2248 && jis0208_1990_0_f_i[h - 0x00])
2249 return jis0208_1990_0_f_i[h - 0x00][l - 0x00] 2249 return jis0208_1990_0_f_i[h - 0x00][l - 0x00]
2250 ? jis0208_1990_0_f_i[h - 0x00][l - 0x00] 2250 ? jis0208_1990_0_f_i[h - 0x00][l - 0x00]
2251 : NOCHAR; 2251 : NOCHAR;
2252 return NOCHAR; 2252 return NOCHAR;
2253 } 2253}
2254} rxvt_codeset_conv_jis0208_1990_0;
2255 2254
2256#else 2255#else
2257 2256
2258#define rxvt_codeset_conv_jis0208_1990_0 rxvt_codeset_conv_unknown 2257#define cs_jis0208_1990_0_from_unicode cs_unknown_from_unicode
2258#define cs_jis0208_1990_0_to_unicode cs_unknown_to_unicode
2259 2259
2260#endif 2260#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines