std::regex_traits::transform
Aus cppreference.com
< cpp | regex | regex traits
![]() |
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. |
template< class ForwardIt > string_type transform( ForwardIt first, ForwardIt last) const |
||
Ruft den Sortierschlüssel für die Zeichenfolge
[first, last)
, so dass, wenn eine Art Schlüssel vergleicht weniger als eine andere Art Schlüssel mit operator<, dann die Zeichenfolge, die den ersten Sortierschlüssel produziert kommt vor der Zeichenfolge, die die zweite Art Schlüssel erzeugt, in der derzeit durchdrungen Gebietsschemas Sortierreihenfolge .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.
Zum Beispiel, wenn die Regex Flagge std::regex_constants::collate eingestellt ist, dann ist die Folge
[a-b]
würde passen einige Zeichen c1
wenn traits.transform("a") <= traits.transform(c1) <= traits.transform("b"). Beachten Sie, dass diese Funktion eine Zeichenfolge nimmt als das Argument für die Bereiche wie [[.ae.]-d] definiert unterbringen zu .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.
Standard-Bibliothek Spezialisierungen std::regex_traits Rückkehr std::use_facet<std::collate<CharT>>(getloc()).transform(&*str.begin(), &*str.begin() + str.length()) für einige temporären String
str
als string_type str(first, last) gebaut .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.
[Bearbeiten] Parameter
first, last | - | ein Paar
ForwardIterator s welche die Sequenz von Zeichen zu vergleichen bestimmtOriginal: 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 .
|
[Bearbeiten] Rückgabewert
Die Sortierfolge für die Zeichenfolge
[first, last)
in der derzeit durchdrungen locale .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.
[Bearbeiten] Beispiel
This section is incomplete Reason: no example |