[ Web Proxy ]
URL:
Viewing: https://fr.cppreference.com/cpp/string/multibyte/mbrtoc32 [Back]  [Original]

std::mbrtoc32 cppreference.com
cppreference.com
Espaces de noms
Variantes

std::mbrtoc32

De cppreference.com

<metanoindex/>

 
 
Bibliothque de chanes de caractres
Chanes zro 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 chanes d'octets
Chaines multi-octets
Les chanes 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
 
Chanes zro 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
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
 
<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.
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.
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.
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.
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.
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.

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.
  • 0 si le caractre converti partir s (et stockes dans *pc32 si non nul) est le caractre 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] caractre multi-octets convertis avec succs 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 caractre multi-char32_t a t crit *pc32. Pas octets sont traites partir de l'entre 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' prsent, valide, caractres 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 stocke dans errno et si la valeur n'est pas spcifie *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.

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) [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 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) [edit]
C documentation for mbrtoc32

Web Proxy Viewer  |  New URL  |  Original Page