std::sub_match
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
Defined in header <regex>
|
||
template< class BidirIt |
(C++11およびそれ以降) | |
クラステンプレート
sub_match
はサブ式顕著にマッチした文字シーケンスを表すために正規表現エンジンによって使用され.Original:
The class template
sub_match
is used by the regular expression engine to denote sequences of characters matched by marked sub-expressions.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.
マッチが正規表現に一致した目標範囲内
[begin, end)
のペアですが、追加のオブザーバー機能とコードの明瞭度を向上させる.Original:
A match is a
[begin, end)
pair within the target range matched by the regular expression, but with additional observer functions to enhance code clarity.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.
デフォルトコンストラクタのみが公にアクセス可能です。
sub_match
のインスタンスは、通常、正規表現アルゴリズムのいずれかの処理の間に建設され、std::match_resultsコンテナの一部として取り込まれます.Original:
Only the default constructor is publicly accessible. Instances of
sub_match
are normally constructed and populated as a part of a std::match_results container during the processing of one of the regex algorithms.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.
matchedメンバーが
true
でない限り、メンバ関数が定義されたデフォルト値を返す.Original:
The member functions return defined default values unless the matched member is
true
.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.
sub_match
予想通り、スワップや割り当てなどのメンバ関数が動作しませんので、それがstd::pair<BidirIt, BidirIt>オブジェクトとして扱うことができないものの、std::pairから継承.Original:
sub_match
inherits from std::pair<BidirIt, BidirIt>, although it cannot be treated as a std::pair object because member functions such as swap and assignment will not work as expected.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.
目次 |
[編集] 型の要件
-BidirIt は BidirectionalIterator
の要求を満足しなければなりません。 |
[編集] スペシャ
一般的な文字のシーケンス型にはいくつかの特殊化が提供されています
Original:
Several specializations for common character sequence types are provided:
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.
Defined in header
<regex> | |
タイプ
Original: Type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
csub_match
|
sub_match<const char*> |
wcsub_match
|
sub_match<const wchar_t*> |
ssub_match
|
sub_match<std::string::const_iterator> |
wssub_match
|
sub_match<std::wstring::const_iterator> |
[編集] メンバータイプ
メンバー·タイプ
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
iterator
|
BidirIt |
value_type
|
std::iterator_traits<BidirIt>::value_type |
difference_type
|
std::iterator_traits<BidirIt>::difference_type |
string_type
|
std::basic_string<value_type> |
[編集] メンバーオブジェクト
matched
|
このマッチは成功したかどうかを示します.
Original: Indicates if this match was successful. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Inherited from std::pair
first
|
照合シーケンスの開始.
Original: Start of the match sequence. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
second
|
ワン過去ツーエンドマッチシーケンスの.
Original: One-past-the-end of the match sequence. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[編集] メンバ関数
マッチオブジェクトを構築します Original: constructs the match object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
Original: Observers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(もしあれば)マッチの長さを返します Original: returns the length of the match (if any) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
基本となる文字列型に変換します Original: converts to the underlying string type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
マッチした部分シーケンスを(もしあれば)を比較しています Original: compares matched subsequence (if any) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) |
[編集] 非メンバ関数
辞書的に容器内の値を比較します Original: lexicographically compares the values in the container The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
マッチした文字シーケンスが出力されます Original: outputs the matched character subsequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) |
[編集] 参照
(C++11) |
正規表現のサブマッチを反復処理します Original: iterates through regex submatches The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |