Localization library | |||||||||||||||||||||||||
Regular expressions library(C++11) | |||||||||||||||||||||||||
Formatting library(C++20) | |||||||||||||||||||||||||
Null-terminated sequence utilities | |||||||||||||||||||||||||
Byte strings | |||||||||||||||||||||||||
Multibyte strings | |||||||||||||||||||||||||
Wide strings | |||||||||||||||||||||||||
Primitive numeric conversions | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Text encoding identifications | |||||||||||||||||||||||||
|
Classes | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
Algorithms | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
Iterators | ||||
(C++11) | ||||
(C++11) | ||||
Exceptions | ||||
(C++11) | ||||
Traits | ||||
(C++11) | ||||
Constants | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
Regex Grammar | ||||
(C++11) |
Member functions | ||||
regex_traits::transform | ||||
template<class ForwardIt> string_type transform( ForwardIt first, ForwardIt last)const; | ||
Obtains the sort key for the character sequence[
first,
last)
, such that if a sort key compares less than another sort key withoperator<, 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.
For example, when the regex flagstd::regex_constants::collate is set, then the sequence[a-b]
would match some characterc1
iftraits.transform("a")<= traits.transform(c1)<= traits.transform("b"). Note that this function takes a character sequence as the argument to accommodate to the ranges defined like[[.ae.]-d].
Standard library specializations ofstd::regex_traits returnstd::use_facet<std::collate<CharT>>(getloc()).transform(str.data(), str.data()+ str.length()) for some temporary stringstr
constructed asstring_type str(first, last).
first, last | - | a pair ofLegacyForwardIterators which determines the sequence of characters to compare |
Type requirements | ||
-ForwardIt must meet the requirements ofLegacyForwardIterator. |
The collation key for the character sequence[
first,
last)
in the currently imbued locale.
This section is incomplete Reason: no example |