… | |
… | |
1993 | cns11643_1992_1_f_155, cns11643_1992_1_f_156, cns11643_1992_1_f_157, cns11643_1992_1_f_158, |
1993 | cns11643_1992_1_f_155, cns11643_1992_1_f_156, cns11643_1992_1_f_157, cns11643_1992_1_f_158, |
1994 | cns11643_1992_1_f_159 |
1994 | cns11643_1992_1_f_159 |
1995 | }; |
1995 | }; |
1996 | |
1996 | |
1997 | |
1997 | |
1998 | struct rxvt_codeset_conv_cns11643_1992_1 : rxvt_codeset_conv { |
1998 | static uint32_t cs_cns11643_1992_1_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_1_f_i[h - 0x4e]) |
2003 | && cns11643_1992_1_f_i[h - 0x4e]) |
2005 | return cns11643_1992_1_f_i[h - 0x4e][l - 0x00] |
2004 | return cns11643_1992_1_f_i[h - 0x4e][l - 0x00] |
2006 | ? cns11643_1992_1_f_i[h - 0x4e][l - 0x00] |
2005 | ? cns11643_1992_1_f_i[h - 0x4e][l - 0x00] |
2007 | : NOCHAR; |
2006 | : NOCHAR; |
2008 | return NOCHAR; |
2007 | return NOCHAR; |
2009 | } |
2008 | } |
2010 | } rxvt_codeset_conv_cns11643_1992_1; |
|
|
2011 | |
2009 | |
2012 | #else |
2010 | #else |
2013 | |
2011 | |
2014 | #define rxvt_codeset_conv_cns11643_1992_1 rxvt_codeset_conv_unknown |
2012 | #define cs_cns11643_1992_1_from_unicode cs_unknown_from_unicode |
|
|
2013 | #define cs_cns11643_1992_1_to_unicode cs_unknown_to_unicode |
2015 | |
2014 | |
2016 | #endif |
2015 | #endif |