2002-10-23 22:47:12 +04:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2002 Marcus Overhagen
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Distributed under the terms of the MIT license
|
|
|
|
*/
|
2003-12-30 10:37:08 +03:00
|
|
|
#ifndef _WCHAR_H
|
|
|
|
#define _WCHAR_H
|
2002-10-23 22:47:12 +04:00
|
|
|
|
|
|
|
#include <wchar_t.h>
|
2003-12-30 10:37:08 +03:00
|
|
|
|
2005-02-22 21:06:35 +03:00
|
|
|
#define _WINT_T
|
|
|
|
typedef unsigned int wint_t;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int __count;
|
|
|
|
wint_t __value;
|
|
|
|
} mbstate_t;
|
|
|
|
|
2003-12-30 10:37:08 +03:00
|
|
|
#include <size_t.h>
|
|
|
|
|
2006-03-15 02:18:32 +03:00
|
|
|
size_t mbrlen(const char *s, size_t n, mbstate_t *ps);
|
|
|
|
size_t mbrtowc(wchar_t *pwc, const char *s, size_t n, mbstate_t *ps);
|
|
|
|
size_t mbsrtowcs(wchar_t *dst, const char **src, size_t len,
|
|
|
|
mbstate_t *ps);
|
2003-12-30 10:37:08 +03:00
|
|
|
int mbsinit(const mbstate_t *);
|
|
|
|
size_t wcrtomb(char *, wchar_t, mbstate_t *);
|
2006-03-15 02:18:32 +03:00
|
|
|
wchar_t *wcschr(const wchar_t *ws, wchar_t wc);
|
|
|
|
int wcscmp(const wchar_t *ws1, const wchar_t *ws2);
|
|
|
|
int wcscoll(const wchar_t *ws1, const wchar_t *ws2);
|
|
|
|
size_t wcsrtombs(char *dst, const wchar_t **src, size_t len,
|
|
|
|
mbstate_t *ps);
|
|
|
|
|
|
|
|
#define WEOF ((wint_t)(-1))
|
2003-12-30 10:37:08 +03:00
|
|
|
|
|
|
|
#endif /* _WCHAR_H */
|