std::mbrtoc32 — cppreference.com
De cppreference.com
<metanoindex/>
<tbody> </tbody>
| Déclaré dans l'en-tête <cuchar> |
||
|
|
(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.
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. |
| 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. |
| 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. |
| 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. |
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.
0si le caractère converti à partirs(et stockées dans*pc32si non nul) est le caractère nulOriginal:
0if the character converted froms(and stored in*pc32if non-null) was the null characterThe 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 desOriginal:
the number of bytes
[1...n]of the multibyte character successfully converted fromsThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.-3si lechar32_tprochaine d'un caractère multi-char32_ta été écrit à*pc32. Pas octets sont traitées à partir de l'entrée dans cette affaire .Original:
-3if the nextchar32_tfrom a multi-char32_tcharacter 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.-2si les octetsnprochaines constituer une incomplet, mais jusqu'à présent, valide, caractères multi-octets. Rien n'est écrit sur*pc32.Original:
-2if the nextnbytes 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.-1si 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:
-1if encoding error occurs. Nothing is written to*pc32, the value EILSEQ is stored in errno and the value if*psis unspecified.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
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. (fonction) [edit] |
[ virtuel Original: virtual The text has been machine-translated via Google Translate. |
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. (fonction membre virtuelle protégée de std::codecvt) [edit]
|
C documentation for mbrtoc32 | |