C Standard Libraries C++
wctrans()
Declaration
wctrans_t wctrans(const char* kcpTransform);
Description
This function takes the category transformation that is specified by the string argument "kcpTransform" that is passed in, and returns the equivalent category transformation type as specified by a wctrans_t value. Possible string arguments include the following: "tolower" and "toupper".
Example
#include <iostream>
#include <cwctype>
int main() {
using namespace std;
wcout << "Lowercase: " << L'g' << endl;
wcout << "Uppercase: " <<
(wchar_t)towctrans(L'g', wctrans("toupper")) << endl;
return 0;
}
Output