| Defined in header |
public: result unshift( StateT& state, ExternT* to, ExternT* to_end, ExternT*& to_next) const;
protected: virtual result do_unshift( StateT& state, ExternT* to, ExternT* to_end, ExternT*& to_next) const;
do_unshiftof the most derived class.
codecvtfacet is state-dependent, and
staterepresents a conversion state that is not the initial shift state, writes the characters necessary to return to the initial shift state. The characters are written to a character array whose first element is pointed to by
to. No more than
to_end-tocharacters are written. The parameter
to_nextis updated to point one past the last character written.
A value of type
std::codecvt_base::result, indicating the success status as follows:
| || all necessary characters were written.
| || not enough space in the output buffer.
| ||unspecified error occurred|
| ||the encoding is not state-dependent, no termination sequence necessary|
The non-converting specialization
std::codecvt<char, char, std::mbstate_t> always returns
This function is called by
std::basic_filebuf::close() and in other situations when finalizing a state-dependent multibyte character sequence.
| converts a wide character to its multibyte representation, given state
| converts a string from
(virtual protected member function)
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.