Namensräume
Varianten
Aktionen

std::iswupper

Aus cppreference.com
< cpp‎ | string‎ | wide

 
 
Strings Bibliothek
Null-terminierte Strings
Original:
Null-terminated strings
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Byte-Strings
Multibyte-Strings
Wide Strings
Classes
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_string
char_traits
 
Nullterminierten Wide Strings
Funktionen
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Character Manipulation
Original:
Character manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Umwandlungen in numerische Formate
Original:
Conversions to numeric formats
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
String-Manipulation
Original:
String manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Array-Manipulation
Original:
Array manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
wmemcpy
wmemmove
wmemcmp
wmemchr
wmemset
 
definiert in Header <cwctype>
int iswupper( std::wint_t ch );
Prüft, ob die gegebene große Zeichen ist ein Großbuchstabe, dh eine ABCDEFGHIJKLMNOPQRSTUVWXYZ oder Großbuchstaben spezifisch für den aktuellen locale .
Original:
Checks if the given wide character is an uppercase letter, i.e. one of ABCDEFGHIJKLMNOPQRSTUVWXYZ or any uppercase letter specific to the current locale.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Inhaltsverzeichnis

[Bearbeiten] Parameter

ch -
Wide-Character
Original:
wide character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten] Rückgabewert

Nicht-Null-Wert (true), wenn die weite Zeichen ein Großbuchstabe ist, 0 (false) ansonsten .
Original:
Non-zero value (true) if the wide character is an uppercase letter, 0 (false) otherwise.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten] Beispiel

#include <iostream>
#include <cwctype>
#include <clocale>
 
int main()
{
    wchar_t c = L'\u053d'; // Armenian capital letter xeh ('Խ')
 
    std::cout << std::hex << std::showbase << std::boolalpha;
    std::cout << "in the default locale, iswupper(" << (std::wint_t)c << ") = "
              << (bool)std::iswupper(c) << '\n';
    std::setlocale(LC_ALL, "en_US.utf8");
    std::cout << "in Unicode locale, iswupper(" << (std::wint_t)c << ") = "
              << (bool)std::iswupper(c) << '\n';
}

Output:

in the default locale, iswupper(0x53d) = false
in Unicode locale, iswupper(0x53d) = true

[Bearbeiten] Siehe auch

prüft, ob ein Zeichen als Großbuchstaben durch eine locale eingestuft
Original:
checks if a character is classified as uppercase by a locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Funktions-Template) [edit]
prüft, ob ein Zeichen ist ein Großbuchstabe
Original:
checks if a character is an uppercase character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Funktion) [edit]
C documentation for iswupper
ASCII values
(hex)
characters

iscntrl
iswcntrl

isprint
iswprint

isspace
iswspace

isblank
iswblank

isgraph
iswgraph

ispunct
iswpunct

isalnum
iswalnum

isalpha
iswalpha

isupper
iswupper

islower
iswlower

isdigit