mbrlen
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 <wchar.h>
|
||
size_t mbrlen( const char* s, size_t n, mbstate_t* ps ); |
||
Détermine la taille, en octets, du reste le caractère multi-octets dont le premier octet est pointé par
s, étant donné l'état actuel de conversion ps .Original:
Determines the size, in bytes, of the remainder of the multibyte character whose first byte is pointed to by
s, given the current conversion state 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.
Cette fonction est équivalente à la
mbrtowc(nullptr, s, n, ps?ps:&internal) appel pour internal objets cachés mbstate_t type, sauf que le ps expression est évaluée une seule fois .Original:
This function is equivalent to the call
mbrtowc(nullptr, s, n, ps?ps:&internal) for some hidden object internal of type mbstate_t, except that the expression ps is evaluated only once.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 élément d'une chaîne de caractères multi-octets
Original: pointer to an element of a multibyte character string 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 la variable contenant l'état de conversion
Original: pointer to the variable holding the conversion state 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
0 si le n suivante ou moins d'octets compléter le caractère nul .Original:
0 if the next n or fewer bytes complete 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.
You can help to correct and verify the translation. Click here for instructions.
Le nombre d'octets (entre
1 et n) qui complètent un caractère multi-octets valideOriginal:
The number of bytes (between
1 and n) that complete a valid multibyte characterThe 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.
(size_t)-1 si erreur de codage survientOriginal:
(size_t)-1 if encoding error occursThe 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.
(size_t)-2 si les octets n prochaines font partie d'un caractère multi-octets peut-être valable, ce qui est encore incomplète après avoir examiné tous les octets nOriginal:
(size_t)-2 if the next n bytes are part of a possibly valid multibyte character, which is still incomplete after examining all n bytesThe 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.
Exemple
| This section is incomplete Reason: no example |
Voir aussi
convertit le caractère multi-octets suivante caractère large, état donné Original: converts the next multibyte character to wide character, given state The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
renvoie le nombre d'octets dans le prochain caractère multi-octets Original: returns the number of bytes in the next multibyte character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
C++ documentation for mbrlen
| |