std::sub_match
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éclaré dans l'en-tête <regex>
|
||
template< class BidirIt |
(depuis C++11) | |
Le
sub_match
modèle de classe est utilisé par le moteur d'expressions régulières pour désigner des séquences de caractères appariés par marquée sous-expressions .Original:
The class template
sub_match
is used by the regular expression engine to denote sequences of characters matched by marked sub-expressions.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.
Un match est une paire
[begin, end)
intérieur de la fourchette correspondant à l'expression régulière, mais avec des fonctions d'observation supplémentaires pour améliorer la clarté du code .Original:
A match is a
[begin, end)
pair within the target range matched by the regular expression, but with additional observer functions to enhance code clarity.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.
Seul le constructeur par défaut est accessible au public. Instances de
sub_match
sont normalement construits et peuplée comme une partie d'un récipient std::match_results pendant le traitement de l'un des algorithmes de regex .Original:
Only the default constructor is publicly accessible. Instances of
sub_match
are normally constructed and populated as a part of a std::match_results container during the processing of one of the regex 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.
Les fonctions membres retournent des valeurs par défaut définies à moins que le membre est matched
true
.Original:
The member functions return defined default values unless the matched member is
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.
sub_match
hérite de std::pair<BidirIt, BidirIt>, même si elle ne peut pas être traité comme un objet std::pair parce que les fonctions membres tels que des swaps et d'affectation ne fonctionne pas comme prévu .Original:
sub_match
inherits from std::pair<BidirIt, BidirIt>, although it cannot be treated as a std::pair object because member functions such as swap and assignment will not work as expected.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.
Sommaire |
[modifier] Exigences de type
-BidirIt must meet the requirements of BidirectionalIterator .
|
[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 |
csub_match
|
sub_match<const char*> |
wcsub_match
|
sub_match<const wchar_t*> |
ssub_match
|
sub_match<std::string::const_iterator> |
wssub_match
|
sub_match<std::wstring::const_iterator> |
[modifier] Types de membres
Type du membre | Définition |
iterator
|
BidirIt |
value_type
|
std::iterator_traits<BidirIt>::value_type |
difference_type
|
std::iterator_traits<BidirIt>::difference_type |
string_type
|
std::basic_string<value_type> |
[modifier] Objets membres
matched
|
Indique si ce match a été un succès .
Original: Indicates if this 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. |
Inherited from std::pair
first
|
Début de la séquence match .
Original: Start of the match sequence. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
second
|
One-past-the-fin de la séquence match .
Original: One-past-the-end of the match sequence. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifier] Fonctions membres
construit l'objet match Original: constructs the match 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) | |
Original: Observers 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 du match (le cas échéant) Original: returns the length of the match (if any) 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) | |
convertit le type chaîne sous-jacente Original: converts to the underlying string type 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) | |
compare-séquence adaptée (le cas échéant) Original: compares matched subsequence (if any) 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] Fonctions annexes
compare les valeurs lexicographiquement dans le récipient Original: lexicographically compares the values in the container The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
délivre en sortie la séquence de caractères identifié Original: outputs the matched character subsequence 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) |
[modifier] Voir aussi
(C++11) |
parcourt sous-correspondances regex Original: iterates through regex submatches The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe générique) |