The header <wchar.h> defines wide string handling functions.
The <wchar.h> header shall define the following macro constants:
The <wchar.h> header shall define the following functions:
Input/Output:
General Utilities:
Strings:
Wide character array manipulation:
Time:
Related topics:
<tgmath.h> | <threads.h> | <time.h> | <uchar.h> | <wctype.h> | Standard Library in C
List of topics: C Programming
The <wchar.h> header shall define the following macro constants:
| WEOF | a non-character value of type wint_t used to indicate errors (C95) |
| WCHAR_MIN | the smallest valid value of wchar_t (C95) |
| WCHAR_MAX | the largest valid value of wchar_t (C95) |
The <wchar.h> header shall define the following functions:
Input/Output:
| fgetwc | Get wide character from stream |
| fgetws | Get wide string from stream |
| fputwc | Write wide character to stream |
| fputws | Write wide string to stream |
| fwide | Stream orientation |
| fwprintf | Write formatted data to stream |
| fwscanf | Read formatted data from stream |
| getwc | Get wide character from stream |
| getwchar | Get wide character from stdin |
| putwc | Write wide character to stream |
| putwchar | Write wide character to stdout |
| swprintf | Write formatted data to wide string |
| swscanf | Read formatted data from string |
| ungetwc | Unget wide character from stream |
| vfwprintf | Write formatted data from variable argument list to stream |
| vfwscanf | Read formatted data from stream into variable argument list (C11) |
| vswprintf | Write formatted data from variable argument list to sized buffer (C11) |
| vswscanf | Read formatted data from wide string into variable argument list (C11) |
| vwprintf | Print formatted data from variable argument list to stdout |
| vwscanf | Read formatted data into variable argument list (C11) |
| wprintf | Print formatted data to stdout |
| wscanf | Read formatted data from stdin |
General Utilities:
| wcstol(C95) wcstoll(C99) | converts a wide string to an integer value |
| wcstoul(C95) wcstoull(C99) | converts a wide string to an unsigned integer value |
| wcstof(C99) wcstod(C95) wcstold(C99) | converts a wide string to a floating point value |
| btowc | Convert single byte character to wide character |
| mbrlen | Get length of multibyte character |
| mbrtowc | Convert multibyte sequence to wide character |
| mbsinit | Check if initial conversion state |
| mbsrtowcs | Convert multibyte string to wide-character string |
| wcrtomb | Convert wide character to multibyte sequence |
| wctob | Convert wide character to single byte |
| wcsrtombs | Convert wide-character string to multibyte string |
Strings:
| wcscpy(C95) wcscpy_s(C11) | copies one wide string to another |
| wcsncpy(C95) wcsncpy_s(C11) | copies a certain amount of wide characters from one string to another |
| wcscat(C95) wcscat_s(C11) | appends a copy of one wide string to another |
| wcsncat(C95) wcsncat_s(C11) | appends a certain amount of wide characters from one wide string to another |
| wcsxfrm | transform a wide string so that wcscmp would produce the same result as wcscoll (C95) |
| wcslen(C95) wcsnlen_s(C11) | returns the length of a wide string |
| wcscmp | compares two wide strings (C95) |
| wcsncmp | compares a certain amount of characters from two wide strings (C95) |
| wcscoll | compares two wide strings in accordance to the current locale (C95) |
| wcschr | finds the first occurrence of a wide character in a wide string (C95) |
| wcsrchr | finds the last occurrence of a wide character in a wide string (C95) |
| wcsspn | returns the length of the maximum initial segment that consists of only the wide characters found in another wide string (C95) |
| wcscspn | returns the length of the maximum initial segment that consists of only the wide chars not found in another wide string (C95) |
| wcspbrk | finds the first location of any wide character in one wide string, in another wide string (C95) |
| wcsstr | finds the first occurrence of a wide string within another wide string (C95) |
| wcstok(C95) wcstok_s(C11) | finds the next token in a wide string |
Wide character array manipulation:
| wmemcpy(C95) wmemcpy_s(C11) | copies a certain amount of wide characters between two non-overlapping arrays |
| wmemmove(C95) wmemmove_s(C11) | copies a certain amount of wide characters between two, possibly overlapping, arrays |
| wmemcmp | compares a certain amount of wide characters from two arrays (C95) |
| wmemchr | finds the first occurrence of a wide character in a wide character array (C95) |
| wmemset | copies the given wide character to every position in a wide character array (C95) |
Time:
| wcsftime | Format time as wide string |
Related topics:
<tgmath.h> | <threads.h> | <time.h> | <uchar.h> | <wctype.h> | Standard Library in C
List of topics: C Programming
No comments:
Post a Comment