名前空間
変種
操作

std::basic_regex::assign

提供: cppreference.com
< cpp‎ | regex‎ | basic 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::basic_regex
メンバー関数
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.
basic_regex::basic_regex
basic_regex::~basic_regex
basic_regex::operator=
basic_regex::assign
オブザーバー
Original:
Observers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_regex::mark_count
basic_regex::flags
ロケール
Original:
Locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_regex::getloc
basic_regex::imbue
修飾子
Original:
Modifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_regex::swap
定数
Original:
Constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_regex constants
非メンバ関数
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.
swap(std::basic_regex)
 
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,

                     flag_type f = std::regex_constants::ECMAScript );
(5) (C++11およびそれ以降)
template< class InputIt >

basic_regex& assign( InputIt first, InputIt last,

                     flag_type f = std::regex_constants::ECMAScript );
(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.
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.
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.
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.
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.
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.
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.
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.
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.

目次

[編集] パラメータ

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.
Type requirements
-
InputIt must meet the requirements of 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.
2)
noexcept specification:  
noexcept
  (C++11およびそれ以降)
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.

[編集]

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

内容が割り当てられます
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.

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