std::match_results::format
|
|
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. |
| template< class OutputIt > OutputIter format( OutputIt out, |
(1) | (C++11 起) |
| template< class OutputIt, class ST, class SA > OutputIter format( OutputIt out, |
(2) | (C++11 起) |
| template< class ST, class SA > std::basic_string<char_type,ST,SA> |
(3) | (C++11 起) |
| string_type format( const char_type* fmt_s, std::regex_constants::match_flag_type flags = |
(4) | (C++11 起) |
flags指定的位掩碼確定的格式說明符和轉義序列確認..flags determine which format specifiers and escape sequences are recognized.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.
[fmt_first, fmt_last)。生成的字元序列被複制到out.[fmt_first, fmt_last). The resulting character sequence is copied to out.You can help to correct and verify the translation. Click here for instructions.
fmt中的字元所定義的格式的字元序列。生成的字元序列被複制到out.fmt. The resulting character sequence is copied to out.You can help to correct and verify the translation. Click here for instructions.
fmt和fmt_s分別用字元。生成的字元序列被複制到一個新構造的字元串,則返回.fmt and fmt_s respectively. The resulting character sequence is copied to a newly constructed string, which is returned.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 | - | 指針指向一個空結尾的字元串的定義格式字元序列的
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.
| ||||||
[编辑] 返回值
outYou 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.
[编辑] 為例
| 本節是不完整的 原因: no example |