std::wcslen
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. |
| Déclaré dans l'en-tête <cwchar>
|
||
| std::size_t wcslen( const wchar_t *str ); |
||
Retourne la longueur d'une chaîne de large, qui est le nombre de caractères non nuls larges qui précèdent le caractère nul final .
Original:
Returns the length of a wide string, that is the number of non-null wide characters that precede the terminating null wide 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.
Sommaire |
[modifier] Paramètres
| str | - | pointeur vers la chaîne se terminant par null large pour être examinés
Original: pointer to the null-terminated wide string to be examined The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifier] Retourne la valeur
La longueur de la chaîne à zéro terminal gamme
str .Original:
The length of the null-terminated wide string
str.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.
[modifier] Exemple
#include <iostream> #include <cwchar> int main() { const wchar_t* str = L"Hello, world!"; std::wcout << "The length of L\"" << str << "\" is " << std::wcslen(str) << '\n'; }
Résultat :
The length of L"Hello, world!" is 13
[modifier] Voir aussi
| C documentation for wcslen
|

