C Standard Libraries C++
towlower()
Declaration
int towlower(wint_t wChar);
Description
This function transforms the unicode valued argument that is passed in to a lowercase character value in the unicode table. If the value is an uppercase character value, it can be transformed and the transformed value is returned. Otherwise, the value "wChar" is returned.
Example
#include <iostream>
#include <cwctype>
int main() {
using namespace std;
wcout << "Uppercase: " << L'X' << endl;
wcout << "Lowercase: " << (wchar_t)towlower(L'X') << endl;
return 0;
}
Output