次の方法で共有


ctype::do_tolower

小文字が文字または文字の範囲を変換するために呼び出される仮想関数。

virtual CharType do_tolower(
    CharType ch
) const;
virtual const CharType *do_tolower(
    CharType* first, 
    const CharType* last
) const;

パラメーター

  • ch
    小文字に変換する文字。

  • first
    大文字と小文字を変換する文字の範囲の最初の文字へのポインター。

  • last
    大文字と小文字を変換する文字の範囲の最後の文字に続く文字へのポインター。

戻り値

最初の保護されたメンバー関数はパラメーター chの小文字のフォームを返します。小文字のフォームがない場合、chを返します。2 番目のプロテクト メンバー関数は lastを返します。

解説

2 番目のプロテクト メンバーのテンプレート関数は、do_tolowerfirstI ([]) と間隔 [0 last、– first) の I の各要素 first [入力]、I置き換えます。

使用例

do_tolowerを呼び出す tolowerの例を参照してください。

必要条件

ヘッダー: <locale>

名前空間: std

参照

関連項目

ctype Class