std::match_results::format
Aus cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody> 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.
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.
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.
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.
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.
You can help to correct and verify the translation. Click here for instructions.
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
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.
| ||||||
Rückgabewert
1-2)
out3-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.
You can help to correct and verify the translation. Click here for instructions.
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.
You can help to correct and verify the translation. Click here for instructions.
Beispiel
| This section is incomplete Reason: no example |