Namespaces
Variants
Actions

std::iswupper

From cppreference.com
< cpp‎ | string‎ | wide
 
 
 
 
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

#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;