std::basic_regex::basic_regex
提供: cppreference.com
< cpp | regex | basic regex
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
basic_regex(); |
(1) | (C++11およびそれ以降) |
explicit basic_regex( const CharT* s, flag_type f = std::regex_constants::ECMAScript ); |
(2) | (C++11およびそれ以降) |
basic_regex( const CharT* s, std::size_t count, flag_type f = std::regex_constants::ECMAScript ); |
(3) | (C++11およびそれ以降) |
basic_regex( const basic_regex& other ); |
(4) | (C++11およびそれ以降) |
basic_regex( basic_regex&& other ); |
(5) | (C++11およびそれ以降) |
template< class ST, class SA > explicit basic_regex( const std::basic_string<CharT,ST,SA>& str, |
(6) | (C++11およびそれ以降) |
template< class ForwardIt > basic_regex( ForwardIt first, ForwardIt last, |
(7) | (C++11およびそれ以降) |
basic_regex( std::initializer_list<CharT> init, flag_type f = std::regex_constants::ECMAScript ); |
(8) | (C++11およびそれ以降) |
フラグに基づいて解釈された文字の並びから新しい正規表現を構築し
f
.Original:
Constructs a new regex from a sequence of characters interpreted according to the flags
f
.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)
デフォルトのコンストラクタです。何も合わないでしょう空の正規表現を構築し.
Original:
Default constructor. Constructs an empty regular expression which will match nothing.
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)
NULLで終わる文字列から正規表現
s
を構築し.Original:
Constructs a regex from a null-terminated string
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.
3)
、
count
文字の列から正規表現を構築しs
によって指さ.Original:
Constructs a regex from 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.
4)
コンストラクタをコピーします。
other
をコピーして正規表現を構築しますOriginal:
Copy constructor. Constructs a regex by copying
other
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)
コンストラクタを移動します。ムーブセマンティクスを使用して
other
の内容によって正規表現を構築し.Original:
Move constructor. Constructs a regex by with the contents of
other
using move semantics.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)
文字列
str
から正規表現を構築し.Original:
Constructs a regex from a 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.
7)
範囲コンストラクタ。レンジ
[first, last)
の内容の文字列を構築します.Original:
Range constructor. Constructs the string with the contents of 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.
8)
初期化子リストのコンストラクタ。初期化子リストの内容の文字列を構築します
init
.Original:
Initializer list constructor. Constructs the string with the contents of the initializer list
init
.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.
[編集] パラメータ
s | - | NULLで終わる文字列へのポインタ
Original: pointer to a null-terminated string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
count | - | regexを初期化するために使用される文字列の長さ
Original: length of a character sequence used to initialize the regex The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
first, last | - | regexを初期化するために使用される文字列の範囲
Original: range of a character sequence used to initialize the regex The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
str | - | basic_stringのは、正規表現を初期化するために使用されるソースとして使用されます
Original: a basic_string used as a source used to initialize the regex 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 regex to use as source to initialize the regex The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
init | - | 初期化子リストは、正規表現を初期化するために使用する
Original: initializer list used to initialize the regex The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
f | - | フラグは正規表現として文字シーケンスの解釈を導くために使用
Original: flags used to guide the interpretation of the character sequence as a regular expression The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
型の要件 | ||
-ForwardIt は ForwardIterator
の要求を満足しなければなりません。 |
[編集] 例外
1) (なし)
2-3)
指定された正規表現が有効ではありませんstd::regex_error場合.
Original:
std::regex_error if the supplied regular expression is not valid.
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)
5-8)
指定された正規表現が有効ではありませんstd::regex_error場合.
Original:
std::regex_error if the supplied regular expression is not valid.
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.