std::mbrtoc32
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 <cuchar>
|
||
std::size_t mbrtoc32( char32_t* pc32, const char* s, std::size_t n, std::mbstate_t* ps ); |
(depuis C++11) | |
Convertit un caractre multi-octets troite sa reprsentation en caractres de 32 bits (en gnral, 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.
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 chane de caractres multi-octets, en commenant par l'octet point par s pour dterminer le nombre d'octets ncessaires pour complter le caractre multi-octets suivante (y compris les squences de dcalage). Si la fonction dtermine que le caractre multi-octets prochaine s est complet et valide, il se convertit la correspondante 32-bit caractre 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.
You can help to correct and verify the translation. Click here for instructions.
Si le caractre multi-octets dans
*s correspond une squence multi-char32_t (pas possible avec UTF-32), puis aprs le premier appel cette fonction, *ps est mis jour de faon ce que les prochains appels mbrtoc32 crira le char32_t supplmentaire , 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.
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 ignors 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.
You can help to correct and verify the translation. Click here for instructions.
Si le caractre large produite est le caractre nul, le
*ps tat de conversion reprsente 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.
You can help to correct and verify the translation. Click here for instructions.
Si le
__STDC_UTF_32__ macro est dfinie, le codage 32 bits utilis par cette fonction est UTF-32, sinon il est dfini par l'implmentation .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.
You can help to correct and verify the translation. Click here for instructions.
Paramtres
| pc32 | - | pointeur l'endroit o la rsultante 32-bit de caractre 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 chane de caractres multi-octets utilise comme entre
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 interprter la chane 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. |
Retourne la valeur
La premire des ventualits 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.
You can help to correct and verify the translation. Click here for instructions.
0si le caractre converti partirs(et stockes dans*pc32si non nul) est le caractre 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]caractre multi-octets convertis avec succs 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 caractre multi-char32_ta t crit*pc32. Pas octets sont traites partir de l'entre 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' prsent, valide, caractres 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 stocke dans errno et si la valeur n'est pas spcifie*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 caractre de 32 bits de large pour rduire chane 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) |
[ 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 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 protge de std::codecvt)
|
C documentation for mbrtoc32
| |