GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::codecvt::unshift,do_unshift(3) C++ Standard Libary std::codecvt::unshift,do_unshift(3)

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


Defined in header <locale>
public:


result unshift( StateT& state,
ExternT* to, (1)
ExternT* to_end,


ExternT*& to_next) const;
protected:


virtual result do_unshift( StateT& state,
ExternT* to, (2)
ExternT* to_end,


ExternT*& to_next) const;


1) public member function, calls the member function do_unshift of the most derived
class.
2) 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.


A value of type std::codecvt_base::result, indicating the success status as follows:


ok all necessary characters were written. state now represents initial shift
state
partial not enough space in the output buffer. to_next == to_end
error unspecified error occurred
noconv the encoding is not state-dependent, no termination sequence necessary


The non-converting specialization std::codecvt<char, char, std::mbstate_t> always
returns std::codecvt_base::noconv


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


This section is incomplete
Reason: no example


wcrtomb converts a wide character to its multibyte representation, given state
(function)
do_out converts a string from internT to externT, such as when writing to file
[virtual] (virtual protected member function)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.