Namespace
Varianti

std::iswctype

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

 
 
Stringhe libreria
Null-stringhe terminate
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 stringhe
Multibyte stringhe
Stringhe larghe
Classi
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
 
Stringhe larghe null-terminated
Funzioni
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Carattere manipolazione
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.
Le conversioni in formati numerici
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.
Della gestione delle stringhe
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.
Matrice manipolazione
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
 
Defined in header <cwctype>
int iswctype( std::wint_t ch, std::wctype_t desc );
Classifica il carattere esteso wc utilizzando categoria LC_CTYPE l'attuale C locale è identificato da desc.
Original:
Classifies the wide character wc using the current C locale's LC_CTYPE category identified by desc.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Indice

[modifica] Parametri

ch -
il carattere esteso da classificare
Original:
the wide character to classify
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
desc -
la categoria LC_CTYPE, ottenuto da una chiamata a std::wctype
Original:
the LC_CTYPE category, obtained from a call to std::wctype
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica] Valore di ritorno

Non-zero se il ch personaggio ha la proprietà identificata da desc in aspetto LC_CTYPE della versione locale corrente C.
Original:
Non-zero if the character ch has the property identified by desc in LC_CTYPE facet of the current C locale.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica] Esempio

#include <clocale>
#include <cwctype>
#include <iostream>
bool classify(wchar_t ch, const std::string& cat)
{
    return std::iswctype(ch, std::wctype(cat.c_str()));
}
int main()
{
    std::setlocale(LC_ALL, "ja_JP.UTF-8");
    std::cout << "The character \u6c34 is...\n";
    for(std::string s : {"digit", "alpha", "space", "cntrl", "jkanji"})
        std::cout << s << "? " << std::boolalpha << classify(L'\u6c34', s) << '\n';
}

Output:

The character 水 is...
digit? false
alpha? true
space? false
cntrl? false
jkanji? true

[modifica] Vedi anche

cerca una categoria di classificazione dei caratteri nella versione locale corrente C
Original:
looks up a character classification category in the current C locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]