std::ctype_byname
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 CharT > class ctype_byname : public std::ctype<CharT>; |
||
std::ctype_byname es una faceta std::ctype que encapsula las reglas de clasificación de caracteres del entorno local especificado en su construcción .
Original:
std::ctype_byname is a std::ctype facet which encapsulates character classification rules of the locale specified at its construction.
The 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.
Dos especializaciones son proporcionados por la biblioteca estándar
Original:
Two specializations are provided by the standard library
The 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.
| Defined in header
<locale> | |
| std::ctype_byname<char> | proporciona la clasificación de carácter limitado. Esta especialización se utiliza para consultar la tabla de clasificación de caracteres
Original: provides narrow character classification. This specialization uses table lookup for character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
std::ctype_byname<wchar_t>
|
proporciona la clasificación de caracteres anchos
Original: provides wide character classification The text has been machine-translated via Google Translate. 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<charT>::mask
|
[editar] Las funciones miembro
| construye una nueva faceta ctype_byname Original: constructs a new ctype_byname 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 ctype_byname Original: destructs a ctype_byname 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<CharT>
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
|
CharT
|
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 |
Member functions
| Invoca do_is Original: invokes do_is 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_scan_is Original: invokes do_scan_is 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_scan_not Original: invokes do_scan_not 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_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] |
clasifica un carácter o una secuencia de caracteres Original: classifies a character or a character sequence 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] |
localiza el primer carácter en una secuencia que se ajusta a la clasificación dada Original: locates the first character in a sequence that conforms to given classification 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] |
localiza el primer carácter en una secuencia que no givne clasificación Original: locates the first character in a sequence that fails givne classification 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 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() { wchar_t c = L'\u00de'; // 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<wchar_t>("en_US.utf8")); std::cout << "isupper('Þ', C locale with Unicode ctype) returned " << std::boolalpha << std::isupper(c, loc) << '\n'; }
Output:
isupper('Þ', C locale) returned false
isupper('Þ', C locale with Unicode ctype) 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) | |