fork(1) download
  1. #include <iostream>
  2. #include <locale>
  3.  
  4.  
  5. int main()
  6. {
  7. const wchar_t c = L'\u042f'; // cyrillic capital letter ya
  8.  
  9. std::locale loc2("en_US.UTF8");
  10. std::cout << "isalpha('Я', Unicode locale) returned "
  11. << std::boolalpha << std::isalpha(c, loc2) << '\n';
  12. }
Success #stdin #stdout 0s 5072KB
stdin
Standard input is empty
stdout
isalpha('Я', Unicode locale) returned true