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. |
| Defined in header <locale>
|
||
| template<> class ctype_byname : public std::ctype<char>; |
||
Esta especialización de std::ctype_byname encapsula rasgos de carácter de clasificación para char tipo. Al igual que su
std::ctype<char> clase base y, a diferencia de propósito general std::ctype_byname, búsqueda en la tabla se utiliza para clasificar 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.
Contenido |
[editar] Tipos de miembros
| Miembro de tipo
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] Las funciones miembro
| construye una faceta ctype_byname <char> nuevo 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. (miembro público función) | |
| destructs una 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. (protegidos función miembro) | |
Inherited from std::ctype<char>
Member types
| Miembro de tipo
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
| Persona
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ático)
|
std::locale::id |
table_size (const estática)
|
std::size_t tamaño de la tabla de clasificación, por lo 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
| obtiene la tabla de clasificación de caracteres 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. (miembro público of std::ctype<char> función)
| |
| [estático] |
obtiene el carácter "C" locale tabla de clasificación 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. (miembro estático público of std::ctype<char> función)
|
| clasifica un carácter o una secuencia de caracteres, usando la tabla de clasificación 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. (miembro público of std::ctype<char> función)
| |
| localiza el primer carácter en una secuencia que se ajusta a la clasificación dada, usando la tabla de clasificación 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. (miembro público of std::ctype<char> función)
| |
| locates the first character in a sequence that fails given classification, using the classification table (miembro público of std::ctype<char> función)
| |
| 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. (miembro público of std::ctype función)
| |
| 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. (miembro público of std::ctype función)
| |
| 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. (miembro público of std::ctype función)
| |
| 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. (miembro público of std::ctype función)
| |
Protected member functions
| [virtual] |
convierte un carácter o los caracteres a mayú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. (virtuales protegidos of std::ctype miembro de función)
|
| [virtual] |
convierte un carácter o caracteres en 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. (virtuales protegidos of std::ctype miembro de función)
|
| [virtual] |
convierte un carácter o caracteres de char a 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. (virtuales protegidos of std::ctype miembro de función)
|
| [virtual] |
convierte un carácter o caracteres de charT a 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. (virtuales protegidos of std::ctype miembro de función)
|
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
|
Tipo de máscara de bits sin especificar (enumeración, de tipo entero, o 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ático] |
el valor de mask clasificación de caracteres Identificar espacios en blanco 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. (público miembro constante estática) |
| print [estático] |
el valor de mask identificación de clasificación de caracteres imprimibles 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. (público miembro constante estática) |
| cntrl [estático] |
el valor de mask identificación de clasificación de caracteres de control 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. (público miembro constante estática) |
| upper [estático] |
el valor de mask identificación de clasificación de caracteres en mayúscula 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. (público miembro constante estática) |
| lower [estático] |
el valor de mask identificación de clasificación de caracteres en 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. (público miembro constante estática) |
| alpha [estático] |
el valor de mask identificación de clasificación de caracteres alfabéticos 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. (público miembro constante estática) |
| digit [estático] |
el valor de mask identificación de clasificación de caracteres dígitos 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. (público miembro constante estática) |
| punct [estático] |
el valor de mask identificación de clasificación de caracteres puntuacion 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. (público miembro constante estática) |
| xdigit [estático] |
el valor de mask identificar clasificación hexadecimal dígito 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. (público miembro constante estática) |
| blank [estático] (C++11) |
el valor de mask identificación de clasificación de caracteres en blanco 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. (público miembro constante estática) |
| alnum [estático] |
alpha | digit (público miembro constante estática) |
| graph [estático] |
alnum | punct (público miembro constante estática) |
[editar] Ejemplo
#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] Ver también
| define las tablas de caracteres de clasificación 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. (clase de plantilla) | |
| especialización 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. (clase de especialización de plantilla) | |