std::wcslen
提供: cppreference.com
|
|
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
| Defined in header <cwchar>
|
||
| std::size_t wcslen( const wchar_t *str ); |
||
終端のnullワイド文字に先行する非nullワイド文字の数ですワイド文字列の長さを返します。.
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.
目次 |
[編集] パラメータ
| str | - | 検査されるnullで終了するワイド文字列へのポインタ
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. |
[編集] 値を返します
nullで終了するワイド文字列の長さ
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.
[編集] 例
このコードを実行します
#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'; }
出力:
The length of L"Hello, world!" is 13
[編集] 参照
| C documentation for wcslen
|

