std::basic_regex
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 CharT = char, |
(depuis C++11) | |
Le
basic_regex
modèle de classe offre un cadre général pour la tenue des expressions régulières . Original:
The class template
basic_regex
provides a general framework for holding regular 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.
Plusieurs spécialisations pour les types de caractères communs sont fournis:
Original:
Several specializations for common character 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 |
regex
|
basic_regex<char> |
wregex
|
basic_regex<wchar_t> |
[modifier] Types de membres
Type du membre | Définition |
value_type
|
CharT |
traits_type
|
Traits |
string_type
|
Traits::string_type |
locale_type
|
Traits::locale_type |
flag_type
|
std::regex_constants::syntax_option_type |
[modifier] Fonctions membres
construit l'objet regex Original: constructs the regex 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 regex Original: destructs the regex 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) | |
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) | |
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 le nombre de nette sous-expressions dans l'expression régulière Original: returns the number of marked sub-expressions within the regular expression 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 les indicateurs de syntaxe Original: returns the syntax flags 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: Locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
obtenir de l'information locale Original: get locale information 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éfinir les informations de localisation Original: set locale information 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: 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) | |
Original: Constants The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Valeur
Original: Value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Effect(s) |
icase | ignore la casse des caractères lors de l'appariement
Original: ignores case when matching characters The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
nosubs | ne pas stocker sous-expression matchs
Original: does not store 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. |
optimize | plus rapide adaptation, plus lent de la construction
Original: faster matching, slower construction The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
collate | rend étendue des expressions sensibles aux paramètres régionaux
Original: makes range expressions locale-sensitive The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
ECMAScript | utilise un ECMA-262 (Perl 5) syntaxe
Original: uses an ECMA-262 (Perl 5) syntax The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
basic | utilise une syntaxe POSIX de base des expressions régulières
Original: uses a POSIX basic regular expression syntax The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
extended | utilise une syntaxe POSIX expression régulière étendue
Original: uses a POSIX extended regular expression syntax The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
awk | awk utilise un' compatible syntaxe
Original: uses an awk-compatible syntax The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
grep | utilise un' grep compatible syntaxe
Original: uses a grep-compatible syntax The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
egrep | utilise un grep' extension compatible avec la syntaxe
Original: uses an extended grep-compatible syntax The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifier] Fonctions annexes
(C++11) |
l'algorithme spécialisé std::swap Original: specializes the std::swap algorithm 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) |