1

Is there an isupper for char32_t? I get an assertion fail on the following code line

assert(isupper(U'Å'));

ragnarius
  • 5,642
  • 10
  • 47
  • 68
  • 1
    [Locale-aware version](https://en.cppreference.com/w/cpp/locale/isupper) – BoBTFish Oct 02 '20 at 12:50
  • The older [`isupper()`](https://en.cppreference.com/w/c/string/byte/isupper) in ``/`` is also locale-aware, using the locale set with [`setlocale()`](https://en.cppreference.com/w/c/locale/setlocale). But in this case, I would say yes, use the `` version instead, and if needed create a custom locale facet that works with UTF-32 data. – Remy Lebeau Oct 02 '20 at 16:04

0 Answers0