名前空間
変種
操作

std::sub_match

提供: cppreference.com
< cpp‎ | regex

 
 
正規表現ライブラリ
クラス
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)
 
std::sub_match
メンバ関数
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
sub_match::sub_match(C++11)
sub_match::length(C++11)
sub_match::str
sub_match::operator string_type
(C++11)
sub_match::compare(C++11)
非メンバ関数
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
operator==
operator!=
operator<<
operator<=
operator>
operator>=
(C++11)
operator<<(C++11)
 
Defined in header <regex>
template<

    class BidirIt

> class sub_match;
(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.
マッチが正規表現に一致した目標範囲内[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.
デフォルトコンストラクタのみが公にアクセス可能です。 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.
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.
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.

目次

[編集] 型の要件

-
BidirIt must meet the requirements of 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.
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.

(パブリックメンバ関数) [edit]
オブザーバー
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.

(パブリックメンバ関数) [edit]
基本となる文字列型に変換します
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.

(パブリックメンバ関数) [edit]
マッチした部分シーケンスを(もしあれば)を比較しています
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.

(パブリックメンバ関数) [edit]

[編集] 非メンバ関数

辞書的に容器内の値を比較します
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.

(関数) [edit]
マッチした文字シーケンスが出力されます
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.

(関数テンプレート)

[編集] も参照してください

正規表現のサブマッチを反復処理します
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.

(クラステンプレート)