wstring_convert::wstring_convert
Constructs an object of type wstring_convert.
wstring_convert(Codecvt *_Pcvt = new Codecvt);
wstring_convert(Codecvt *_Pcvt, state_type _State);
wstring_convert(const byte_string& _Berr,
const wide_string& _Werr = wide_string());
Parameters
Parameter |
Description |
---|---|
*_Pcvt |
The object of type Codecvt to perform the conversion. |
_State |
The object of type state_type representing the conversion state. |
_Berr |
The byte_string to display on errors. |
_Werr |
The wide_string to display on errors. |
Remarks
The first constructor stores _Pcvt_arg in the conversion object and default values in the conversion state object, the byte-string error message object, and the wide-string error message object.
The second constructor stores _Pcvt in the conversion object, _State in the conversion state object. It stores default values in the byte-string error message object and the wide-string error message object. The stored state is retained between calls to from_bytes and to_bytes.
The third constructor stores the conversion object in the conversion object, _State in the conversion state object, _Berr in the byte-string error message object, and _Werr in the wide-string error message object.
Requirements
Header: <cvt/wstring>
Namespace: stdext::cvt