OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [stdlib/] [mbctype.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
#ifndef _MBCTYPE_H_
2
 
3
#define _MBCTYPE_H_
4
 
5
/* escape character used for JIS encoding */
6
#define ESC_CHAR 0x1b
7
 
8
/* functions used to support SHIFT_JIS, EUC-JP, and JIS multibyte encodings */
9
 
10
int _EXFUN(_issjis1, (int c));
11
int _EXFUN(_issjis2, (int c));
12
int _EXFUN(_iseucjp, (int c));
13
int _EXFUN(_isjis, (int c));
14
 
15
#define _issjis1(c)    ((c) >= 0x81 && (c) <= 0x9f || (c) >= 0xe0 && (c) <= 0xef)
16
#define _issjis2(c)    ((c) >= 0x40 && (c) <= 0x7e || (c) >= 0x80 && (c) <= 0xfc)
17
#define _iseucjp(c)    ((c) >= 0xa1 && (c) <= 0xfe)
18
#define _isjis(c)      ((c) >= 0x21 && (c) <= 0x7e)
19
 
20
#endif /* _MBCTYPE_H_ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.