std::to_wstring
提供: cppreference.com
< cpp | string | basic string
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
Defined in header <string>
|
||
std::wstring to_wstring( int value ); |
(1) | (C++11およびそれ以降) |
std::wstring to_wstring( long value ); |
(2) | (C++11およびそれ以降) |
std::wstring to_wstring( long long value ); |
(3) | (C++11およびそれ以降) |
std::wstring to_wstring( unsigned value ); |
(4) | (C++11およびそれ以降) |
std::wstring to_wstring( unsigned long value ); |
(5) | (C++11およびそれ以降) |
std::wstring to_wstring( unsigned long long value ); |
(6) | (C++11およびそれ以降) |
std::wstring to_wstring( float value ); |
(7) | (C++11およびそれ以降) |
std::wstring to_wstring( double value ); |
(8) | (C++11およびそれ以降) |
std::wstring to_wstring( long double value ); |
(9) | (C++11およびそれ以降) |
1)
std::swprintf(buf, sz, L"%d", value)が十分に大きいために生産
buf
れるものと同じ内容のワイド文字列へ符号付き10進整数に変換し.Original:
Converts a signed decimal integer to a wide string with the same content as what std::swprintf(buf, sz, L"%d", value) would produce for sufficiently large
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.
2)
std::swprintf(buf, sz, L"%ld", value)が十分に大きいために生産
buf
れるものと同じ内容のワイド文字列へ符号付き10進整数に変換し..Original:
Converts a signed decimal integer to a wide string with the same content as what std::swprintf(buf, sz, L"%ld", value) would produce for sufficiently large
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.
3)
std::swprintf(buf, sz, L"%lld", value)が十分に大きいために生産
buf
れるものと同じ内容のワイド文字列へ符号付き10進整数に変換し.Original:
Converts a signed decimal integer to a wide string with the same content as what std::swprintf(buf, sz, L"%lld", value) would produce for sufficiently large
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.
4)
std::swprintf(buf, sz, L"%u", value)が十分に大きいために生産
buf
れるものと同じ内容のワイド文字列への符号なし10進整数に変換し.Original:
Converts an unsigned decimal integer to a wide string with the same content as what std::swprintf(buf, sz, L"%u", value) would produce for sufficiently large
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.
5)
std::swprintf(buf, sz, L"%lu", value)が十分に大きいために生産
buf
れるものと同じ内容のワイド文字列への符号なし10進整数に変換し.Original:
Converts an unsigned decimal integer to a wide string with the same content as what std::swprintf(buf, sz, L"%lu", value) would produce for sufficiently large
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.
6)
std::swprintf(buf, sz, L"%llu", value)が十分に大きいために生産
buf
れるものと同じ内容のワイド文字列への符号なし10進整数に変換し.Original:
Converts an unsigned decimal integer to a wide string with the same content as what std::swprintf(buf, sz, L"%llu", value) would produce for sufficiently large
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.
@ 7,8 @std::swprintf(buf, sz, L"%f", value)が十分に大きいために生産
buf
れるものと同じ内容のワイド文字列への浮動小数点値に変換し.Original:
@7,8@ Converts a floating point value to a wide string with the same content as what std::swprintf(buf, sz, L"%f", value) would produce for sufficiently large
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.
9)
std::swprintf(buf, sz, L"%Lf", value)が十分に大きいために生産
buf
れるものと同じ内容のワイド文字列への浮動小数点値に変換し.Original:
Converts a floating point value to a wide string with the same content as what std::swprintf(buf, sz, L"%Lf", value) would produce for sufficiently large
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.
目次 |
[編集] パラメータ
value | - | 変換する数値
Original: a numeric value to convert The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[編集] 値を返します
変換された値を保持するワイド文字列
Original:
a wide string holding the converted value
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.
[編集] 例
[編集] 参照
(C++11) |
string に整数型または浮動小数点値に変換します Original: converts an integral or floating point value to string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) |