GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::regex_traits::transform(3) C++ Standard Libary std::regex_traits::transform(3)

std::regex_traits::transform - std::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 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.


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].


Standard library specializations of std::regex_traits return
std::use_facet<std::collate<CharT>>(getloc()).transform(str.data(), str.data() +
str.length()) for some temporary string str constructed as string_type str(first,
last).


first, last - a pair of LegacyForwardIterators which determines the sequence of
characters to compare


-
ForwardIt must meet the requirements of LegacyForwardIterator.


The collation key for the character sequence [first, last) in the currently imbued
locale.


This section is incomplete
Reason: no example

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.