fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <locale>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8. std::locale::global(std::locale("")); wstring str(L"àáäøęç");
  9. auto& f = std::use_facet<std::ctype<wchar_t>>(std::locale());
  10. f.toupper(&str[0], &str[0] + str.size());
  11. wcout << str << endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 5044KB
stdin
Standard input is empty
stdout
ÀÁÄØĘÇ