std::iswupper
From cppreference.com
| Defined in header <cwctype>
|
||
| int iswupper( std::wint_t ch ); |
||
Checks if the given wide character is an uppercase letter, i.e. one of ABCDEFGHIJKLMNOPQRSTUVWXYZ or any uppercase letter specific to the current locale.
If the value of ch is neither representable as a wchar_t nor equal to the value of the macro WEOF, the behavior is undefined.
Contents |
[edit] Parameters
| ch | - | wide character |
[edit] Return value
Non-zero value if the wide character is an uppercase letter, zero otherwise.
[edit] Notes
ISO 30112 specifies which Unicode characters are include in POSIX upper category.
[edit] Example
Run this code
#include <clocale> #include <cwctype> #include <iostream> int main() { const wchar_t c = L'\u053d'; // Armenian capital letter xeh ('Խ') std::cout << std::hex << std::showbase << std::boolalpha;