std::match_results
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. |
| Défini dans l'entête <regex>
|
||
| template< class BidirIt, |
(depuis C++11) | |
Le std::match_results modèle de classe possède une collection de séquences de caractères qui représentent le résultat d'une expression régulière .
Original:
The class template std::match_results holds a collection of character sequences that represent the result of a regular expression match.
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 s'agit d'une allocation spécialisée conscient de conteneur. Il ne peut être créé par défaut ou modifiés par le passage à l'std::regex_search() ou des algorithmes std::regex_match() .
Original:
This is a specialized allocator-aware container. It can only be default created or modified by passing to the std::regex_search() or std::regex_match() algorithms.
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 sub_match premier (index 0) contenue dans un match_result représente toujours le match plein au sein d'une séquence cible faite par une expression régulière, et sub_matches suivantes représentent les sous-expression matchs correspondants dans l'ordre de la parenthèse gauche délimitant la sous-expression dans la regex .
Original:
The first sub_match (index 0) contained in a match_result always represents the full match within a target sequence made by a regex, and subsequent sub_matches represent sub-expression matches corresponding in sequence to the left parenthesis delimiting the sub-expression in the regex.
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.
[modifier] Exigences de type
-BidirIt must meet the requirements of BidirectionalIterator.
| ||
-Alloc must meet the requirements of Allocator.
|
[modifier] Spécialisations
Plusieurs spécialisations pour les types courants de séquence de caractères sont fournis:
Original:
Several specializations for common character sequence types are provided:
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.
| Defined in header
<regex> | |
| Type d'
Original: Type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
cmatch
|
match_results<const char*> |
wcmatch
|
match_results<const wchar_t*> |
smatch
|
match_results<std::string::const_iterator> |
wsmatch
|
match_results<std::wstring::const_iterator> |
[modifier] Types de membres
| Type de membre
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
allocator_type
|
Allocator |
value_type
|
std::sub_match<BidirIt> |
const_reference
|
const value_type& |
reference
|
const_reference |
const_iterator
|
Mise en œuvre' défini (dépend du conteneur sous-jacent)
Original: implementation defined (depends on the underlying container) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
iterator
|
const_iterator |
difference_type
|
std::iterator_traits<BidirIt>::difference_type |
size_type
|
std::allocator_traits<Alloc>::size_type |
char_type
|
std::iterator_traits<BidirIt>::value_type |
string_type
|
std::basic_string<char_type> |
[modifier] Les fonctions membres
| Construit l'objet Original: constructs the object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
| Détruit l'objet Original: destructs the object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
| affecte le contenu Original: assigns the contents The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
| renvoie l'allocateur associé Original: returns the associated allocator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
Original: State The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| (fonction membre publique) | |
Original: Size The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| vérifie si le match a réussi Original: checks whether the match was successful The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
| retourne le nombre de correspondances dans un état de résultat totalement établie Original: returns the number of matches in a fully-established result state The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
| retourne le plus grand nombre possible de sous-combinaisons Original: returns the maximum possible number of sub-matches The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
Original: Element access The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| retourne la longueur de la sous-notamment match Original: returns the length of the particular sub-match The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
| retourne la position du premier caractère particulier de la sous-partie Original: returns the position of the first character of the particular sub-match The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
| retourne la séquence de caractères pour le particulier sous le match Original: returns the sequence of characters for the particular sub-match The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
| rendement indiqués correspondent à des sous- Original: returns specified sub-match The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
| retours sous-séquence entre le début de la séquence cible et le début du match plein . Original: returns sub-sequence between the beginning of the target sequence and the beginning of the full match. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
| retours sous-séquence entre la fin de la partie entière et la fin de la séquence cible Original: returns sub-sequence between the end of the full match 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. (fonction membre publique) | |
Original: Iterators The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| retourne un itérateur au début de la liste des sous-correspondances Original: returns iterator to the beginning of the list of sub-matches The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
| retourne un itérateur à la fin de la liste des sous-correspondances Original: returns iterator to the end of the list of sub-matches The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
Original: Format The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| formats match results for output (fonction membre publique) | |
Original: Modifiers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| permute les contenus Original: swaps the contents The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
[modifier] Tiers fonctions
| compare lexicographiquement les valeurs dans le résultat deux match Original: lexicographically compares the values in the two match result The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction générique) | |
| (C++11) |
l'algorithme spécialisé std::swap()Original: specializes the std::swap() algorithmThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction générique) |