std::wstring_convert::from_bytes

Defined in header <locale> wide_string from_bytes( char byte ); (1) wide_string from_bytes( const char* ptr ); (2) wide_string from_bytes( const byte_string& str ); (3) wide_string from_bytes( const char* first, const char* last); (4) Performs multibyte to wide conversion, using the codecvt facet supplied at construction. 1) Converts byte as if it was a string of length 1 to wide_string. 2) Converts the null-terminated multibyte character sequence begi

std::wstring_convert::converted

Defined in header <locale> std::size_t converted() const; Returns the number of source characters that were processed by the most recent from_bytes() or to_bytes(). Return value The number of characters consumed by the most recent conversion operation. Exceptions (none) (until C++14) noexcept specification: noexcept (since C++14) Example #include <iostream> #include <string> #include <locale> #include <codecvt> int main() { std:

std::wstring_convert

Defined in header <locale> template< class Codecvt, class Elem = wchar_t, class Wide_alloc = std::allocator<Elem>, class Byte_alloc = std::allocator<char> > class wstring_convert; (since C++11) Class template std::wstring_convert performs conversions between byte string std::string and wide string std::basic_string<Elem>, using an individual code conversion facet Codecvt. std::wstring_convert assumes ownership of the con

std::wscanf

Defined in header <cwchar> int wscanf( const wchar_t* format, ... ); (1) (since C++11) int fwscanf( std::FILE* stream, const wchar_t* format, ... ); (2) (since C++11) int swscanf( const wchar_t* buffer, const wchar_t* format, ... ); (3) (since C++11) Reads data from the a variety of sources, interprets it according to format and stores the results into given locations. 1) Reads the data from stdin. 2) Reads the data from file stream stream. 3) Reads the data

std::ws

Defined in header <istream> template< class CharT, class Traits > std::basic_istream<CharT,Traits>& ws( std::basic_istream<CharT, Traits>& is ); Discards leading whitespace from an input stream. Behaves as an UnformattedInputFunction, except that is.gcount() is not modified. After constructing and checking the sentry object, extracts characters from the stream and discards them until any one of the following conditions occurs: end of file conditio

std::wprintf

Defined in header <cwchar> int wprintf( const wchar_t* format, ... ); (1) int fwprintf( std::FILE* stream, const wchar_t* format, ... ); (2) int swprintf( wchar_t* buffer, std::size_t size, const wchar_t* format, ... ); (3) Loads the data from the given locations, converts them to wide string equivalents and writes the results to a variety of sinks. 1) Writes the results to stdout. 2) Writes the results to a file stream stream. 3) Writes the results to a wide

std::wmemset

Defined in header <cwchar> wchar_t* wmemset( wchar_t* dest, wchar_t ch, std::size_t count ); Copies the wide character ch into each of the first count wide characters of the wide character array pointed to by dest. If overflow occurs, the behavior is undefined. If count is zero, the function does nothing. Parameters dest - pointer to the wide character array to fill ch - fill wide character count - number of wide characters to fill Return value Ret

std::wmemmove

Defined in header <cwchar> wchar_t* wmemmove( wchar_t* dest, const wchar_t* src, std::size_t count ); Copies exactly count successive wide characters from the wide character array pointed to by src to the wide character array pointed to by dest. If count is zero, the function does nothing. The arrays may overlap: copying takes place as if the wide characters were copied to a temporary wide character array and then copied from the temporary array to dest. Parameters dest

std::wmemcpy

Defined in header <cwchar> wchar_t* wmemcpy( wchar_t* dest, const wchar_t* src, std::size_t count ); Copies exactly count successive wide characters from the wide character array pointed to by src to the wide character array pointed to by dest. If the objects overlap, the behavior is undefined. If count is zero, the function does nothing. Parameters dest - pointer to the wide character array to copy to src - pointer to the wide character array to copy from c

std::wmemcmp

Defined in header <cwchar> int wmemcmp( const wchar_t* lhs, const wchar_t* rhs, std::size_t count ); Compares the first count wide characters of the wide character arrays pointed to by lhs and rhs. 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 arrays being compared. If count is zero, the function does nothing. Parameters lhs, rhs - pointers to