mbctype.h

00001 #ifndef _MBCTYPE_H_
00002 
00003 #define _MBCTYPE_H_
00004 
00005 /* escape character used for JIS encoding */
00006 #define ESC_CHAR 0x1b
00007 
00008 /* functions used to support SHIFT_JIS, EUC-JP, and JIS multibyte encodings */
00009 
00010 int _EXFUN(_issjis1, (int c));
00011 int _EXFUN(_issjis2, (int c));
00012 int _EXFUN(_iseucjp, (int c));
00013 int _EXFUN(_isjis, (int c));
00014 
00015 #define _issjis1(c)    (((c) >= 0x81 && (c) <= 0x9f) || ((c) >= 0xe0 && (c) <= 0xef))
00016 #define _issjis2(c)    (((c) >= 0x40 && (c) <= 0x7e) || ((c) >= 0x80 && (c) <= 0xfc))
00017 #define _iseucjp(c)    ((c) >= 0xa1 && (c) <= 0xfe)
00018 #define _isjis(c)      ((c) >= 0x21 && (c) <= 0x7e)
00019 
00020 #endif /* _MBCTYPE_H_ */

Generated on Mon Apr 11 14:23:40 2011 for Contiki 2.5 by  doxygen 1.6.1