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.
basic_regex(C++11)
sub_match(C++11)
match_results(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.
regex_match(C++11)
regex_search(C++11)
regex_replace(C++11)
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.
regex_iterator(C++11)
regex_token_iterator(C++11)
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.
regex_error(C++11)
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.
regex_traits(C++11)
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.
syntax_option_type(C++11)
match_flag_type(C++11)
error_type(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