mbrlen
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody>| Elemento definito nell'header <wchar.h>
|
||
size_t mbrlen( const char* s, size_t n, mbstate_t* ps ); |
||
Determina la dimensione, in byte, del resto, il carattere multibyte il cui primo byte è puntato da
s, dato lo stato di conversione corrente 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.
Questa funzione è equivalente alla
mbrtowc(nullptr, s, n, ps?ps:&internal) chiamata per ottenere alcune internal oggetto nascosto di mbstate_t tipo, tranne che il ps espressione viene valutata una sola volta.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.
Parametri
| s | - | puntatore a un elemento di una stringa di caratteri multibyte
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 | - | limitare il numero di byte in s che può essere esaminato
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 | - | puntatore alla variabile che tiene lo stato di conversione
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. |
Valore di ritorno
0 se il n successivo o meno byte completare il carattere null.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.
Il numero di byte (tra
1 e n) che completano un carattere valido multibyteOriginal:
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 se si verifica errore di codificaOriginal:
(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 se i byte n successivi sono parte di un carattere multibyte probabilmente valido, che è ancora incompleto dopo aver esaminato tutti i byte 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.
Esempio
| This section is incomplete Reason: no example |
Vedi anche
converte il carattere successivo multibyte a carattere esteso, determinato stato 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. (funzione) | |
restituisce il numero di byte nel carattere multibyte successivo 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. (funzione) | |
C++ documentation for mbrlen
| |