std::wstring_convert< _Codecvt, _Elem, _Wide_alloc, _Byte_alloc > - String conversions.
Contents
Constructor & Destructor Documentation
template<typename_Codecvt,typename_Elem=wchar_t,typename_Wide_alloc=allocator<_Elem>,typename_Byte_alloc=allocator<char>>std::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::wstring_convert()[inline]
Default constructor.
template<typename_Codecvt,typename_Elem=wchar_t,typename_Wide_alloc=allocator<_Elem>,typename_Byte_alloc=allocator<char>>std::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::wstring_convert(_Codecvt*__pcvt)[inline],[explicit]
Constructor.
Parameters__pcvt The facet to use for conversions.
Takes ownership of __pcvt and will delete it in the destructor.
template<typename_Codecvt,typename_Elem=wchar_t,typename_Wide_alloc=allocator<_Elem>,typename_Byte_alloc=allocator<char>>std::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::wstring_convert(_Codecvt*__pcvt,state_type__state)[inline]
Construct with an initial converstion state.
Parameters__pcvt The facet to use for conversions.
__state Initial conversion state.
Takes ownership of __pcvt and will delete it in the destructor. The object's conversion state will
persist between conversions.
template<typename_Codecvt,typename_Elem=wchar_t,typename_Wide_alloc=allocator<_Elem>,typename_Byte_alloc=allocator<char>>std::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::wstring_convert(constbyte_string&__byte_err,constwide_string&__wide_err=wide_string())[inline],[explicit]
Construct with error strings.
Parameters__byte_err A string to return on failed conversions.
__wide_err A wide string to return on failed conversions.
Detailed Description
template<typename_Codecvt,typename_Elem=wchar_t,typename_Wide_alloc=allocator<_Elem>,typename_Byte_alloc=allocator<char>>
class std::wstring_convert< _Codecvt, _Elem, _Wide_alloc, _Byte_alloc >"String conversions.
Member Function Documentation
template<typename_Codecvt,typename_Elem=wchar_t,typename_Wide_alloc=allocator<_Elem>,typename_Byte_alloc=allocator<char>>size_tstd::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::converted()const[inline],[noexcept]
The number of elements successfully converted in the last conversion.
template<typename_Codecvt,typename_Elem=wchar_t,typename_Wide_alloc=allocator<_Elem>,typename_Byte_alloc=allocator<char>>wide_stringstd::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::from_bytes(char__byte)[inline]
Convert from bytes.
References std::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::from_bytes().
Referenced by std::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::from_bytes(),
std::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::from_bytes(), and
std::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::from_bytes().
template<typename_Codecvt,typename_Elem=wchar_t,typename_Wide_alloc=allocator<_Elem>,typename_Byte_alloc=allocator<char>>wide_stringstd::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::from_bytes(constbyte_string&__str)[inline]
Convert from bytes.
References std::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::from_bytes().
template<typename_Codecvt,typename_Elem=wchar_t,typename_Wide_alloc=allocator<_Elem>,typename_Byte_alloc=allocator<char>>wide_stringstd::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::from_bytes(constchar*__first,constchar*__last)[inline]
Convert from bytes.
template<typename_Codecvt,typename_Elem=wchar_t,typename_Wide_alloc=allocator<_Elem>,typename_Byte_alloc=allocator<char>>wide_stringstd::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::from_bytes(constchar*__ptr)[inline]
Convert from bytes.
References std::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::from_bytes().
template<typename_Codecvt,typename_Elem=wchar_t,typename_Wide_alloc=allocator<_Elem>,typename_Byte_alloc=allocator<char>>state_typestd::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::state()const[inline]
The final conversion state of the last conversion.
template<typename_Codecvt,typename_Elem=wchar_t,typename_Wide_alloc=allocator<_Elem>,typename_Byte_alloc=allocator<char>>byte_stringstd::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::to_bytes(_Elem__wchar)[inline]
Convert to bytes.
References std::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::to_bytes().
Referenced by std::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::to_bytes(),
std::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::to_bytes(), and std::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::to_bytes().
template<typename_Codecvt,typename_Elem=wchar_t,typename_Wide_alloc=allocator<_Elem>,typename_Byte_alloc=allocator<char>>byte_stringstd::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::to_bytes(const_Elem*__first,const_Elem*__last)[inline]
Convert to bytes.
template<typename_Codecvt,typename_Elem=wchar_t,typename_Wide_alloc=allocator<_Elem>,typename_Byte_alloc=allocator<char>>byte_stringstd::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::to_bytes(const_Elem*__ptr)[inline]
Convert to bytes.
References std::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::to_bytes().
template<typename_Codecvt,typename_Elem=wchar_t,typename_Wide_alloc=allocator<_Elem>,typename_Byte_alloc=allocator<char>>byte_stringstd::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::to_bytes(constwide_string&__wstr)[inline]
Convert to bytes.
References std::wstring_convert<_Codecvt,_Elem,_Wide_alloc,_Byte_alloc>::to_bytes().
Name
std::wstring_convert< _Codecvt, _Elem, _Wide_alloc, _Byte_alloc > - String conversions.
Synopsis
#include <locale>
PublicTypestypedefbasic_string< char, char_traits< char >, _Byte_alloc > byte_stringtypedef wide_string::traits_type::int_type int_typetypedef _Codecvt::state_type state_typetypedefbasic_string< _Elem, char_traits< _Elem >, _Wide_alloc > wide_stringPublicMemberFunctionswstring_convert ()
Default constructor.
wstring_convert (_Codecvt *__pcvt)
wstring_convert (_Codecvt *__pcvt, state_type __state)
wstring_convert (const byte_string &__byte_err, const wide_string &__wide_err=wide_string())
wstring_convert (const wstring_convert &)=delete
size_t converted () const noexcept
The number of elements successfully converted in the last conversion.
wstring_convert & operator= (const wstring_convert &)=delete
state_type state () const
The final conversion state of the last conversion.
wide_stringfrom_bytes (char __byte)
Convert from bytes.
wide_stringfrom_bytes (const char *__ptr)
Convert from bytes.
wide_stringfrom_bytes (const byte_string &__str)
Convert from bytes.
wide_stringfrom_bytes (const char *__first, const char *__last)
Convert from bytes.
byte_stringto_bytes (_Elem__wchar)
Convert to bytes.
byte_stringto_bytes (const _Elem *__ptr)
Convert to bytes.
byte_stringto_bytes (const wide_string &__wstr)
Convert to bytes.
byte_stringto_bytes (const _Elem *__first, const _Elem *__last)
Convert to bytes.
