Espaços nominais
Variantes
Acções

std::ctype_byname<char>

Da cppreference.com
< cpp‎ | locale

 
 
Biblioteca localizações
Localidades e facetas
Original:
Locales and facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
locale
Classificação de caracteres
Original:
Character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Conversões
Original:
Conversions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Facet classes base da categoria
Original:
Facet category base classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Categorias faceta
Original:
Facet categories
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Específicos da localidade facetas
Original:
Locale-specific facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Facetas de conversão de código
Original:
Code conversion facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
codecvt_utf8(C++11)
codecvt_utf16(C++11)
C localidade
Original:
C locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
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 caracteres
Original:
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 characters
The text has been machine-translated via Google Translate.
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) [edit]
[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) [edit]
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) [edit]
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) [edit]
locates the first character in a sequence that fails given classification, using the classification table
(of std::ctype<char> função pública membro) [edit]
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) [edit]
Invoca do_tolower
Original:
invokes do_tolower
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) [edit]
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) [edit]
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) [edit]

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) [edit]
[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) [edit]
[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) [edit]
[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) [edit]

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) [edit]
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) [edit]