std::codecvt::unshift, std::codecvt::do_unshift
De 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>| Déclaré dans l'en-tête <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)
fonction de membre du public, appelle le
do_unshift fonction membre de la classe la plus dérivée .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)
si le codage représenté par cette facette
codecvt est dépendant de l'état, et state représente un état de conversion qui n'est pas l'état de décalage initial, écrire les caractères nécessaires pour revenir à l'état initial. Les caractères sont écrits sur un tableau de caractères dont le premier élément est pointé par to. Pas plus que les caractères sont écrits to_end-to. Le to_next paramètre est mis à jour pour pointer un passé le dernier caractère écrit .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.
Retourne la valeur
Une valeur de std::codecvt_base::result type, qui indique l'état de réussite comme suit:
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
|
tous les caractères nécessaires ont été écrites.
state représente désormais état initialOriginal: 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
|
pas assez d'espace dans la mémoire tampon de sortie.
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
|
erreur non spécifiée s'est produite
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
|
l'encodage n'est pas dépendant de l'état, aucune séquence de terminaison nécessaire
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. |
La spécialisation non-conversion
std::codecvt<char, char, std::mbstate_t> renvoie toujours 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
Cette fonction est appelée par
std::basic_filebuf::close() et dans d'autres situations lors de la finalisation d'une séquence multi-octets dépendant de l'état caractère .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.
Exemple
| This section is incomplete Reason: no example |
Voir aussi
convertit le caractère large de sa représentation multi-octets, état donné 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. (fonction) | |
[ virtuel ]Original: virtual The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
convertit une chaîne de Internt à Externt, comme lors de l'écriture dans un fichier 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. (fonction membre virtuelle protégée) |