Espaces de noms
Variantes
Affichages
Actions

Regular expressions library

De cppreference.com
< cpp


 
 
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)
 

La bibliothèque d'expressions rationnelles regex fournit une classe qui représente les expressions rationnelles, qui sont une sorte de mini-langage utilisé pour effectuer de la reconnaissance de motifs dans les chaînes de caractères.

Sont également fournis dans la bibliothèque d'expressions rationnelles, des classes utilitaires qui permettent l'utilisation de différents algorithmes, itérateurs, exceptions et des traits de type .

Sommaire

[modifier] Classes principales

Ces classes encapsulent une expression rationnelle et les résultats de la recherche de motifs dans une séquence de caractères.

(C++11)
objet expression régulière
Original:
regular expression object
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) [edit]
(C++11)
identifie la séquence de caractères correspondants par une sous-expression
Original:
identifies the sequence of characters matched by a sub-expression
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) [edit]
identifie une correspondance d'expression régulière, y compris tous les matchs de la sous-expression
Original:
identifies one regular expression match, including all sub-expression matches
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) [edit]

[modifier] Algorithmes

Ces fonctions sont utilisées pour appliquer l'expression rationnelle encapsulée dans une regex à une séquence de caractères.

(C++11)
tente de faire correspondre une expression régulière pour la séquence de caractères entier
Original:
attempts to match a regular expression to the entire character sequence
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) [edit]
tente de faire correspondre une expression régulière de toute partie de la séquence de caractères
Original:
attempts to match a regular expression to any part of the character sequence
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) [edit]
remplace les occurrences d'une expression régulière avec le texte de remplacement formaté
Original:
replaces occurrences of a regular expression with formatted replacement text
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) [edit]

[modifier] Itérateurs

Les itérateurs regex sont utilisés pour parcourir l'ensemble des motifs trouvés dans une séquence de caractère grâce à l'expression rationnelle.

parcourt tous les matches regex dans une séquence de caractères
Original:
iterates through all regex matches within a character sequence
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) [edit]
parcourt spécifié sous-expressions dans toutes les correspondances regex dans une chaîne donnée ou par l'intermédiaire des sous-chaînes inégalées
Original:
iterates through the specified sub-expressions within all regex matches in a given string or through unmatched substrings
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) [edit]

[modifier] Exceptions

Cette classe définit le type des objets levés en tant qu'exceptions pour signaler les erreurs provenant de la bibliothèque d'expressions rationnelles.

(C++11)
signale les erreurs générées par la bibliothèque d'expressions régulières
Original:
reports errors generated by the regular expressions library
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe) [edit]

[modifier] Traits

La classe regex traits est utilisée pour encapsuler les aspects localisables d'une regex.

fournit méta-informations sur un type de caractère, requis par la bibliothèque regex
Original:
provides metainformation about a character type, required by the regex library
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) [edit]

[modifier] Constantes

Defined in namespace std::regex_constants
options générales contrôler le comportement des regex
Original:
general options controlling regex behavior
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(typedef) [edit]
options spécifiques à l'appariement
Original:
options specific to matching
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(typedef) [edit]
(C++11)
décrit les différents types d'erreurs d'appariement
Original:
describes different types of matching errors
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(typedef) [edit]