source: trunk/libs/newlib/src/newlib/libc/include/wctype.h @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.7 KB
Line 
1#ifndef _WCTYPE_H_
2#define _WCTYPE_H_
3
4#include <_ansi.h>
5#include <sys/_types.h>
6
7#define __need_wint_t
8#include <stddef.h>
9
10#if __POSIX_VISIBLE >= 200809
11#include <xlocale.h>
12#endif
13
14#ifndef WEOF
15# define WEOF ((wint_t)-1)
16#endif
17
18_BEGIN_STD_C
19
20#ifndef _WCTYPE_T
21#define _WCTYPE_T
22typedef int wctype_t;
23#endif
24
25#ifndef _WCTRANS_T
26#define _WCTRANS_T
27typedef int wctrans_t;
28#endif
29
30int     iswalpha (wint_t);
31int     iswalnum (wint_t);
32#if __ISO_C_VISIBLE >= 1999
33int     iswblank (wint_t);
34#endif
35int     iswcntrl (wint_t);
36int     iswctype (wint_t, wctype_t);
37int     iswdigit (wint_t);
38int     iswgraph (wint_t);
39int     iswlower (wint_t);
40int     iswprint (wint_t);
41int     iswpunct (wint_t);
42int     iswspace (wint_t);
43int     iswupper (wint_t);
44int     iswxdigit (wint_t);
45wint_t  towctrans (wint_t, wctrans_t);
46wint_t  towupper (wint_t);
47wint_t  towlower (wint_t);
48wctrans_t wctrans (const char *);
49wctype_t wctype (const char *);
50
51#if __POSIX_VISIBLE >= 200809
52extern int      iswalpha_l (wint_t, locale_t);
53extern int      iswalnum_l (wint_t, locale_t);
54extern int      iswblank_l (wint_t, locale_t);
55extern int      iswcntrl_l (wint_t, locale_t);
56extern int      iswctype_l (wint_t, wctype_t, locale_t);
57extern int      iswdigit_l (wint_t, locale_t);
58extern int      iswgraph_l (wint_t, locale_t);
59extern int      iswlower_l (wint_t, locale_t);
60extern int      iswprint_l (wint_t, locale_t);
61extern int      iswpunct_l (wint_t, locale_t);
62extern int      iswspace_l (wint_t, locale_t);
63extern int      iswupper_l (wint_t, locale_t);
64extern int      iswxdigit_l (wint_t, locale_t);
65extern wint_t   towctrans_l (wint_t, wctrans_t, locale_t);
66extern wint_t   towupper_l (wint_t, locale_t);
67extern wint_t   towlower_l (wint_t, locale_t);
68extern wctrans_t wctrans_l (const char *, locale_t);
69extern wctype_t wctype_l (const char *, locale_t);
70#endif
71
72_END_STD_C
73
74#endif /* _WCTYPE_H_ */
Note: See TracBrowser for help on using the repository browser.