14#define WEOF ((wint_t)-1)
17#define WCHAR_MIN (-2147483647 - 1)
18#define WCHAR_MAX 2147483647
45size_t mbstowcs(
wchar_t *dst,
const char *src,
size_t n);
46size_t wcstombs(
char *dst,
const wchar_t *src,
size_t n);
49int wcscmp(
const wchar_t *a,
const wchar_t *b);
50int wcsncmp(
const wchar_t *a,
const wchar_t *b,
size_t n);
51wchar_t *
wcscpy(
wchar_t *dst,
const wchar_t *src);
52wchar_t *
wcsncpy(
wchar_t *dst,
const wchar_t *src,
size_t n);
53wchar_t *
wcschr(
const wchar_t *s,
wchar_t c);
54wchar_t *
wcsrchr(
const wchar_t *s,
wchar_t c);
55wchar_t *
wmemchr(
const wchar_t *s,
wchar_t c,
size_t n);
56int wmemcmp(
const wchar_t *a,
const wchar_t *b,
size_t n);
57wchar_t *
wmemcpy(
wchar_t *dst,
const wchar_t *src,
size_t n);
58wchar_t *
wmemmove(
wchar_t *dst,
const wchar_t *src,
size_t n);
59wchar_t *
wmemset(
wchar_t *dst,
wchar_t c,
size_t n);
NULL, size_t, ptrdiff_t, offsetof.
integer types of fixed width.
the state of a conversion that stopped in a character (UTF-8 needs none)
Definition wchar.h:23
unsigned int pending
Definition wchar.h:24
wchar_t * wcsncpy(wchar_t *dst, const wchar_t *src, size_t n)
size_t mbrlen(const char *s, size_t n, mbstate_t *state)
as mbrtowc with s as a whole string: (size_t)-1 or the length
wchar_t * wmemset(wchar_t *dst, wchar_t c, size_t n)
wint_t btowc(int c)
a character of one byte as a wide character, or WEOF for a byte from 0x80
wchar_t * wcscpy(wchar_t *dst, const wchar_t *src)
int wmemcmp(const wchar_t *a, const wchar_t *b, size_t n)
wchar_t * wcsrchr(const wchar_t *s, wchar_t c)
int wcsncmp(const wchar_t *a, const wchar_t *b, size_t n)
size_t wcslen(const wchar_t *s)
wchar_t * wmemmove(wchar_t *dst, const wchar_t *src, size_t n)
int wcwidth(wchar_t wc)
the columns a character takes in a terminal: 0, 1 or 2; -1 if it cannot be shown
wchar_t * wmemchr(const wchar_t *s, wchar_t c, size_t n)
size_t wcrtomb(char *s, wchar_t wc, mbstate_t *state)
wc as UTF-8 at s (MB_CUR_MAX bytes of room): the bytes, or (size_t)-1
size_t wcstombs(char *dst, const wchar_t *src, size_t n)
size_t mbstowcs(wchar_t *dst, const char *src, size_t n)
unsigned int wint_t
Definition wchar.h:12
int wctob(wint_t wc)
a wide character of one byte as that byte, else EOF
wchar_t * wcschr(const wchar_t *s, wchar_t c)
int wcscmp(const wchar_t *a, const wchar_t *b)
int mbsinit(const mbstate_t *state)
always 1: no conversion stops in a character
size_t mbrtowc(wchar_t *wc, const char *s, size_t n, mbstate_t *state)
the character at s, of at most n bytes, into *wc (if wc is not NULL).
wchar_t * wmemcpy(wchar_t *dst, const wchar_t *src, size_t n)