std::iswalpha
Aus cppreference.com
<metanoindex/>
<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.
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.
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) | |
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) | |
C documentation for iswalpha
| |
