std::basic_regex::assign
提供: cppreference.com
< cpp | regex | basic regex
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
basic_regex& assign( const basic_regex& other ); |
(1) | (C++11およびそれ以降) |
basic_regex& assign( basic_regex&& that ); |
(2) | (C++11およびそれ以降) |
basic_regex& assign( const CharT* s, flag_type f = std::regex_constants::ECMAScript ); |
(3) | (C++11およびそれ以降) |
basic_regex& assign( const charT* ptr, size_t count, flag_type f = regex_constants::ECMAScript ); |
(4) | (C++11およびそれ以降) |
template< class ST, class SA > basic_regex& assign( const std::basic_string<CharT,ST,SA>& str, |
(5) | (C++11およびそれ以降) |
template< class InputIt > basic_regex& assign( InputIt first, InputIt last, |
(6) | (C++11およびそれ以降) |
basic_regex& assign( std::initializer_list<CharT> ilist, flag_type f = std::regex_constants::ECMAScript ); |
(7) | (C++11およびそれ以降) |
正規表現に内容を代入.
Original:
Assigns the contents to the regular expression.
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.
1)
other
の内容を割り当てます。 flags()
とmark_count()
呼び出しの後other.flags()とother.mark_count()の値に相当します.Original:
Assigns the contents of
other
. flags()
and mark_count()
are equivalent to the values of other.flags() and other.mark_count() after the call.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.
2)
ムーブセマンティクスを使用して
other
の内容を割り当てます。 flags()
とmark_count()
割り当て前other.flags()とother.mark_count()の値に相当します。コールの後、other
は有効ですが、特定されていない状態になっている.Original:
Assigns the contents of
other
using move semantics. flags()
and mark_count()
are equivalent to the values of other.flags() and other.mark_count() before the assignment. After the call, other
is in a valid, but unspecified state.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.
3-7)
正規表現に文字のシーケンスを割り当てます。構文フラグは
f
に設定されています。 mark_count()
呼び出しの後に生じた部分正規表現の中のマークされた部分式の数を返します。.Original:
Assigns a sequence of characters to the regular expression. The syntax flags are set to
f
. mark_count()
returns the number of marked subexpressions within the resulting subexpression after the call.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.
3)
s
が指すNULLで終わる文字列を代入.Original:
Assigns a null-terminated string pointed to by
s
.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.
4)
count
が指すs
文字のシーケンスを割り当て.Original:
Assigns a sequence of
count
characters, pointed to by s
.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.
5)
文字列
str
を割り当て.Original:
Assigns the string
str
.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.
6)
レンジ
[first, last)
に文字が割り当てられています.Original:
Assigns the characters in the range
[first, last)
.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.
7)
初期化子リスト
ilist
に文字が割り当てられています.Original:
Assigns the characters in the initializer list
ilist
.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.
目次 |
[編集] パラメータ
other | - | 代入を行う別の正規表現
Original: another regular expression to assign The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
s | - | 割り当てるための文字配列へのポインタ
Original: pointer to a character sequence to assign The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
str | - | 割り当てるための文字列
Original: string to assign The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
first, last | - | 割り当てるための文字の範囲を指定します
Original: the range of characters to assign The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
ilist | - | 割り当てるための文字を含む初期化子リスト
Original: initializer list containing characters to assign The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
型の要件 | ||
-InputIt は InputIterator
の要求を満足しなければなりません。 |
[編集] 値を返します
*this
[編集] 例外
1)
(なし)
Original:
(none)
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.
2)
3-7)
指定された正規表現ならstd::regex_errorが有効ではありません。オブジェクトは、その場合には変更されません.
Original:
std::regex_error if the supplied regular expression is not valid. The object is not modified in that case.
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.
[編集] 例
This section is incomplete Reason: no example |
[編集] も参照してください
内容が割り当てられます Original: assigns the contents The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) |