std::ctype_byname<char>
Da 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. |
| Defined in header <locale>
|
||
| template<> class ctype_byname : public std::ctype<char>; |
||
Esta especialização de std::ctype_byname encapsula características do personagem de classificação para char tipo. Como seu
std::ctype<char> classe base e, ao contrário de propósito geral std::ctype_byname, pesquisa de tabela é usada para classificar caracteresOriginal:
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.
Índice |
[editar] Tipos de membro
| Tipo de membro
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
|
[editar] Funções de membro
| constrói um novo faceta <char> ctype_byname 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. (função pública membro) | |
| destrói uma faceta <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. (protegido função de membro) | |
Inherited from std::ctype<char>
Member types
| Tipo de membro
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
| Nome do membro
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 (estática)
|
std::locale::id |
table_size (const estática)
|
std::size_t tamanho da tabela de classificação, pelo menos, 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
| obtém a tabela de classificação caráter 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. (of std::ctype<char> função pública membro)
| |
| [estática] |
obtém o local "C" tabela de classificação caráter 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. (of std::ctype<char> função public static membro)
|
| classifica um personagem ou uma seqüência de caracteres, usando a tabela de classificação 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. (of std::ctype<char> função pública membro)
| |
| localiza o primeiro caractere em uma seqüência que está de acordo com a classificação dada, usando a tabela de classificação 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. (of std::ctype<char> função pública membro)
| |
| locates the first character in a sequence that fails given classification, using the classification table (of std::ctype<char> função pública membro)
| |
| Invoca 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. (of std::ctype função pública membro)
| |
| Invoca 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. (of std::ctype função pública membro)
| |
| Invoca 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. (of std::ctype função pública membro)
| |
| Invoca 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. (of std::ctype função pública membro)
| |
Protected member functions
| [virtual] |
converte um caractere ou caracteres em maiúsculas 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. (virtual protegido of std::ctype função de membro)
|
| [virtual] |
converte um caractere ou caracteres em letras minúsculas 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. (virtual protegido of std::ctype função de membro)
|
| [virtual] |
converte um caractere ou caracteres de char para 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. (virtual protegido of std::ctype função de membro)
|
| [virtual] |
converte um caractere ou caracteres de charT para 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. (virtual protegido of std::ctype função de membro)
|
Inherited from std::ctype_base
Member types
| Tipo
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
|
bitmask tipo não especificado (tipo de enumeração, inteiro, 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 [estática] |
o valor de mask classificação de caracteres identificando espaços em branco 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. (membro estático público constante) |
| print [estática] |
o valor de mask identificar classificação de caracteres impressos 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. (membro estático público constante) |
| cntrl [estática] |
o valor de mask classificação identificar controle personagem 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. (membro estático público constante) |
| upper [estática] |
o valor de mask identificar classificação de caracteres em letras maiúsculas 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. (membro estático público constante) |
| lower [estática] |
o valor de mask identificar classificação de caracteres em letras minúsculas 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. (membro estático público constante) |
| alpha [estática] |
o valor de mask identificar classificação caractere alfabético 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. (membro estático público constante) |
| digit [estática] |
o valor de identificação de classificação mask caractere de dígito 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. (membro estático público constante) |
| punct [estática] |
o valor de identificação de classificação mask pontuação personagem 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. (membro estático público constante) |
| xdigit [estática] |
o valor de mask identificar classificação de caracteres hexadecimal dígitos 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. (membro estático público constante) |
| blank [estática] (C++11) |
o valor de mask identificar classificação de caracteres em branco 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. (membro estático público constante) |
| alnum [estática] |
alpha | digit (membro estático público constante) |
| graph [estática] |
alnum | punct (membro estático público constante) |
[editar] Exemplo
#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'; }
Output:
isupper('Þ', C locale) returned false
isupper('Þ', C locale with Unicode ctype<char>) returned false
isupper('Þ', C locale with Islandic ctype<char>) returned true[editar] Veja também
| define tabelas de classificação de caracteres 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. (modelo de classe) | |
| especialização de std::ctype para char tipo 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. (especialização modelo. classe) | |