2002-08-23 09:56:05 +08:00
|
|
|
#ifndef _WCHAR_H_
|
|
|
|
#define _WCHAR_H_
|
|
|
|
|
2002-08-28 05:20:10 +08:00
|
|
|
#include <_ansi.h>
|
|
|
|
|
2002-08-23 09:56:05 +08:00
|
|
|
#define __need_size_t
|
|
|
|
#define __need_wchar_t
|
|
|
|
#define __need_wint_t
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
/* For _mbstate_t definition. */
|
|
|
|
#include <sys/_types.h>
|
|
|
|
|
2002-08-30 03:38:25 +08:00
|
|
|
#ifndef NULL
|
|
|
|
#define NULL 0
|
|
|
|
#endif
|
|
|
|
|
2002-08-23 09:56:05 +08:00
|
|
|
#ifndef WEOF
|
2002-08-30 03:38:25 +08:00
|
|
|
# define WEOF ((wint_t)-1)
|
2002-08-23 09:56:05 +08:00
|
|
|
#endif
|
|
|
|
|
2002-09-05 02:16:55 +08:00
|
|
|
#ifndef WCHAR_MIN
|
|
|
|
#define WCHAR_MIN 0
|
|
|
|
#endif
|
|
|
|
|
2002-09-05 23:26:42 +08:00
|
|
|
#ifndef WCHAR_MAX
|
2002-09-05 02:16:55 +08:00
|
|
|
#ifdef __WCHAR_MAX__
|
|
|
|
#define WCHAR_MAX __WCHAR_MAX__
|
|
|
|
#else
|
|
|
|
#define WCHAR_MAX 0x7fffffffu
|
|
|
|
#endif
|
2002-09-05 23:26:42 +08:00
|
|
|
#endif
|
2002-09-05 02:16:55 +08:00
|
|
|
|
2002-11-07 08:44:31 +08:00
|
|
|
_BEGIN_STD_C
|
2002-11-05 03:04:09 +08:00
|
|
|
|
2002-09-17 02:55:25 +08:00
|
|
|
#ifndef _MBSTATE_T
|
|
|
|
#define _MBSTATE_T
|
2002-08-23 09:56:05 +08:00
|
|
|
typedef _mbstate_t mbstate_t;
|
2002-09-17 02:55:25 +08:00
|
|
|
#endif /* _MBSTATE_T */
|
2002-08-23 09:56:05 +08:00
|
|
|
|
2002-08-30 03:38:25 +08:00
|
|
|
wint_t _EXFUN(btowc, (int));
|
|
|
|
int _EXFUN(wctob, (wint_t));
|
|
|
|
size_t _EXFUN(mbrlen, (const char * , size_t, mbstate_t *));
|
|
|
|
size_t _EXFUN(mbrtowc, (wchar_t * , const char * , size_t, mbstate_t *));
|
|
|
|
int _EXFUN(mbsinit, (const mbstate_t *));
|
|
|
|
size_t _EXFUN(mbsrtowcs, (wchar_t * , const char ** , size_t, mbstate_t *));
|
|
|
|
size_t _EXFUN(wcrtomb, (char * , wchar_t, mbstate_t *));
|
|
|
|
size_t _EXFUN(wcsrtombs, (char * , const wchar_t ** , size_t, mbstate_t *));
|
|
|
|
wchar_t *_EXFUN(wcscat, (wchar_t * , const wchar_t *));
|
|
|
|
wchar_t *_EXFUN(wcschr, (const wchar_t *, wchar_t));
|
|
|
|
int _EXFUN(wcscmp, (const wchar_t *, const wchar_t *));
|
2003-04-03 16:26:07 +08:00
|
|
|
int _EXFUN(wcscoll, (const wchar_t *, const wchar_t *));
|
2002-08-30 03:38:25 +08:00
|
|
|
wchar_t *_EXFUN(wcscpy, (wchar_t * , const wchar_t *));
|
|
|
|
size_t _EXFUN(wcscspn, (const wchar_t *, const wchar_t *));
|
|
|
|
size_t _EXFUN(wcslcat, (wchar_t *, const wchar_t *, size_t));
|
|
|
|
size_t _EXFUN(wcslcpy, (wchar_t *, const wchar_t *, size_t));
|
|
|
|
size_t _EXFUN(wcslen, (const wchar_t *));
|
|
|
|
wchar_t *_EXFUN(wcsncat, (wchar_t * , const wchar_t * , size_t));
|
|
|
|
int _EXFUN(wcsncmp, (const wchar_t *, const wchar_t *, size_t));
|
|
|
|
wchar_t *_EXFUN(wcsncpy, (wchar_t * , const wchar_t * , size_t));
|
2003-10-24 02:07:13 +08:00
|
|
|
size_t _EXFUN(wcsnlen, (const wchar_t *, size_t));
|
2002-08-30 03:38:25 +08:00
|
|
|
wchar_t *_EXFUN(wcspbrk, (const wchar_t *, const wchar_t *));
|
|
|
|
wchar_t *_EXFUN(wcsrchr, (const wchar_t *, wchar_t));
|
|
|
|
size_t _EXFUN(wcsspn, (const wchar_t *, const wchar_t *));
|
|
|
|
wchar_t *_EXFUN(wcsstr, (const wchar_t *, const wchar_t *));
|
2003-04-09 18:42:12 +08:00
|
|
|
int _EXFUN(wcswidth, (const wchar_t *, size_t));
|
|
|
|
int _EXFUN(wcwidth, (const wchar_t));
|
2002-08-30 03:38:25 +08:00
|
|
|
wchar_t *_EXFUN(wmemchr, (const wchar_t *, wchar_t, size_t));
|
|
|
|
int _EXFUN(wmemcmp, (const wchar_t *, const wchar_t *, size_t));
|
|
|
|
wchar_t *_EXFUN(wmemcpy, (wchar_t * , const wchar_t * , size_t));
|
|
|
|
wchar_t *_EXFUN(wmemmove, (wchar_t *, const wchar_t *, size_t));
|
|
|
|
wchar_t *_EXFUN(wmemset, (wchar_t *, wchar_t, size_t));
|
2002-08-23 09:56:05 +08:00
|
|
|
|
2002-11-07 08:44:31 +08:00
|
|
|
_END_STD_C
|
2002-11-05 03:04:09 +08:00
|
|
|
|
2002-08-23 09:56:05 +08:00
|
|
|
#endif /* _WCHAR_H_ */
|