std::regex_traits::transform
De cppreference.com
< cpp | regex | regex traits
![]() |
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
template< class ForwardIt > string_type transform( ForwardIt first, ForwardIt last) const |
||
Obtiene la clave de clasificación para la secuencia de caracteres
[first, last)
, de manera que si una clave de clasificación compara menor que otro criterio de ordenación con operator<, la secuencia de caracteres que produjo la primera clave de ordenación viene antes de la secuencia de caracteres que produjo la segunda clave de ordenación, en la actualidad locale imbuido de orden de clasificación .Original:
Obtains the sort key for the character sequence
[first, last)
, such that if a sort key compares less than another sort key with operator<, then the character sequence that produced the first sort key comes before the character sequence that produced the second sort key, in the currently imbued locale's collation order.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.
Por ejemplo, cuando la bandera std::regex_constants::collate regex se establece, entonces la secuencia
[a-b]
coincidiría con un poco de carácter c1
si traits.transform("a") <= traits.transform(c1) <= traits.transform("b"). Tenga en cuenta que esta función toma una secuencia de caracteres como argumento para dar cabida a los rangos definidos como [[.ae.]-d] .Original:
For example when the regex flag std::regex_constants::collate is set, then the sequence
[a-b]
would match some character c1
if traits.transform("a") <= traits.transform(c1) <= traits.transform("b"). Note that this function takes a character sequence as the argument to accomodate to the ranges defined like [[.ae.]-d].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.
Especializaciones biblioteca estándar de std::regex_traits retorno std::use_facet<std::collate<CharT>>(getloc()).transform(&*str.begin(), &*str.begin() + str.length()) por alguna cadena temporal
str
construido como string_type str(first, last) .Original:
Standard library specializations of std::regex_traits return std::use_facet<std::collate<CharT>>(getloc()).transform(&*str.begin(), &*str.begin() + str.length()) for some temporary string
str
constructed as string_type str(first, last).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] Parámetros
first, last | - | un par de
ForwardIterator s que determina la secuencia de caracteres a compararOriginal: a pair of ForwardIterator s which determines the sequence of characters to compareThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Requisitos de tipo | ||
-ForwardIt debe reunir los requerimientos de ForwardIterator .
|
[editar] Valor de retorno
La clave de intercalación para la
[first, last)
secuencia de caracteres en la configuración regional seleccionada imbuido .Original:
The collation key for the character sequence
[first, last)
in the currently imbued locale.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
Esta sección está incompleta Razón: sin ejemplo |