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>| Dclar dans l'en-tte <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 drive .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 reprsent par cette facette
codecvt est dpendant de l'tat, et state reprsente un tat de conversion qui n'est pas l'tat de dcalage initial, crire les caractres ncessaires pour revenir l'tat initial. Les caractres sont crits sur un tableau de caractres dont le premier lment est point par to. Pas plus que les caractres sont crits to_end-to. Le to_next paramtre est mis jour pour pointer un pass le dernier caractre 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 russite 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 caractres ncessaires ont t crites.
state reprsente dsormais 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 mmoire 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 spcifie 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 dpendant de l'tat, aucune squence de terminaison ncessaire
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 spcialisation 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 appele par
std::basic_filebuf::close() et dans d'autres situations lors de la finalisation d'une squence multi-octets dpendant de l'tat caractre .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 caractre large de sa reprsentation 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 chane 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 protge) |