C++ <cwchar> header


The <cwchar> header file declares a set of functions to work with C wide character string (a computer character datatype that generally has a size greater than the traditional 8-bit character).

It also contains several macros and types. To learn about macros and types included in <cwchar>, visit: Standard library header <cwchar>

Search <cwchar> Functions

Method Description
C++ btowc() converts character to its wide character
C++ fgetwc() reads next wide character from given input stream
C++ fgetws() reads specified num of wide characters from stream
C++ fputwc() writes wide character to the given output stream
C++ fputws() writes wide string except null wide char to output
C++ fwide() set or query orientation of given file stream
C++ fwprintf() write formatted wide string to a file stream
C++ fwscanf() reads wide character from file stream
C++ getwc() reads next wide character from input stream
C++ getwchar() reads next wide character from stdin
C++ mbrlen() determines size in bytes of a multibyte character
C++ mbrtowc() converts narrow multibyte char to wide char
C++ mbsinit() describe initial conversion state of mbstate_t obj
C++ mbsrtowcs() convert narrow multibyte char seq to wide char seq
C++ putwc() writes wide character to the given output stream
C++ putwchar() writes wide character to stdout
C++ swprintf() write formatted wide string to wide string buffer
C++ swscanf() reads wide character from wide string buffer
C++ ungetwc() push previously read wide character back to stream
C++ vfwprintf() write formatted wide string to a file stream
C++ vfwscanf() read wide character string from a file stream
C++ vswprintf() write formatted wide string to wide string buffer
C++ vswscanf() read wide character string from wide string buffer
C++ vwprintf() write formatted wide string to stdout
C++ vwscanf() read wide character from stdin
C++ wcrtomb() convert wide character to its narrow multibyte rep
C++ wcscat() appends copy of wide string to the end of another
C++ wcschr() searches for a wide character in a wide string
C++ wcscmp() lexicographically compares two wide string
C++ wcscoll() compares two null terminated wide string
C++ wcscpy() copies wide character string from source to dest
C++ wcscspn() returns number of wide char before first occurence
C++ wcsftime() converts given date and time to wide character str
C++ wcslen() returns length of the given wide string
C++ wcsncat() appends specified num of wide char to another str
C++ wcsncmp() compares specified number of wide char of strings
C++ wcsncpy() copies specified number of wide characters
C++ wcspbrk() searches for set of wide char in given wide string
C++ wcsrchr() searches last occurrence of wide char in string
C++ wcsrtombs() convert wide char seq to narrow multibyte char seq
C++ wcsspn() returns length of maximum initial segment
C++ wcsstr() finds first occurrence of wide substring in a str
C++ wcstod() converts wide string float number to double
C++ wcstof() converts wide string float number to float
C++ wcstok() returns next token in null terminated wide string
C++ wcstol() converts wide string float number to long int
C++ wcstold() converts wide string float number to long double
C++ wcstoll() converts wide string of specified base to int
C++ wcstoul() converts wide str of given base to unsigned long
C++ wcstoull() converts wide string num to unsigned long long
C++ wcsxfrm() transforms wide string to implementation defined
C++ wctob() converts wide character to single byte character
C++ wmemchr() searches for first occurrence of wide char
C++ wmemcmp() compares wide chars of two wide strings
C++ wmemcpy() copies specified num of wide char from src to dest
C++ wmemmove() moves wide chars from src to dest
C++ wmemset() copies single wide char for a certain num of time
C++ wprintf() write formatted wide string to stdout
C++ wscanf() reads wide character from stdin