std::codecvt::unshift, std::codecvt::do_unshift
cppreference.com
[] |
Google. . , . , . |
<metanoindex/>
<tbody> </tbody> public: result unshift( stateT& state, externT* to, externT* to_end, externT*& to_next) const |
(1) | |
protected: result do_unshift( stateT& state, externT* to, externT* to_end, externT*& to_next) const |
(2) | |
1)
-,
do_unshift - .:
public member function, calls the member function
do_unshift of the most derived class.2)
codecvt -, state , , , . , , to. to_end-to . to_next , .:
if the encoding represented by this
codecvt facet is state-dependent, and state represents 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-to characters are written. The parameter to_next is updated to point one past the last character written.ok
|
.
state |
partial
|
.
to_next == to_end |
error
|
-
|
noconv
|
,
|
std::codecvt<char, char, std::mbstate_t> std::codecvt_base::noconv:
The non-converting specialization
std::codecvt<char, char, std::mbstate_t> always returns std::codecvt_base::noconvstd::basic_filebuf::close() , .:
This function is called by
std::basic_filebuf::close() and in other situations when finalizing a state-dependent multibyte character sequence.| : |
.
| () | |
[virtual] |
internT externT, , (virtual protected -) |