Espaces de noms
Variantes
Affichages
Actions

std::mbrtoc32

De cppreference.com
< cpp‎ | string‎ | multibyte

 
 
Bibliothèque de chaînes de caractères
Chaînes à zéro terminal
Original:
Null-terminated strings
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Les chaînes d'octets
Chaines multi-octets
Les chaînes étendues
Classes
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_string
char_traits
 
Chaînes à zéro terminal multi-octets
Large / multi-octets conversions
Original:
Wide/multibyte conversions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
mbsinit
mbtowc
mbstowcs
btowc
mbrtowc
mbsrtowcs
mbrtoc16 (C++11)
mbrtoc32 (C++11)
mblen
Types
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
mbstate_t
 
Defined in header <cuchar>
std::size_t mbrtoc32( char32_t* pc32,

                      const char* s,
                      std::size_t n,

                      std::mbstate_t* ps );
(depuis C++11)
Convertit un caractère multi-octets étroite à sa représentation en caractères de 32 bits (en général, UTF-32) .
Original:
Converts a narrow multibyte character to its 32-bit character representation (typically, UTF-32).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si s n'est pas un pointeur NULL, inspecte les octets plupart n de la chaîne de caractères multi-octets, en commençant par l'octet pointé par s pour déterminer le nombre d'octets nécessaires pour compléter le caractère multi-octets suivante (y compris les séquences de décalage). Si la fonction détermine que le caractère multi-octets prochaine s est complet et valide, il se convertit à la correspondante 32-bit caractère et le stocke dans *pc32 (si pc32 n'est pas nulle) .
Original:
If s is not a null pointer, inspects at most n bytes of the multibyte character string, beginning with the byte pointed to by s to determine the number of bytes necessary to complete the next multibyte character (including any shift sequences). If the function determines that the next multibyte character in s is complete and valid, converts it to the corresponding 32-bit character and stores it in *pc32 (if pc32 is not null).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si le caractère multi-octets dans *s correspond à une séquence multi-char32_t (pas possible avec UTF-32), puis après le premier appel à cette fonction, *ps est mis à jour de façon à ce que les prochains appels à mbrtoc32 écrira le char32_t supplémentaire , sans tenir compte *s .
Original:
If the multibyte character in *s corresponds to a multi-char32_t sequence (not possible with UTF-32), then after the first call to this function, *ps is updated in such a way that the next calls to mbrtoc32 will write out the additional char32_t, without considering *s.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si s est un pointeur nul, les valeurs de n et pc32 sont ignorés et l'appel est équivalent à std::mbrtoc32(NULL, "", 1, ps) .
Original:
If s is a null pointer, the values of n and pc32 are ignored and the call is equivalent to std::mbrtoc32(NULL, "", 1, ps).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si le caractère large produite est le caractère nul, le *ps état de conversion représente l'état initial .
Original:
If the wide character produced is the null character, the conversion state *ps represents the 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.
Si le __STDC_UTF_32__ macro est définie, le codage 32 bits utilisé par cette fonction est UTF-32, sinon il est défini par l'implémentation .
Original:
If the macro __STDC_UTF_32__ is defined, the 32-bit encoding used by this function is UTF-32, otherwise it is implementation-defined.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier] Paramètres

pc32 -
pointeur à l'endroit où la résultante 32-bit de caractère doit être écrite
Original:
pointer to the location where the resulting 32-bit character will be written
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
s -
pointeur vers la chaîne de caractères multi-octets utilisée comme entrée
Original:
pointer to the multibyte character string used as input
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
n -
limiter le nombre d'octets dans s qui peut être examiné
Original:
limit on the number of bytes in s that can be examined
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ps -
pointeur vers l'objet de l'état de conversion utilisé pour interpréter la chaîne multi-octets
Original:
pointer to the conversion state object used when interpreting the multibyte string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier] Retourne la valeur

La première des éventualités suivantes qui s'applique:
Original:
The first of the following that applies:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • 0 si le caractère converti à partir s (et stockées dans *pc32 si non nul) est le caractère nul
    Original:
    0 if the character converted from s (and stored in *pc32 if non-null) was the null character
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • le nombre d'octets de la [1...n] caractère multi-octets convertis avec succès à partir de s
    Original:
    the number of bytes [1...n] of the multibyte character successfully converted from s
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • -3 si le char32_t prochaine d'un caractère multi-char32_t a été écrit à *pc32. Pas octets sont traitées à partir de l'entrée dans cette affaire .
    Original:
    -3 if the next char32_t from a multi-char32_t character has now been written to *pc32. No bytes are processed from the input in this case.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • -2 si les octets n prochaines constituer une incomplet, mais jusqu'à présent, valide, caractères multi-octets. Rien n'est écrit sur *pc32 .
    Original:
    -2 if the next n bytes constitute an incomplete, but so far valid, multibyte character. Nothing is written to *pc32.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • -1 si erreur de codage survient. Rien n'est écrit sur *pc32, le EILSEQ valeur est stockée dans errno et si la valeur n'est pas spécifiée *ps .
    Original:
    -1 if encoding error occurs. Nothing is written to *pc32, the value EILSEQ is stored in errno and the value if *ps is unspecified.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.

[modifier] Voir aussi

(C++11)
convertir un caractère de 32 bits de large pour réduire chaîne multi-octets
Original:
convert a 32-bit wide character to narrow multibyte string
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 Externt à internt, comme lors de la lecture du fichier
Original:
converts a string from externT to internT, such as when reading from 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 de std::codecvt) [edit]
C documentation for mbrtoc32