… | |
… | |
2622 | cns11643_1992_3_f_154, cns11643_1992_3_f_155, cns11643_1992_3_f_156, cns11643_1992_3_f_157, |
2622 | cns11643_1992_3_f_154, cns11643_1992_3_f_155, cns11643_1992_3_f_156, cns11643_1992_3_f_157, |
2623 | cns11643_1992_3_f_158, cns11643_1992_3_f_159 |
2623 | cns11643_1992_3_f_158, cns11643_1992_3_f_159 |
2624 | }; |
2624 | }; |
2625 | |
2625 | |
2626 | |
2626 | |
2627 | struct rxvt_codeset_conv_cns11643_1992_3 : rxvt_codeset_conv { |
2627 | static uint32_t cs_cns11643_1992_3_from_unicode (unicode_t unicode) { |
2628 | uint32_t from_unicode (unicode_t unicode) const { |
|
|
2629 | uint8_t l = unicode; |
2628 | uint8_t l = unicode; |
2630 | uint16_t h = unicode >> 8; |
2629 | uint16_t h = unicode >> 8; |
2631 | if (0x34 <= h && h <= 0x9f |
2630 | if (0x34 <= h && h <= 0x9f |
2632 | && 0x00 <= l && l <= 0xff |
2631 | && 0x00 <= l && l <= 0xff |
2633 | && cns11643_1992_3_f_i[h - 0x34]) |
2632 | && cns11643_1992_3_f_i[h - 0x34]) |
2634 | return cns11643_1992_3_f_i[h - 0x34][l - 0x00] |
2633 | return cns11643_1992_3_f_i[h - 0x34][l - 0x00] |
2635 | ? cns11643_1992_3_f_i[h - 0x34][l - 0x00] |
2634 | ? cns11643_1992_3_f_i[h - 0x34][l - 0x00] |
2636 | : NOCHAR; |
2635 | : NOCHAR; |
2637 | return NOCHAR; |
2636 | return NOCHAR; |
2638 | } |
2637 | } |
2639 | } rxvt_codeset_conv_cns11643_1992_3; |
|
|
2640 | |
2638 | |
2641 | #else |
2639 | #else |
2642 | |
2640 | |
2643 | #define rxvt_codeset_conv_cns11643_1992_3 rxvt_codeset_conv_unknown |
2641 | #define cs_cns11643_1992_3_from_unicode cs_unknown_from_unicode |
|
|
2642 | #define cs_cns11643_1992_3_to_unicode cs_unknown_to_unicode |
2644 | |
2643 | |
2645 | #endif |
2644 | #endif |