- cwctype[meta header]
- std[meta namespace]
- function[meta id-type]
namespace std {
wint_t towlower(wint_t wc);
}- wint_t[link /reference/cwchar/wint_t.md]
ワイド文字wcを小文字に変換する。変換は、ロケールのLC_CTYPEカテゴリの影響を受ける。
現在のロケールでwcに対応する小文字が定義されていれば、その文字を返す。そうでなければwcをそのまま返す。
#include <cwctype>
#include <iostream>
int main()
{
std::wcout << static_cast<wchar_t>(std::towlower(L'A')) << std::endl;
// 対応する小文字がない文字は変換されない
std::wcout << static_cast<wchar_t>(std::towlower(L'1')) << std::endl;
}- std::towlower[color ff0000]
- std::wcout[link /reference/iostream/wcout.md]
a
1
- C++98