Espaces de noms
Variantes
Affichages
Actions

std::sub_match

De cppreference.com
< cpp‎ | regex

 
 
Regular expressions bibliothèque
Classes
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_regex (C++11)
sub_match (C++11)
match_results (C++11)
Algorithmes
Original:
Algorithms
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
regex_match (C++11)
regex_search (C++11)
regex_replace (C++11)
Les itérateurs
Original:
Iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
regex_iterator (C++11)
regex_token_iterator (C++11)
Exceptions
Original:
Exceptions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
regex_error (C++11)
Traits
Original:
Traits
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
regex_traits (C++11)
Constantes
Original:
Constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
syntax_option_type (C++11)
match_flag_type (C++11)
error_type (C++11)
 
std::sub_match
Les fonctions membres
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
sub_match::sub_match (C++11)
sub_match::length (C++11)
sub_match::str
sub_match::operator string_type
(C++11)
sub_match::compare (C++11)
Tiers fonctions
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
operator==
operator!=
operator<<
operator<=
operator>
operator>=
(C++11)
operator<< (C++11)
 
Defined in header <regex>
template<

    class BidirIt

> class sub_match;
(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.
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.
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.
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.
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.

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.
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) [edit]
Des observateurs
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) [edit]
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) [edit]
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) [edit]

[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) [edit]
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

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)