std::wcsrchr

Defined in header <cwchar> const wchar_t* wcsrchr( const wchar_t* str, wchar_t ch ); wchar_t* wcsrchr( wchar_t* str, wchar_t ch ); Finds the last occurrence of the wide character ch in the wide string pointed to by str. Parameters str - pointer to the null-terminated wide string to be analyzed ch - wide character to search for Return value Pointer to the found character in str, or NULL if no such character is found. Example See als

std::wcspbrk

Defined in header <cwchar> const wchar_t* wcspbrk( const wchar_t* dest, const wchar_t* str ); wchar_t* wcspbrk( wchar_t* dest, const wchar_t* str ); Finds the first character in wide string pointed to by dest, that is also in wide string pointed to by str. Parameters dest - pointer to the null-terminated wide string to be analyzed src - pointer to the null-terminated wide string that contains the characters to search for Return value Po

std::wcsncpy

Defined in header <cwchar> wchar_t *wcsncpy( wchar_t *dest, const wchar_t *src, std::size_t count ); Copies at most count characters of the wide string pointed to by src (including the terminating null wide character) to wide character array pointed to by dest. If count is reached before the entire string src was copied, the resulting wide character array is not null-terminated. If, after copying the terminating null wide character from src, count is not reached, additional

std::wcsncmp

Defined in header <cwchar> int wcsncmp( const wchar_t* lhs, const wchar_t* rhs, std::size_t count ); Compares at most count wide characters of two null-terminated wide strings. The comparison is done lexicographically. The sign of the result is the sign of the difference between the values of the first pair of wide characters that differ in the strings being compared. The behavior is undefined if lhs or rhs are not pointers to null-terminated strings. Parameters lhs, rh

std::wcsncat

Defined in header <cwchar> wchar_t *wcsncat( wchar_t *dest, const wchar_t *src, std::size_t count ); Appends at most count wide characters from the wide string pointed to by src to the end of the character string pointed to by dest, stopping if the null terminator is copied. The wide character src[0] replaces the null terminator at the end of dest. The null terminator is always appended in the end (so the maximum number of wide characters the function may write is count+1).

std::wcslen

Defined in header <cwchar> std::size_t wcslen( const wchar_t* str ); Returns the length of a wide string, that is the number of non-null wide characters that precede the terminating null wide character. The behavior is undefined if there is no null character in the wide character array pointed to by str. Parameters str - pointer to the null-terminated wide string to be examined Return value The length of the null-terminated wide string str. Example #inclu

std::wcsftime

Defined in header <cwchar> std::size_t wcsftime( wchar_t* str, std::size_t count, const wchar_t* format, const std::tm* time ); Converts the date and time information from a given calendar time time to a null-terminated wide character string str according to format string format. Up to count bytes are written. Parameters str - pointer to the first element of the wchar_t array for output count - maximum number of wide characters to write format - pointer

std::wcscspn

Defined in header <cwchar> std::size_t wcscspn( const wchar_t* dest, const wchar_t* src ); Returns the length of the maximum initial segment of the wide string pointed to by dest, that consists of only the characters not found in wide string pointed to by src. Parameters dest - pointer to the null-terminated wide string to be analyzed src - pointer to the null-terminated wide string that contains the characters to search for Return value The length of th

std::wcscpy

Defined in header <cwchar> wchar_t *wcscpy( wchar_t *dest, const wchar_t *src ); Copies the wide string pointed to by src (including the terminating null wide character) to wide character array pointed to by dest. If the strings overlap, the behavior is undefined. Parameters dest - pointer to the wide character array to copy to src - pointer to the null-terminated wide string to copy from Return value dest. Example #include <iostream> #include

std::wcscoll

Defined in header <cwchar> int wcscoll( const wchar_t* lhs, const wchar_t* rhs ); Compares two null-terminated wide strings according to the locale most recently installed by std::setlocale, as defined by the LC_COLLATE category. Parameters lhs, rhs - pointers to the null-terminated wide strings to compare Return value Negative value if lhs is less than (precedes) rhs. ​0​ if lhs is equal to rhs. Positive value if lhs is greater than (follows) rhs. Notes Co