std::match_results::format
De 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) | (depuis 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) | (depuis 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) | (depuis C++11) |
string_type format( const char_type* fmt_s, std::regex_constants::match_flag_type flags = std::regex_constants::format_default ) const; |
(4) | (depuis C++11) |
Copie le format de séquence étant donné le caractère remplaçant chaque spécificateur de format ou de séquence d'échappement soit avec les personnages qu'il représente ou de caractères au sein
*this à laquelle il se réfère. Les masques de bits spécifiés par flags déterminer les spécificateurs de format et de séquences d'échappement sont reconnus .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.
Le comportement est indéfini si
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.
You can help to correct and verify the translation. Click here for instructions.
1)
La séquence de caractères de format est défini par la plage
[fmt_first, fmt_last). La séquence de caractères résultante est copié dans 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.
You can help to correct and verify the translation. Click here for instructions.
2)
La séquence de caractères est définie par le format des caractères de
fmt. La séquence de caractères résultante est copié dans 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.
You can help to correct and verify the translation. Click here for instructions.
3-4)
La séquence de caractères est définie par le format des caractères et
fmt fmt_s respectivement. La séquence de caractères résultante est copié dans une chaîne nouvellement construit, qui est retourné .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.
Paramètres
| fmt_begin, fmt_end | - | des pointeurs vers une plage de caractères définissant la séquence de caractères de format
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 | - | Chaîne définissant la séquence de caractères de format
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 | - | pointeur vers une chaîne de caractères terminée par NULL définir la séquence de caractères de format
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 | - | itérateur où copier la séquence de caractères résultant d'
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 | - | Type de masque de bits indiquant les spécificateurs de format et séquences d'échappement qui sont reconnus
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.
| ||||||
Retourne la valeur
1-2)
out3-4)
La chaîne nouvellement construit contenant la séquence de caractères résultante .
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.
Exceptions
(Aucun)
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.
Exemple
| This section is incomplete Reason: no example |