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

std::codecvt::unshift, std::codecvt::do_unshift cppreference.com
cppreference.com
Espaces de noms
Variantes

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

De cppreference.com

<metanoindex/>

 
 
Bibliothque localisations
Locales et facettes
Original:
Locales and facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
locale
Classification des caractres
Original:
Character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Conversions
Original:
Conversions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Classes de facettes catgorie de base
Original:
Facet category base classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Catgories de facettes
Original:
Facet categories
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Spcifique aux paramtres rgionaux facettes
Original:
Locale-specific facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Facettes de conversion de code
Original:
Code conversion facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
codecvt_utf8 (C++11)
codecvt_utf16 (C++11)
C locale
Original:
C locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
 
<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.

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.

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.
ok
tous les caractres ncessaires ont t crites. state reprsente dsormais tat initial
Original:
all necessary characters were written. state now represents initial shift state
The 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_end
Original:
not enough space in the output buffer. to_next == to_end
The 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::noconv
Original:
The non-converting specialization std::codecvt<char, char, std::mbstate_t> always returns std::codecvt_base::noconv
The text has been machine-translated via Google Translate.
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.

Exemple

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) [edit]
[
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) [edit]

Web Proxy Viewer  |  New URL  |  Original Page