名前空間
変種
操作

std::match_results::format

提供: cppreference.com
< cpp‎ | regex‎ | match results

 
 
正規表現ライブラリ
クラス
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::match_results
メンバ関数
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.
match_results::match_results
match_results::~match_results
match_results::operator=
match_results::get_allocator
状態
Original:
State
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
match_results::ready
要素アクセスの循環参照を解除するために使用されている
Original:
Element access
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
match_results::size
match_results::max_size
match_results::empty
match_results::length
match_results::position
match_results::str
match_results::operator_at
match_results::prefix
match_results::suffix
イテレータ
Original:
Iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
match_results::begin
match_results::cbegin
match_results::end
match_results::cend
フォーマット
Original:
Format
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
match_results::format
修飾子
Original:
Modifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
match_results::swap
 
template< class OutputIt >

OutputIter format( OutputIt out,
                   const char_type* fmt_first, const char_type* fmt_last,
                   std::regex_constants::match_flag_type flags =

                       std::regex_constants::format_default ) const;
(1) (C + + 11以来)
template< class OutputIt, class ST, class SA >

OutputIter format( OutputIt out,
                   const basic_string<char_type,ST,SA>& fmt,
                   std::regex_constants::match_flag_type flags =

                       std::regex_constants::format_default ) const;
(2) (C + + 11以来)
template< class ST, class SA >

std::basic_string<char_type,ST,SA>
    format( const std::basic_string<char_type,ST,SA>& fmt,
            std::regex_constants::match_flag_type flags =

                std::regex_constants::format_default ) const;
(3) (C + + 11以来)
string_type format( const char_type* fmt_s,

                    std::regex_constants::match_flag_type flags =

                        std::regex_constants::format_default ) const;
(4) (C + + 11以来)
それが参照する*this内にそれが表す文字または文字のいずれかで、それぞれの書式指定子またはエスケープ·シーケンスを置き換え、指定された書式の文字列をコピーします。 flagsで指定されたビットマスクは書式指定子とエスケープシーケンスが認識されているかを調べる.
Original:
Copies the given format character sequence replacing each format specifier or escape sequence with either the characters it represents or characters within *this to which it refers to. The bitmasks specified by flags determine which format specifiers and escape sequences are recognized.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ready() != true場合の動作は未定義です.
Original:
The behavior is undefined if ready() != true.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
フォーマット文字列は、範囲[fmt_first, fmt_last)によって定義されます。結果の文字列はoutにコピーされます.
Original:
The format character sequence is defined by the range [fmt_first, fmt_last). The resulting character sequence is copied to out.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
フォーマット文字列はfmt内の文字によって定義されます。結果の文字列はoutにコピーされます.
Original:
The format character sequence is defined by the characters in fmt. The resulting character sequence is copied to out.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3-4)
フォーマット文字列はfmtfmt_sそれぞれの文字によって定義されます。結果の文字のシーケンスが返され新しく構築された文字列にコピーされます.
Original:
The format character sequence is defined by the characters in fmt and fmt_s respectively. The resulting character sequence is copied to a newly constructed string, which is returned.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集] パラメータ

fmt_begin, fmt_end -
フォーマット文字シーケンスを定義する文字の範囲を指すポインタ
Original:
pointers to a range of characters defining the format character sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
fmt -
形式の文字列を定義する文字列
Original:
string defining the format character sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
fmt_s -
フォーマット文字シーケンスを定義する、NULLで終わる文字列へのポインタ
Original:
pointer to a null-terminated character string defining the format character sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
out -
イテレータに結果の文字列をコピーする場所
Original:
iterator where to copy the resulting character sequence to
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
flags -
どの書式指定子とエスケープシーケンスを指定するビットマスク型は認識されます
Original:
bitmask type specifying which format specifiers and escape sequences are recognized
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Type requirements
-
OutputIt must meet the requirements of OutputIterator.

[編集] 値を返します

1-2) out
3-4)
結果の文字列を含む新たに構築された文字列.
Original:
The newly constructed string containing resulting character sequence.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 例外

(なし)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集]