名前空間
変種
操作

std::toupper<div class="t-tr-text">(スタンダード::ロケール)<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">(std::locale)</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div>

提供: cppreference.com
< cpp‎ | locale

 
 
 
ヘッダ <locale> で定義
template< class charT >
charT toupper( charT ch, const locale& loc );
文字chは、可能であれば、指定されたロケールのstd::ctypeファセットによって指定された変換規則を使用して、大文字に変換します.
Original:
Converts the character ch to uppercase if possible, using the conversion rules specified by the given locale's std::ctype facet.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集] パラメータ

ch -
文字
Original:
character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
loc -
ロケール
Original:
locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 値を返します

1はロケールにリストされている場合chの大文字形式を返し、そうでなければchそのまま返す.
Original:
Returns the uppercase form of ch if one is listed in the locale, otherwise return ch unchanged.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] ノート

唯一の1時01文字マッピングは、例えば、この関数で実行することができます'SS'の大文字の形式はstd::toupperでは得ることができない(一部例外あり)2文字の文字列 "SS"です.
Original:
Only 1:1 character mapping can be performed by this function, e.g. the uppercase form of 'ß' is (with some exceptions) the two-character string "SS", which cannot be obtained by std::toupper.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 可能な実装

template< class charT >
charT toupper( charT ch, const std::locale& loc ) {
    return std::use_facet<std::ctype<charT>>(loc).toupper(ch);
}

[編集]

[編集] 参照

指定されたロケールの ctyoe ファセットを使用して文字を小文字に変換します
(関数テンプレート) [edit]
文字を大文字に変換します
(関数) [edit]
ワイド文字を大文字に変換します
(関数) [edit]