std::codecvt::unshift, std::codecvt::do_unshift
Aus cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody>| definiert in Header <locale>
|
||
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)
öffentliche Member-Funktion ruft die Member-Funktion
do_unshift der am meisten abgeleiteten Klasse .Original:
public member function, calls the member function
do_unshift of the most derived class.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
2)
wenn die Codierung dieses
codecvt Facette vertreten ist state-abhängig und state stellt eine Umwandlung Staat, der nicht der ursprüngliche Schaltzustand, schreibt die Zeichen notwendig, um zum ursprünglichen Schaltzustand zurück. Die Charaktere sind zu einem Zeichen-Array, dessen erstes Element wird durch to wies geschrieben. Nicht mehr als to_end-to Zeichen geschrieben werden. Der Parameter to_next wird aktualisiert, um ein nach dem letzten Zeichen geschrieben zeigen .Original:
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.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Rückgabewert
Ein Wert vom Typ std::codecvt_base::result, was auf den Erfolg Status wie folgt:
Original:
A value of type std::codecvt_base::result, indicating the success status as follows:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
ok
|
alle erforderlichen Zeichen geschrieben wurden.
state stellt nun anfängliche Verschiebung ZustandOriginal: all necessary characters were written. state now represents initial shift stateThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
partial
|
nicht genug Platz in den Ausgabepuffer.
to_next == to_endOriginal: not enough space in the output buffer. to_next == to_endThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
error
|
unbekannter Fehler ist aufgetreten
Original: unspecified error occurred The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
noconv
|
die Codierung nicht state-abhängige, nicht Terminationssequenz notwendig
Original: the encoding is not state-dependent, no termination sequence necessary The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Die nicht-Converting-Spezialisierung
std::codecvt<char, char, std::mbstate_t> gibt immer std::codecvt_base::noconvOriginal:
The non-converting specialization
std::codecvt<char, char, std::mbstate_t> always returns std::codecvt_base::noconvThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Notes
Diese Funktion wird durch
std::basic_filebuf::close() und in anderen Situationen als beim Fertigstellen einer zustandsabhängigen Multibyte Zeichenfolge .Original:
This function is called by
std::basic_filebuf::close() and in other situations when finalizing a state-dependent multibyte character sequence.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Beispiel
| This section is incomplete Reason: no example |
Siehe auch
wandelt eine breite Charakter seiner Multibyte-Darstellung, gegebenen Zustand Original: converts a wide character to its multibyte representation, given state The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) | |
[virtuell] |
wandelt eine Zeichenkette aus Internt zu externT, wie beim Schreiben in eine Datei Original: converts a string from internT to externT, such as when writing to file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion) |