std::c16rtomb
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>| Déclaré dans l'en-tête <cuchar>
|
||
std::size_t c16rtomb( char* s, char16_t c16, std::mbstate_t* ps ); |
(depuis C++11) | |
Convertit un caractère large de 16 bits pour réduire caractères multi-octets .
Original:
Converts a 16-bit wide character to narrow multibyte character.
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, la fonction détermine le nombre d'octets nécessaires pour stocker la représentation des caractères multi-octets c16 (y compris les séquences de décalage), et stocke la représentation caractères multi-octets dans le tableau de caractères dont le premier élément est pointé par s. À la plupart des MB_CUR_MAX octets peuvent être écrits par cette fonction .Original:
If
s is not a null pointer, the function determines the number of bytes necessary to store the multibyte character representation of c16 (including any shift sequences), and stores the multibyte character representation in the character array whose first element is pointed to by s. At most MB_CUR_MAX bytes can be written by this function.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 NULL, l'appel est équivalent à std::c16rtomb(buf, u'\0', ps) pour certains buf tampon interne .Original:
If
s is a null pointer, the call is equivalent to std::c16rtomb(buf, u'\0', ps) for some internal buffer buf.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 c16 est le
u'\0' caractère large nul, un octet nul est stocké, précédée par une séquence de décalage nécessaire pour rétablir l'état initial et l'état *ps paramètre de conversion est mis à jour pour représenter l'état initial .Original:
If c16 is the null wide character
u'\0', a null byte is stored, preceded by any shift sequence necessary to restore the initial shift state and the conversion state parameter *ps is updated to represent 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_16__ macro est définie, l'encodage 16-bits utilisé par cette fonction est UTF-16, sinon il est défini par l'implémentation. Dans tous les cas, l'encodage multi-octets utilisée par cette fonction est spécifiée par la locale active C .Original:
If the macro
__STDC_UTF_16__ is defined, the 16-bit encoding used by this function is UTF-16, otherwise it is implementation-defined. In any case, the multibyte encoding used by this function is specified by the currently active C locale.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.
Paramètres
| s | - | pointeur sur un tableau de caractère étroit où le caractère multi-octets sera stockée
Original: pointer to narrow character array where the multibyte character will be stored The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| c16 | - | le caractère de 16 bits à convertir
Original: the 16-bit character to convert 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. |
Retourne la valeur
En cas de succès, retourne le nombre d'octets (y compris les séquences de décalage) écrites au tableau de caractères dont le premier élément est pointé par
s. Cette valeur peut être 0, par exemple lors du traitement du char16_t premier d'une paire de substitution .Original:
On success, returns the number of bytes (including any shift sequences) written to the character array whose first element is pointed to by
s. This value may be 0, e.g. when processing the first char16_t in a surrogate pair.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.
En cas d'échec (si
c16 n'est pas valide caractères 16 bits), les rendements -1, les magasins EILSEQ dans errno, et laisse dans un état indéterminé *ps .Original:
On failure (if
c16 is not a valid 16-bit character), returns -1, stores EILSEQ in errno, and leaves *ps in unspecified 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.
Voir aussi
(C++11) |
générer le prochain 16-bits pour les caractères larges partir d'une chaîne multi-octets étroite Original: generate the next 16-bit wide character from a 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 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 de std::codecvt)
|
C documentation for c16rtomb
| |