1 | // |
1 | // |
2 | // AUTOMATICALLLY GENERATED by gentables |
2 | // AUTOMATICALLLY GENERATED by gentables |
3 | // |
3 | // |
4 | #ifdef ENCODING_CN_EXT |
4 | #ifdef ENCODING_ZH_EXT |
5 | |
5 | |
6 | static const uint16_t cns11643_1992_2_f_78[] = { |
6 | static const uint16_t cns11643_1992_2_f_78[] = { |
7 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x2126, 0x0000, 0x0000, 0x0000, 0x0000, |
7 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x2126, 0x0000, 0x0000, 0x0000, 0x0000, |
8 | 0x2127, 0x0000, 0x212f, 0x212d, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
8 | 0x2127, 0x0000, 0x212f, 0x212d, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
9 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
9 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
… | |
… | |
1993 | cns11643_1992_2_f_155, cns11643_1992_2_f_156, cns11643_1992_2_f_157, cns11643_1992_2_f_158, |
1993 | cns11643_1992_2_f_155, cns11643_1992_2_f_156, cns11643_1992_2_f_157, cns11643_1992_2_f_158, |
1994 | cns11643_1992_2_f_159 |
1994 | cns11643_1992_2_f_159 |
1995 | }; |
1995 | }; |
1996 | |
1996 | |
1997 | |
1997 | |
1998 | struct rxvt_codeset_conv_cns11643_1992_2 : rxvt_codeset_conv { |
1998 | static uint32_t cs_cns11643_1992_2_from_unicode (unicode_t unicode) { |
1999 | uint32_t from_unicode (unicode_t unicode) const { |
|
|
2000 | uint8_t l = unicode; |
1999 | uint8_t l = unicode; |
2001 | uint16_t h = unicode >> 8; |
2000 | uint16_t h = unicode >> 8; |
2002 | if (0x4e <= h && h <= 0x9f |
2001 | if (0x4e <= h && h <= 0x9f |
2003 | && 0x00 <= l && l <= 0xff |
2002 | && 0x00 <= l && l <= 0xff |
2004 | && cns11643_1992_2_f_i[h - 0x4e]) |
2003 | && cns11643_1992_2_f_i[h - 0x4e]) |
2005 | return cns11643_1992_2_f_i[h - 0x4e][l - 0x00] |
2004 | return cns11643_1992_2_f_i[h - 0x4e][l - 0x00] |
2006 | ? cns11643_1992_2_f_i[h - 0x4e][l - 0x00] |
2005 | ? cns11643_1992_2_f_i[h - 0x4e][l - 0x00] |
2007 | : NOCHAR; |
2006 | : NOCHAR; |
2008 | return NOCHAR; |
2007 | return NOCHAR; |
2009 | } |
2008 | } |
2010 | } rxvt_codeset_conv_cns11643_1992_2; |
|
|
2011 | |
2009 | |
2012 | #else |
2010 | #else |
2013 | |
2011 | |
2014 | #define rxvt_codeset_conv_cns11643_1992_2 rxvt_codeset_conv_unknown |
2012 | #define cs_cns11643_1992_2_from_unicode cs_unknown_from_unicode |
|
|
2013 | #define cs_cns11643_1992_2_to_unicode cs_unknown_to_unicode |
2015 | |
2014 | |
2016 | #endif |
2015 | #endif |