std::match_results::format
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<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) | (dal 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) | (dal 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) | (dal C++11) |
string_type format( const char_type* fmt_s, std::regex_constants::match_flag_type flags = std::regex_constants::format_default ) const; |
(4) | (dal C++11) |
Copia la data sequenza di caratteri formato sostituendo ogni identificatore di formato o sequenza di escape sia con i personaggi che rappresenta o caratteri all'interno
*this a cui si riferisce. Le maschere di bit specificati da flags determinare quali identificatori di formato e sequenze di escape sono riconosciuti.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.
Il comportamento è indefinito se
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 sequenza di caratteri formato viene definito dal
[fmt_first, fmt_last) gamma. La sequenza di caratteri risultante viene copiato 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 sequenza di caratteri formato è definito dai caratteri
fmt. La sequenza di caratteri risultante viene copiato 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 sequenza di caratteri formato è definito dai personaggi
fmt e fmt_s rispettivamente. La sequenza di caratteri risultante viene copiato in una stringa di nuova costruzione, che viene restituito.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.
Parametri
| fmt_begin, fmt_end | - | puntatori a una serie di caratteri che definiscono la sequenza di caratteri formato
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 | - | stringa che definisce la sequenza di caratteri formato
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 | - | puntatore ad una stringa con terminazione null di caratteri che definisce la sequenza di caratteri formato
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 | - | iteratore dove copiare la sequenza risultante carattere
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 | - | Tipo di maschera di bit che specifica quali identificatori di formato e sequenze di escape vengono riconosciuti
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.
|
Valore di ritorno
1-2)
out3-4)
La stringa di nuova costruzione che contiene la sequenza di caratteri risultante.
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.
Eccezioni
(Nessuno)
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.
Esempio
| This section is incomplete Reason: no example |