std::regex_traits::transform
Da cppreference.com.
< cpp | regex | regex traits
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
template<class ForwardIt > string_type transform( ForwardIt first, ForwardIt last)const | ||
Ottiene la chiave di ordinamento per la sequenza di caratteri
[first, last)
, in modo tale che se una chiave di ordinamento confronta minore di un altro chiave di ordinamento con operator<, quindi la sequenza di caratteri che ha prodotto la prima chiave ordinamento viene prima la sequenza di caratteri che ha prodotto la seconda chiave di ordinamento, nel momento locale intriso di regole di confronto per.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.
Per esempio, quando la bandiera std::regex_constants::collate regex è impostato, allora la sequenza
[a-b]
sarebbe partita qualche personaggio c1
se traits.transform("a")<= traits.transform(c1)<= traits.transform("b"). Si noti che questa funzione richiede una sequenza di caratteri come argomento per accogliere le gamme definite come [[.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.
Specializzazioni libreria standard di std::regex_traits ritorno std::use_facet<std::collate<CharT>>(getloc()).transform(&*str.begin(), &*str.begin()+ str.length()) per qualche stringa temporanea
str
costruito come 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.
[modifica]Parametri
first, last | - | una coppia di ForwardIterator s che determina la sequenza di caratteri da confrontareOriginal: 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. |
Type requirements | ||
-ForwardIt must meet the requirements of ForwardIterator . |
[modifica]Valore di ritorno
La chiave di regole di confronto per la
[first, last)
sequenza di caratteri nella versione locale attualmente imbevuta.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.
[modifica]Esempio
This section is incomplete Reason: no example |