std::collate_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 collate_byname : public std::collate<CharT>; |
||
std::collate_byname es una faceta std::collate que encapsula la configuración regional específica cotejo (comparación) y hash de cadenas. Al igual que std::collate, puede estar impregnada en std::regex y aplicada, por medio de std::locale::operator(), directamente a todos los algoritmos estándar que esperan un predicado de comparación cadena .
Original:
std::collate_byname is a std::collate facet which encapsulates locale-specific collation (comparison) and hashing of strings. Just like std::collate, it can be imbued in std::regex and applied, by means of std::locale::operator(), directly to all standard algorithms that expect a string comparison predicate.
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::collate_byname<char> | específico de entorno nacional colación de cadenas multibyte
Original: locale-specific collation of multibyte strings The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| std::collate_byname<wchar_t> | específico de entorno nacional colación de cadenas de ancho
Original: locale-specific collation of wide strings The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Contenido |
[editar] Las funciones miembro
| construye una nueva faceta collate_byname Original: constructs a new collate_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 collate_byname Original: destructs a collate_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::collate
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
|
string_type
|
std::basic_string<charT>
|
Member functions
| Invoca do_compare Original: invokes do_compare 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::collate función)
| |
| Invoca do_transform Original: invokes do_transform 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::collate función)
| |
| Invoca do_hash Original: invokes do_hash 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::collate función)
| |
Protected member functions
| [virtual] |
compara dos cadenas mediante reglas de esta faceta de la clasificación Original: compares two strings using this facet's collation rules 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::collate miembro de función)
|
| [virtual] |
transforma una cadena para que intercalación puede ser sustituido por comparación Original: transforms a string so that collation can be replaced by comparison 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::collate miembro de función)
|
| [virtual] |
genera un valor hash entero utilizando las reglas esta faceta de intercalación Original: generates an integer hash value using this facet's collation rules 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::collate miembro de función)
|
[editar] Notas
Para la colación es típicamente lexicográfica entre mayúsculas y minúsculas comparación de acuerdo con la configuración regional del alfabeto, pero en algunos lugares, grupos de caracteres comparar unidades de intercalación como individuales. Por ejemplo, "ch" en checo sigue "h" y precede a "i" y "ng" en galés sigue "g" y precede a "h" .
Original:
Collation order is typically lexicographic case-insensitive comparison according to the locale's alphabet, but in some locales, groups of characters compare as single collation units. For example, "ch" in Czech follows "h" and precedes "i", and "ng" in Welsh follows "g" and precedes "h".
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.
[editar] Ejemplo
| This section is incomplete Reason: no example |
[editar] Ver también
| define comparación lexicográfica y hash de cadenas Original: defines lexicographical comparison and hashing of strings 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) | |
| compara dos cadenas de acuerdo a la localización actual Original: compares two strings in accordance to the current locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
| compara dos cadenas anchas, de acuerdo a la localización actual Original: compares two wide strings in accordance to the current locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
| lexicographically compares two strings using this locale's collate facet (miembro público of std::locale función)
| |