Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

core.stdc.wchar_

D header file for C99.
This module contains bindings to selected types and functions from the standard C header <wchar.h>. Note that this is not automatically generated, and may omit some types/functions from the original C header.
License:
Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)
Authors:
Sean Kelly
Standards:
ISO/IEC 9899:1999 (E)
public import core.stdc.stddef;
public import core.stdc.time;
public import core.stdc.stdint;
struct mbstate_t;
alias wint_t = dchar;
enum wchar_t WEOF;
nothrow @nogc @system int fwprintf(FILE* stream, scope const wchar_t* format, ...);
nothrow @nogc @system int fwscanf(FILE* stream, scope const wchar_t* format, ...);
nothrow @nogc @system int swprintf(wchar_t* s, size_t n, scope const wchar_t* format, ...);
nothrow @nogc @system int swscanf(scope const wchar_t* s, scope const wchar_t* format, ...);
nothrow @nogc @system int vfwprintf(FILE* stream, scope const wchar_t* format, va_list arg);
nothrow @nogc @system int vfwscanf(FILE* stream, scope const wchar_t* format, va_list arg);
nothrow @nogc @system int vswprintf(wchar_t* s, size_t n, scope const wchar_t* format, va_list arg);
nothrow @nogc @system int vswscanf(scope const wchar_t* s, scope const wchar_t* format, va_list arg);
nothrow @nogc @system int vwprintf(scope const wchar_t* format, va_list arg);
nothrow @nogc @system int vwscanf(scope const wchar_t* format, va_list arg);
nothrow @nogc @system int wprintf(scope const wchar_t* format, ...);
nothrow @nogc @system int wscanf(scope const wchar_t* format, ...);
nothrow @nogc @trusted wint_t fgetwc(FILE* stream);
nothrow @nogc @trusted wint_t fputwc(wchar_t c, FILE* stream);
nothrow @nogc @system wchar_t* fgetws(wchar_t* s, int n, FILE* stream);
nothrow @nogc @system int fputws(scope const wchar_t* s, FILE* stream);
nothrow @nogc @trusted wint_t getwchar();
nothrow @nogc @trusted wint_t putwchar(wchar_t c);
nothrow @nogc @trusted wint_t getwc(FILE* stream);
nothrow @nogc @trusted wint_t putwc(wchar_t c, FILE* stream);
nothrow @nogc @trusted wint_t ungetwc(wint_t c, FILE* stream);
nothrow @nogc @trusted int fwide(FILE* stream, int mode);
nothrow @nogc @system double wcstod(scope const wchar_t* nptr, wchar_t** endptr);
nothrow @nogc @system float wcstof(scope const wchar_t* nptr, wchar_t** endptr);
nothrow @nogc @system real wcstold(scope const wchar_t* nptr, wchar_t** endptr);
nothrow @nogc @system c_long wcstol(scope const wchar_t* nptr, wchar_t** endptr, int base);
nothrow @nogc @system long wcstoll(scope const wchar_t* nptr, wchar_t** endptr, int base);
nothrow @nogc @system c_ulong wcstoul(scope const wchar_t* nptr, wchar_t** endptr, int base);
nothrow @nogc @system ulong wcstoull(scope const wchar_t* nptr, wchar_t** endptr, int base);
pure nothrow @nogc @system wchar_t* wcscpy(return wchar_t* s1, scope const wchar_t* s2);
pure nothrow @nogc @system wchar_t* wcsncpy(return wchar_t* s1, scope const wchar_t* s2, size_t n);
pure nothrow @nogc @system wchar_t* wcscat(return wchar_t* s1, scope const wchar_t* s2);
pure nothrow @nogc @system wchar_t* wcsncat(return wchar_t* s1, scope const wchar_t* s2, size_t n);
pure nothrow @nogc @system int wcscmp(scope const wchar_t* s1, scope const wchar_t* s2);
nothrow @nogc @system int wcscoll(scope const wchar_t* s1, scope const wchar_t* s2);
pure nothrow @nogc @system int wcsncmp(scope const wchar_t* s1, scope const wchar_t* s2, size_t n);
nothrow @nogc @system size_t wcsxfrm(scope wchar_t* s1, scope const wchar_t* s2, size_t n);
pure nothrow @nogc @system inout(wchar_t)* wcschr(return inout(wchar_t)* s, wchar_t c);
pure nothrow @nogc @system size_t wcscspn(scope const wchar_t* s1, scope const wchar_t* s2);
pure nothrow @nogc @system inout(wchar_t)* wcspbrk(return inout(wchar_t)* s1, scope const wchar_t* s2);
pure nothrow @nogc @system inout(wchar_t)* wcsrchr(return inout(wchar_t)* s, wchar_t c);
pure nothrow @nogc @system size_t wcsspn(scope const wchar_t* s1, scope const wchar_t* s2);
pure nothrow @nogc @system inout(wchar_t)* wcsstr(return inout(wchar_t)* s1, scope const wchar_t* s2);
nothrow @nogc @system wchar_t* wcstok(return wchar_t* s1, scope const wchar_t* s2, wchar_t** ptr);
pure nothrow @nogc @system size_t wcslen(scope const wchar_t* s);
pure nothrow @nogc @system wchar_t* wmemchr(return const wchar_t* s, wchar_t c, size_t n);
pure nothrow @nogc @system int wmemcmp(scope const wchar_t* s1, scope const wchar_t* s2, size_t n);
pure nothrow @nogc @system wchar_t* wmemcpy(return wchar_t* s1, scope const wchar_t* s2, size_t n);
pure nothrow @nogc @system wchar_t* wmemmove(return wchar_t* s1, scope const wchar_t* s2, size_t n);
pure nothrow @nogc @system wchar_t* wmemset(return wchar_t* s, wchar_t c, size_t n);
nothrow @nogc @system size_t wcsftime(wchar_t* s, size_t maxsize, scope const wchar_t* format, scope const tm* timeptr);
nothrow @nogc @trusted wint_t btowc(int c);
nothrow @nogc @trusted int wctob(wint_t c);
nothrow @nogc @system int mbsinit(scope const mbstate_t* ps);
nothrow @nogc @system size_t mbrlen(scope const char* s, size_t n, mbstate_t* ps);
nothrow @nogc @system size_t mbrtowc(wchar_t* pwc, scope const char* s, size_t n, mbstate_t* ps);
nothrow @nogc @system size_t wcrtomb(char* s, wchar_t wc, mbstate_t* ps);
nothrow @nogc @system size_t mbsrtowcs(wchar_t* dst, scope const char** src, size_t len, mbstate_t* ps);
nothrow @nogc @system size_t wcsrtombs(char* dst, scope const wchar_t** src, size_t len, mbstate_t* ps);