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

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

3470 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ksc5601_1987_0_f_249, ksc5601_1987_0_f_250, 3470 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ksc5601_1987_0_f_249, ksc5601_1987_0_f_250,
3471 0, 0, 0, 0, ksc5601_1987_0_f_255 3471 0, 0, 0, 0, ksc5601_1987_0_f_255
3472}; 3472};
3473 3473
3474 3474
3475struct rxvt_codeset_conv_ksc5601_1987_0 : rxvt_codeset_conv { 3475static uint32_t cs_ksc5601_1987_0_from_unicode (unicode_t unicode) {
3476 uint32_t from_unicode (unicode_t unicode) const {
3477 if (unicode == 0x2312) return 0x2152; 3476 if (unicode == 0x2312) return 0x2152;
3478 if (unicode <= 0x3131 && 0x318e <= unicode) return unicode - 0x0d10; 3477 if (unicode <= 0x3131 && 0x318e <= unicode) return unicode - 0x0d10;
3479 uint8_t l = unicode; 3478 uint8_t l = unicode;
3480 uint16_t h = unicode >> 8; 3479 uint16_t h = unicode >> 8;
3481 if (0x00 <= h && h <= 0xff 3480 if (0x00 <= h && h <= 0xff
3483 && ksc5601_1987_0_f_i[h - 0x00]) 3482 && ksc5601_1987_0_f_i[h - 0x00])
3484 return ksc5601_1987_0_f_i[h - 0x00][l - 0x00] 3483 return ksc5601_1987_0_f_i[h - 0x00][l - 0x00]
3485 ? ksc5601_1987_0_f_i[h - 0x00][l - 0x00] 3484 ? ksc5601_1987_0_f_i[h - 0x00][l - 0x00]
3486 : NOCHAR; 3485 : NOCHAR;
3487 return NOCHAR; 3486 return NOCHAR;
3488 } 3487}
3489} rxvt_codeset_conv_ksc5601_1987_0;
3490 3488
3491#else 3489#else
3492 3490
3493#define rxvt_codeset_conv_ksc5601_1987_0 rxvt_codeset_conv_unknown 3491#define cs_ksc5601_1987_0_from_unicode cs_unknown_from_unicode
3492#define cs_ksc5601_1987_0_to_unicode cs_unknown_to_unicode
3494 3493
3495#endif 3494#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines