std::match_results::suffix
Da cppreference.com.
< cpp | regex | match results
![]() |
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. |
const_reference suffix() const; |
(dal C++11) | |
This section is incomplete |
[modifica] Parametri
(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.
[modifica] Valore di ritorno
Restituisce un sub_match rappresenta la parte della sequenza bersaglio tra la fine della partita intera espressione regolare e la fine della sequenza bersaglio.
Original:
Returns a sub_match representing the part of the target sequence between the end of the entire match of the regular expression and the end of the target 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.
[modifica] Esempio
#include <iostream> #include <regex> #include <string> int main() { std::regex re("a(a)*b"); std::string target("baaaby"); std::smatch sm; std::regex_search(target, sm, re); std::cout << sm.suffix().str() << '\n'; }
Output:
y