std::ctype_byname<char>
De cppreference.com.
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Défini dans l'entête <locale>
|
||
| template<> class ctype_byname : public std::ctype<char>; |
||
Cette spécialisation des fonctions de classification std::ctype_byname encapsule caractères pour char type. Comme son
std::ctype<char> classe de base et contrairement à usage général std::ctype_byname, table de consultation est utilisée pour classer les caractèresOriginal:
This specialization of std::ctype_byname encapsulates character classification features for type char. Like its base class
std::ctype<char> and unlike general-purpose std::ctype_byname, table lookup is used to classify charactersThe 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.
Sommaire |
[modifier] Types de membres
| Type de membre
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
mask
|
ctype<char>::mask
|
[modifier] Les fonctions membres
| construit une facette nouvelle ctype_byname <char> Original: constructs a new ctype_byname<char> facet The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
| Détruit une facette <char> ctype_byname Original: destructs a ctype_byname<char> facet The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre protégée) | |
Inherited from std::ctype<char>
Member types
| Type de membre
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
char_type
|
char
|
Member objects
| Nom du membre
Original: Member name The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Type |
id (statique )
Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
std::locale::id |
table_size (static const )
Original: static const The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
std::size_t taille de la table de classification, au moins 256
Original: std::size_t size of the classification table, at least 256 The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Member functions
| obtient la table de classification des caractères Original: obtains the character classification table The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique de std::ctype<char>)
| |
| [ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
obtient le "C" tableau de classification locale caractère Original: obtains the "C" locale character classification table The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique statique de std::ctype<char>)
|
| classer un caractère ou une séquence de caractères, en utilisant la table de classification Original: classifies a character or a character sequence, using the classification table The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique de std::ctype<char>)
| |
| localise le premier caractère dans une séquence qui se conforme à la classification donnée, en utilisant le tableau de classification Original: locates the first character in a sequence that conforms to given classification, using the classification table The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique de std::ctype<char>)
| |
| localise le premier caractère dans une séquence qui échoue classification donnée, en utilisant le tableau de classement Original: locates the first character in a sequence that fails given classification, using the classification table The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique de std::ctype<char>)
| |
| Invoque do_toupper Original: invokes do_toupper The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique de std::ctype)
| |
| Invoque do_tolowerOriginal: invokes do_tolowerThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique de std::ctype)
| |
| Invoque do_widen Original: invokes do_widen The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique de std::ctype)
| |
| Invoque do_narrow Original: invokes do_narrow The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique de std::ctype)
| |
Protected member functions
| [ virtuel ]Original: virtual The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
convertit un ou plusieurs caractères en majuscules Original: converts a character or characters to uppercase The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre virtuelle protégée de std::ctype)
|
| [ virtuel ]Original: virtual The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
convertit un ou plusieurs caractères en minuscules Original: converts a character or characters to lowercase The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre virtuelle protégée de std::ctype)
|
| [ virtuel ]Original: virtual The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
convertit un ou plusieurs caractères de char à charT Original: converts a character or characters from char to charT The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre virtuelle protégée de std::ctype)
|
| [ virtuel ]Original: virtual The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
convertit un ou plusieurs caractères de charT à char Original: converts a character or characters from charT to char The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre virtuelle protégée de std::ctype)
|
Inherited from std::ctype_base
Member types
| Type d'
Original: Type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
mask
|
Type de masque non spécifié (énumération, de type entier, ou bitset)
Original: unspecified bitmask type (enumeration, integer type, or bitset) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Member constants
| space [ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
la valeur de mask identifiant classification des caractères blancs Original: the value of mask identifying whitespace character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante membre statique publique) |
| print [ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
la valeur de mask identifier la classification des caractères imprimables Original: the value of mask identifying printable character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante membre statique publique) |
| cntrl [ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
la valeur de la commande mask classification des caractères d'identification Original: the value of mask identifying control character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante membre statique publique) |
| upper [ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
la valeur de mask identifier classification des caractères en majuscules Original: the value of mask identifying uppercase character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante membre statique publique) |
| lower [ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
la valeur de mask identifier la classification des caractères minuscules Original: the value of mask identifying lowercase character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante membre statique publique) |
| alpha [ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
la valeur de mask identifier la classification des caractères alphabétiques Original: the value of mask identifying alphabetic character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante membre statique publique) |
| digit [ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
la valeur de mask identifier la classification des caractères chiffres Original: the value of mask identifying digit character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante membre statique publique) |
| punct [ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
la valeur de la ponctuation mask classification des caractères d'identification Original: the value of mask identifying punctuation character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante membre statique publique) |
| xdigit [ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
la valeur de mask identification hexadécimale de classification chiffre Original: the value of mask identifying hexadecimal digit character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante membre statique publique) |
| blank [ statique ] (C++11)Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
la valeur de mask identifier la classification des caractères vide Original: the value of mask identifying blank character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (constante membre statique publique) |
| alnum [ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
alpha | digit (constante membre statique publique) |
| graph [ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
alnum | punct (constante membre statique publique) |
[modifier] Exemple
#include <iostream> #include <locale> int main() { char c = '\xde'; // capital letter thorn std::locale loc("C"); std::cout << "isupper('Þ', C locale) returned " << std::boolalpha << std::isupper(c, loc) << '\n'; loc = std::locale(loc, new std::ctype_byname<char>("en_US.utf8")); std::cout << "isupper('Þ', C locale with Unicode ctype<char>) returned " << std::boolalpha << std::isupper(c, loc) << '\n'; loc = std::locale(loc, new std::ctype_byname<char>("is_IS.iso88591")); std::cout << "isupper('Þ', C locale with Islandic ctype<char>) returned " << std::boolalpha << std::isupper(c, loc) << '\n'; }
Résultat :
isupper('Þ', C locale) returned false
isupper('Þ', C locale with Unicode ctype<char>) returned false
isupper('Þ', C locale with Islandic ctype<char>) returned true[modifier] Voir aussi
| définit les tables de classification de caractères Original: defines character classification tables The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe générique) | |
| spécialisation des std::ctype pour char type Original: specialization of std::ctype for type char The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe générique spécialisée) | |