std::basic_regex::basic_regex — cppreference.com
De cppreference.com
<metanoindex/>
<tbody> </tbody>
|
|
(1) | (depuis C++11) |
|
|
(2) | (depuis C++11) |
|
|
(3) | (depuis C++11) |
|
|
(4) | (depuis C++11) |
|
|
(5) | (depuis C++11) |
|
|
(6) | (depuis C++11) |
|
|
(7) | (depuis C++11) |
|
|
(8) | (depuis C++11) |
Construit une nouvelle regex à partir d'une séquence de caractères interprétés selon les drapeaux f .
Original:
Constructs a new regex from a sequence of characters interpreted according to the flags f.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Constructeur par défaut. Construit une expression régulière vide qui correspondent à rien .
Original:
Default constructor. Constructs an empty regular expression which will match nothing.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Construit une regex à partir d'un s chaîne à zéro terminal .
Original:
Constructs a regex from a null-terminated string s.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
Construit une regex à partir d'une séquence de caractères count, pointé par s .
Original:
Constructs a regex from a sequence of count characters, pointed to by s.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
4)
Copiez constructeur. Construit un regex en copiant other
Original:
Copy constructor. Constructs a regex by copying other
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
5)
Déplacez constructeur. Construit une regex par le contenu de other utilisant la sémantique de déplacement .
Original:
Move constructor. Constructs a regex by with the contents of other using move semantics.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
6)
Construit une regex à partir d'un str chaîne .
Original:
Constructs a regex from a string str.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
7)
Constructeur de gamme. Construit la chaîne avec le contenu de la plage .. [first, last)
Original:
Range constructor. Constructs the string with the contents of the range [first, last).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
8)
Liste d'initialisation du constructeur. Construit la chaîne avec le contenu de la liste d'initialisation init .
Original:
Initializer list constructor. Constructs the string with the contents of the initializer list init.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Paramètres
| s | - | pointeur vers une chaîne terminée par null Original: pointer to a null-terminated string The text has been machine-translated via Google Translate. |
| count | - | longueur d'une séquence de caractères utilisée pour initialiser la regex Original: length of a character sequence used to initialize the regex The text has been machine-translated via Google Translate. |
| first, last | - | portée d'une séquence de caractères utilisée pour initialiser la regex Original: range of a character sequence used to initialize the regex The text has been machine-translated via Google Translate. |
| str | - | une basic_string utilisé comme source utilisé pour initialiser la regex Original: a basic_string used as a source used to initialize the regex The text has been machine-translated via Google Translate. |
| other | - | une autre regex à utiliser comme source pour initialiser la regex Original: another regex to use as source to initialize the regex The text has been machine-translated via Google Translate. |
| init | - | liste d'initialisation utilisée pour initialiser la regex Original: initializer list used to initialize the regex The text has been machine-translated via Google Translate. |
| f | - | drapeaux utilisés pour guider l'interprétation de la séquence de caractères comme une expression régulière Original: flags used to guide the interpretation of the character sequence as a regular expression The text has been machine-translated via Google Translate. |
| Type requirements | ||
-ForwardIt must meet the requirements of ForwardIterator.
| ||
Exceptions
1)
(Aucun)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2-3)
std::regex_error si l'expression régulière fournie n'est pas valide .
Original:
std::regex_error if the supplied regular expression is not valid.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
5-8)
std::regex_error si l'expression régulière fournie n'est pas valide .
Original:
std::regex_error if the supplied regular expression is not valid.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.