std::iswalpha – cppreference.com

std::iswalpha

Aus cppreference.com

<metanoindex/>

 
 
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
 
<tbody> </tbody>
definiert in Header <cwctype>
int iswalpha( std::wint_t ch );
Prüft, ob die gegebene große Zeichen ist ein Buchstabe, dh entweder ein Großbuchstabe (ABCDEFGHIJKLMNOPQRSTUVWXYZ), ein Kleinbuchstabe (abcdefghijklmnopqrstuvwxyz) oder einem alphabetischen Zeichen spezifisch für den aktuellen locale .
Original:
Checks if the given wide character is an alphabetic character, i.e. either an uppercase letter (ABCDEFGHIJKLMNOPQRSTUVWXYZ), a lowercase letter (abcdefghijklmnopqrstuvwxyz) or any alphabetic character 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.

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.

Rückgabewert

Wert ungleich Null, wenn der breite Zeichen ein alphabetisches Zeichen ist, 0 sonst .
Original:
Non-zero value if the wide character is a alphabetic character, 0 otherwise.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Beispiel

#include <iostream>
#include <cwctype>
#include <clocale>

int main()
{
    wchar_t c = L'\u0b83'; // Tamil sign Visarga ('ஃ')

    std::cout << std::hex << std::showbase << std::boolalpha;
    std::cout << "in the default locale, iswalpha(" << (std::wint_t)c << ") = "
              << (bool)std::iswalpha(c) << '\n';
    std::setlocale(LC_ALL, "en_US.utf8");
    std::cout << "in Unicode locale, iswalpha(" << (std::wint_t)c << ") = "
              << (bool)std::iswalpha(c) << '\n';
}

Output:

in the default locale, iswalpha(0xb83) = false
in Unicode locale, iswalpha(0xb83) = true

Siehe auch

prüft, ob ein Zeichen als alphabetische durch eine locale eingestuft
Original:
checks if a character is classified as alphabetic 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 des Alphabets ist
Original:
checks if a character is alphabetic
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 iswalpha