名前空間
変種
操作

std::regex_traits::transform

提供: cppreference.com
< cpp‎ | regex‎ | regex traits

 
 
正規表現ライブラリ
クラス
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)
アルゴリズム
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)
イテレータ
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)
例外
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)
形質
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)
定数
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
[first, last)、ソート·キーがoperator<を持つ別のソートキー未満を比較した場合、最初の並べ替えキーを生成された文字シーケンスが来ているような第二のソート·キーを生成された文字シーケンスの前に、現在の文字シーケンスのソートキーを取得吹き込まロケールの照合順序.
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.
std::regex_constants::collateたとえば正規表現フラグ[a-b]が設定されている場合、シーケンスc1traits.transform("a") <= traits.transform(c1) <= traits.transform("b")いくつかの文字にマッチします。引数が[[.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.
std::regex_traitsのように構成されたいくつかの一時的な文字列std::use_facet<std::collate<CharT>>(getloc()).transform(&*str.begin(), &*str.begin() + str.length())strリターン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.

[編集] パラメータ

first, last -
比較する文字のシーケンスを決定ForwardIteratorsのペア
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.

[編集] 値を返します

現在吹き込まれたロケールの文字シーケンス[first, last)ための照合キー.
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.

[編集]