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

Comparing rxvt-unicode/src/table/cns11643_1992_2.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:28 2004 UTC

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
1998struct rxvt_codeset_conv_cns11643_1992_2 : rxvt_codeset_conv { 1998static 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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines