diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-03-01 23:24:45 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-03-01 23:24:45 -0500 |
commit | e0614f7cd418afedd06c9bcd5abb965608bc52f8 (patch) | |
tree | b4b51646b9f65279caa01c3413e42060fe95c395 /include/wchar.h | |
parent | 899b13cae77469a9ed1f076c456b66d567af69d8 (diff) | |
download | musl-e0614f7cd418afedd06c9bcd5abb965608bc52f8.tar.gz musl-e0614f7cd418afedd06c9bcd5abb965608bc52f8.tar.bz2 musl-e0614f7cd418afedd06c9bcd5abb965608bc52f8.tar.xz musl-e0614f7cd418afedd06c9bcd5abb965608bc52f8.zip |
add all missing wchar functions except floating point parsers
these are mostly untested and adapted directly from corresponding byte
string functions and similar.
Diffstat (limited to 'include/wchar.h')
-rw-r--r-- | include/wchar.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/wchar.h b/include/wchar.h index 87e244a3..12ddd4f4 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -11,6 +11,11 @@ extern "C" { #define __NEED_wchar_t #define __NEED_wint_t +#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ + || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) +#define __NEED_locale_t +#endif + #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) #define __NEED_wctype_t #endif @@ -132,6 +137,16 @@ size_t wcsftime (wchar_t *, size_t, const wchar_t *, const struct tm *); FILE *open_wmemstream(wchar_t **, size_t *); size_t mbsnrtowcs(wchar_t *, const char **, size_t, size_t, mbstate_t *); size_t wcsnrtombs(char *, const wchar_t **, size_t, size_t, mbstate_t *); +wchar_t *wcsdup(const wchar_t *); +size_t wcsnlen (const wchar_t *, size_t); +wchar_t *wcpcpy (wchar_t *, const wchar_t *); +wchar_t *wcpncpy (wchar_t *, const wchar_t *, size_t); +int wcscasecmp(const wchar_t *, const wchar_t *); +int wcscasecmp_l(const wchar_t *, const wchar_t *, locale_t); +int wcsncasecmp(const wchar_t *, const wchar_t *, size_t); +int wcsncasecmp_l(const wchar_t *, const wchar_t *, size_t, locale_t); +int wcscoll_l(const wchar_t *, const wchar_t *, locale_t); +size_t wcsxfrm_l(wchar_t *, const wchar_t *, size_t n, locale_t); #endif #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) |