std::regex_search — cppreference.com
De cppreference.com
<metanoindex/>
<tbody> </tbody>
| Déclaré dans l'en-tête <regex> |
||
|
|
(1) | (depuis C++11) |
|
|
(2) | (depuis C++11) |
|
|
(3) | (depuis C++11) |
|
|
(4) | (depuis C++11) |
|
|
(5) | (depuis C++11) |
|
|
(6) | (depuis C++11) |
1)
Détermine s'il ya un match entre le e express régulier et une sous-séquence dans la séquence cible [first,last) caractère. Les résultats des matchs sont retournés dans m .
Original:
Determines if there is a match between the regular express e and some subsequence in the target character sequence [first,last). Match results are returned in m.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Std :: Retours regex_search (str, str + std :: char_traits <charT> :: length (str), m, e, drapeaux) .
Original:
Returns std::regex_search(str, str + std::char_traits<charT>::length(str), m, e, flags).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
Std :: Retours regex_search (s.begin (), s.end (), m, e, drapeaux) .
Original:
Returns std::regex_search(s.begin(), s.end(), m, e, flags).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
4)
La même chose que (1), en omettant les résultats des matchs .
Original:
The same as (1), omitting the match results.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
5)
Std :: Retours regex_search (str, str + std :: char_traits <charT> :: length (str), e, drapeaux) .
Original:
Returns std::regex_search(str, str + std::char_traits<charT>::length(str), e, flags).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
6)
Std :: Retours regex_search (s.begin (), s.end (), e, drapeaux) .
Original:
Returns std::regex_search(s.begin(), s.end(), e, flags).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Paramètres
| first, last | - | la plage de caractères cible Original: the target character range The text has been machine-translated via Google Translate. |
| m | - | les résultats des matchs Original: the match results The text has been machine-translated via Google Translate. |
| str | - | un caractère objectif zéro terminal C de type chaîne de caractères Original: a target character null-terminated C-style string The text has been machine-translated via Google Translate. |
| s | - | un std :: basic_string caractères cible Original: a target character std::basic_string The text has been machine-translated via Google Translate. |
| e | - | le std :: regex Original: the std::regex The text has been machine-translated via Google Translate. |
| flags | - | les drapeaux du match Original: the match flags The text has been machine-translated via Google Translate. |
| Type requirements | ||
-BidirIt must meet the requirements of BidirectionalIterator.
| ||
-Alloc must meet the requirements of Allocator.
| ||
Retourne la valeur
Retours true si une correspondance existe quelque part dans la séquence cible, false autrement .
Original:
Returns true if a match exists somewhere in the target sequence, false otherwise.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.