[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/locale/codecvt/unshift [Back]  [Original]

std::codecvt::unshift, std::codecvt::do_unshift cppreference.com
cppreference.com

std::codecvt::unshift, std::codecvt::do_unshift

cppreference.com

<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.
Google.
. .

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.
Google.
. .

std::codecvt_base::result, :
:
A value of type std::codecvt_base::result, indicating the success status as follows:
Google.
. .
ok
. state
:
all necessary characters were written. state now represents initial shift state
Google.
. .
partial
. to_next == to_end
:
not enough space in the output buffer. to_next == to_end
Google.
. .
error
-
:
unspecified error occurred
Google.
. .
noconv
,
:
the encoding is not state-dependent, no termination sequence necessary
Google.
. .
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::noconv
Google.
. .

std::basic_filebuf::close() , .
:
This function is called by std::basic_filebuf::close() and in other situations when finalizing a state-dependent multibyte character sequence.
Google.
. .

.


() []
[virtual]
internT externT, ,
:
converts a string from internT to externT, such as when writing to file
Google.
. .

(virtual protected -) []

Web Proxy Viewer  |  New URL  |  Original Page