Namensräume
Varianten
Aktionen

std::match_results::format

Aus cppreference.com
< cpp‎ | regex‎ | match results

 
 
Reguläre Ausdrücke Bibliothek
Classes
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)
Algorithmen
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)
Iteratoren
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)
Ausnahmen
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)
Traits
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)
Konstanten
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
Member-Funktionen
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
State
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
Elementzugriff zerstört
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
Iteratoren
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
Format
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
Modifiers
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) (seit 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) (seit 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) (seit C++11)
string_type format( const char_type* fmt_s,

                    std::regex_constants::match_flag_type flags =

                        std::regex_constants::format_default ) const;
(4) (seit C++11)
Kopiert die bestimmten Format Zeichenfolge Ersetzen jedes Formatbezeichner oder Escape-Sequenz entweder mit den Zeichen, die er vertritt, oder Zeichen innerhalb *this, auf die sie sich bezieht. Die Bitmasken durch flags festgelegt, welches Format Planer und Escape-Sequenzen erkannt werden .
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.
Das Verhalten ist, wenn ready() != true undefined .
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)
Das Format Zeichenfolge wird von dem Bereich [fmt_first, fmt_last) definiert. Die daraus resultierende Zeichenfolge in out kopiert .
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)
Das Format Zeichenfolge wird von den Zeichen in fmt definiert. Die daraus resultierende Zeichenfolge in out kopiert .
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)
Das Format Zeichenfolge wird von den Zeichen in fmt und fmt_s jeweils definiert. Die daraus resultierende Zeichenfolge in einem neu errichteten String, der zurückgegeben wird kopiert .
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.

Inhaltsverzeichnis

[Bearbeiten] Parameter

fmt_begin, fmt_end -
Zeiger auf einen Bereich von Zeichen, die die Format Zeichensequenz
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 -
Zeichenfolge, die das Format Zeichenfolge
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 -
Zeiger auf einen null-terminierten Zeichenkette definiert das Format Zeichenfolge
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 -
Iterator, wo die resultierende Zeichenfolge zu kopieren
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 -
Bitmaske spezifiziert, welche Formatbezeichner und Escape-Sequenzen sind anerkannt
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.

[Bearbeiten] Rückgabewert

1-2) out
3-4)
Das neu errichtete String resultierende Zeichenfolge .
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.

[Bearbeiten] Ausnahmen

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

[Bearbeiten] Beispiel