Espaços nominais
Variantes
Acções

std::regex_traits::transform

Da cppreference.com
< cpp‎ | regex‎ | regex traits

 
 
Biblioteca de expressões regulares
Classes
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
Algoritmos
Original:
Algorithms
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Iteradores
Original:
Iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Exceções
Original:
Exceptions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Características
Original:
Traits
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Constantes
Original:
Constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
 
 
template< class ForwardIt >
string_type transform( ForwardIt first, ForwardIt last) const
Obtém a chave de classificação para a seqüência de caracteres [first, last), de tal forma que se uma chave tipo compara a menos de outra chave de classificação com operator<, em seguida, a seqüência de caracteres que produziu a primeira chave de classificação vem antes da seqüência de caracteres que produziu a chave de classificação em segundo, no momento ordem local imbuído de agrupamento.
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.
Por exemplo, quando a bandeira std::regex_constants::collate regex está definido, então a seqüência [a-b] iria corresponder algum personagem c1 se traits.transform("a") <= traits.transform(c1) <= traits.transform("b"). Note que esta função tem uma seqüência de caracteres como argumento para acomodar as faixas definidas 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.
Especializações biblioteca padrão de std::regex_traits retorno std::use_facet<std::collate<CharT>>(getloc()).transform(&*str.begin(), &*str.begin() + str.length()) por alguma cadeia temporária str construído 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.

[editar] Parâmetros

first, last -
um par de ForwardIterators que determina a seqüência de caracteres para comparar
Original:
a pair of ForwardIterators which determines the sequence of characters to compare
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Type requirements
-
ForwardIt must meet the requirements of ForwardIterator.

[editar] Valor de retorno

A chave de agrupamento para a [first, last) seqüência de caracteres na localidade atualmente imbuído.
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.

[editar] Exemplo