◐ Shell
clean mode source ↗

std::basic_regex — cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

Déclaré dans l'en-tête

<regex>

template < class CharT = char, class Traits = std::regex_traits<CharT> > class basic_regex;

(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.

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.

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>

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

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

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

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

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

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

Locale

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

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

Modificateurs

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

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.

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.

Fonctions annexes

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