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::state

Defined in header <locale> state_type state() const; Returns the current value of the conversion state, which is stored in this wstring_convert object. The conversion state may be explicitly set in the constructor and is updated by all conversion operations. Return value The current conversion state. Example See also to_bytes converts a wide string into a byte string (public member function) from_bytes converts a byte string into a wide string (public memb

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::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::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::wmemchr

Defined in header <cwchar> const wchar_t* wmemchr( const wchar_t* ptr, wchar_t ch, std::size_t count ); wchar_t* wmemchr( wchar_t* ptr, wchar_t ch, std::size_t count ); Locates the first occurrence of wide character ch in the initial count wide characters of the wide character array pointed to by ptr. If count is zero, the function returns a null pointer. Parameters ptr - pointer to the wide character array to be examined ch - wide character

std::weibull_distribution::weibull_distribution

explicit weibull_distribution( RealType a = 1.0, RealType b = 1.0 ); (1) (since C++11) explicit weibull_distribution( const param_type& params ); (2) (since C++11) Constructs a new distribution object. The first version uses a and b as the distribution parameters, the second version uses params as the distribution parameters. Parameters a - the a distribution parameter (shape) b - the b distribution parameter (scale) params - the distribution parameter set

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