Espaces de noms
Variantes
Affichages
Actions

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

De cppreference.com
< cpp‎ | locale‎ | codecvt

 
 
Bibliothèque 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 caractères
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 catégorie 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.
Catégories 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.
Spécifique aux paramètres régionaux 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.
 
 
Defined 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)
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.
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.

Sommaire

[modifier] 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.
ok
tous les caractères nécessaires ont été écrites. state représente désormais é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 mémoire 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 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::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.

[modifier] 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.

[modifier] Exemple

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