std::towlower
提供: cppreference.com
|
|
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
| Defined in header <cwctype>
|
||
| std::wint_t towlower( std::wint_t ch ); |
||
可能であれば、小文字に与えられたワイド文字を変換.
Original:
Converts the given wide character to lowercase, if possible.
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.
目次 |
[編集] パラメータ
| ch | - | ワイド文字が変換されることになります
Original: wide character to be converted The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[編集] 値を返します
全く小文字バージョンは、現在のCロケールで
chまたは変更されていないch小文字バージョンのリストにも存在しなければ.Original:
Lowercase version of
ch or unmodified ch if no lowercase version is listed in the current C locale.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.
[編集] ノート
唯一の1時01文字マッピングは、例えば、この関数で実行することができますσ と 'ς': 'Σ'ギリシャ語の大文字小文字は、2つの単語の位置に応じて形を持っています。 std::towlowerへの呼び出しは、このケースでは正しい小文字の形を得るために使用することができません.
Original:
Only 1:1 character mapping can be performed by this function, e.g. the Greek uppercase letter 'Σ' has two lowercase forms, depending on the position in a word: 'σ' and 'ς'. A call to std::towlower cannot be used to obtain the correct lowercase form in this case.
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 <cwctype> #include <clocale> int main() { wchar_t c = L'\u0190'; // Latin capital open E ('Ɛ') std::cout << std::hex << std::showbase; std::cout << "in the default locale, towlower(" << (std::wint_t)c << ") = " << std::towlower(c) << '\n'; std::setlocale(LC_ALL, "en_US.utf8"); std::cout << "in Unicode locale, towlower(" << (std::wint_t)c << ") = " << std::towlower(c) << '\n'; }
出力:
in the default locale, towlower(0x190) = 0x190 in Unicode locale, towlower(0x190) = 0x25b
[編集] 参照
| 大文字にワイド文字に変換します Original: converts a wide character to uppercase The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
| converts a character to lowercase using the ctype facet of a locale (関数テンプレート) | |
| 文字を小文字に変換します Original: converts a character to lowercase The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
| C documentation for towlower
| |

