Espaces de noms
Variantes
Affichages
Actions

std::basic_regex::assign

De cppreference.com
< cpp‎ | regex‎ | basic 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::basic_regex
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.
basic_regex::basic_regex
basic_regex::~basic_regex
basic_regex::operator=
basic_regex::assign
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.
basic_regex::mark_count
basic_regex::flags
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.
basic_regex::getloc
basic_regex::imbue
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.
basic_regex::swap
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.
basic_regex constants
Fonctions non-membres
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.
swap(std::basic_regex)
 
basic_regex& assign( const basic_regex& other );
(1) (depuis C++11)
basic_regex& assign( basic_regex&& that );
(2) (depuis C++11)
basic_regex& assign( const CharT* s,
                     flag_type f = std::regex_constants::ECMAScript );
(3) (depuis C++11)
basic_regex& assign( const charT* ptr, size_t count,
                     flag_type f = regex_constants::ECMAScript );
(4) (depuis C++11)
template< class ST, class SA >

basic_regex& assign( const std::basic_string<CharT,ST,SA>& str,

                     flag_type f = std::regex_constants::ECMAScript );
(5) (depuis C++11)
template< class InputIt >

basic_regex& assign( InputIt first, InputIt last,

                     flag_type f = std::regex_constants::ECMAScript );
(6) (depuis C++11)
basic_regex& assign( std::initializer_list<CharT> ilist,
                     flag_type f = std::regex_constants::ECMAScript );
(7) (depuis C++11)
Assigne le contenu de l'expression régulière .
Original:
Assigns the contents to 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.
1)
Assigne le contenu de other. flags() et mark_count() sont équivalentes aux valeurs de other.flags() et other.mark_count() après l'appel .
Original:
Assigns the contents of other. flags() and mark_count() are equivalent to the values of other.flags() and other.mark_count() after the call.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Assigne le contenu de other utilisant la sémantique de déplacement. flags() et mark_count() sont équivalentes aux valeurs de other.flags() et other.mark_count() avant la cession. Après l'appel, other est dans un état valide, mais non spécifiée .
Original:
Assigns the contents of other using move semantics. flags() and mark_count() are equivalent to the values of other.flags() and other.mark_count() before the assignment. After the call, other is in a valid, but unspecified state.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3-7)
Attribue une séquence de caractères à l'expression régulière. Les drapeaux sont mis à la syntaxe f. mark_count() retourne le nombre de sous-expressions marquées au sein de la sous-expression résultante après l'appel .
Original:
Assigns a sequence of characters to the regular expression. The syntax flags are set to f. mark_count() returns the number of marked subexpressions within the resulting subexpression after the call.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
Affecte une chaîne à zéro terminal pointé par s .
Original:
Assigns a null-terminated string 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)
Attribue une séquence de caractères count, pointé par s .
Original:
Assigns 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.
5)
Affecte la chaîne .. str
Original:
Assigns the string str.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
6)
Affecte les caractères de la plage .. [first, last)
Original:
Assigns the characters in 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.
7)
Affecte les caractères de la liste d'initialisation ilist .
Original:
Assigns the characters in the initializer list ilist.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Sommaire

[modifier] Paramètres

other -
une autre expression régulière à attribuer
Original:
another regular expression to assign
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
s -
pointeur vers une chaîne de caractères à affecter
Original:
pointer to a character sequence to assign
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
str -
chaîne à attribuer
Original:
string to assign
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
first, last -
la plage de caractères à affecter
Original:
the range of characters to assign
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ilist -
liste d'initialisation contenant des caractères à affecter
Original:
initializer list containing characters to assign
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Type requirements
-
InputIt must meet the requirements of InputIterator.

[modifier] Retourne la valeur

*this

[modifier] 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)
noexcept specification:  
noexcept
   (depuis C++11)
3-7)
std::regex_error si l'expression régulière fournie n'est pas valide. L'objet n'est pas modifié dans ce cas .
Original:
std::regex_error if the supplied regular expression is not valid. The object is not modified in that case.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier] Exemple

[modifier] Voir aussi

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]