Espaces de noms
Variantes
Affichages
Actions

cpp/regex/basic regex/basic regex : Différence entre versions

De cppreference.com
< cpp‎ | regex‎ | basic regex
m (r2.7.3) (robot Ajoute : de, en, es, it, ja, pt, ru, zh)
m (Use {{lc}}. Update links. Various fixes.)
 
Ligne 2 : Ligne 2 :
 
{{cpp/regex/basic_regex/title | basic_regex}}
 
{{cpp/regex/basic_regex/title | basic_regex}}
 
{{cpp/regex/basic_regex/navbar}}
 
{{cpp/regex/basic_regex/navbar}}
{{ddcl list begin}}
+
{{begin}}
{{ddcl list item | num=1 | notes={{mark since c++11}} | 1=  
+
{{| num=1 | =c++11 | 1=  
 
basic_regex();
 
basic_regex();
 
}}
 
}}
{{ddcl list item | num=2 | notes={{mark since c++11}} | 1=  
+
{{| num=2 | sincec++11 | 1=  
 
explicit basic_regex( const CharT* s,  
 
explicit basic_regex( const CharT* s,  
 
                       flag_type f = std::regex_constants::ECMAScript );
 
                       flag_type f = std::regex_constants::ECMAScript );
 
}}
 
}}
{{ddcl list item | num=3 | notes={{mark since c++11}} | 1=  
+
{{| num=3 | sincec++11 | 1=  
 
basic_regex( const CharT* s, std::size_t count,
 
basic_regex( const CharT* s, std::size_t count,
 
             flag_type f = std::regex_constants::ECMAScript );
 
             flag_type f = std::regex_constants::ECMAScript );
 
}}
 
}}
{{ddcl list item | num=4 | notes={{mark since c++11}} | 1=  
+
{{| num=4 | sincec++11 | 1=  
 
basic_regex( const basic_regex& other );
 
basic_regex( const basic_regex& other );
 
}}
 
}}
{{ddcl list item | num=5 | notes={{mark since c++11}} | 1=  
+
{{| num=5 | sincec++11 | 1=  
 
basic_regex( basic_regex&& other );
 
basic_regex( basic_regex&& other );
 
}}
 
}}
{{ddcl list item | num=6 | notes={{mark since c++11}} | 1=  
+
{{| num=6 | sincec++11 | 1=  
 
template< class ST, class SA >
 
template< class ST, class SA >
 
explicit basic_regex( const std::basic_string<CharT,ST,SA>& str,  
 
explicit basic_regex( const std::basic_string<CharT,ST,SA>& str,  
 
                       flag_type f = std::regex_constants::ECMAScript );
 
                       flag_type f = std::regex_constants::ECMAScript );
 
}}
 
}}
{{ddcl list item | num=7 | notes={{mark since c++11}} | 1=  
+
{{| num=7 | sincec++11 | 1=  
 
template< class ForwardIt >
 
template< class ForwardIt >
 
basic_regex( ForwardIt first, ForwardIt last,  
 
basic_regex( ForwardIt first, ForwardIt last,  
 
             flag_type f = std::regex_constants::ECMAScript );
 
             flag_type f = std::regex_constants::ECMAScript );
 
}}
 
}}
{{ddcl list item | num=8 | notes={{mark since c++11}} | 1=  
+
{{| num=8 | sincec++11 | 1=  
 
basic_regex( std::initializer_list<CharT> init,  
 
basic_regex( std::initializer_list<CharT> init,  
 
             flag_type f = std::regex_constants::ECMAScript );
 
             flag_type f = std::regex_constants::ECMAScript );
 
}}
 
}}
{{ddcl list end}}
+
{{end}}
  
 
{{tr|Construit une nouvelle regex à partir d'une séquence de caractères interprétés selon les drapeaux {{tt|f}} .|Constructs a new regex from a sequence of characters interpreted according to the flags {{tt|f}}.}}
 
{{tr|Construit une nouvelle regex à partir d'une séquence de caractères interprétés selon les drapeaux {{tt|f}} .|Constructs a new regex from a sequence of characters interpreted according to the flags {{tt|f}}.}}
Ligne 55 : Ligne 55 :
  
 
===Paramètres===
 
===Paramètres===
{{param list begin}}
+
{{begin}}
{{param list item | s |{{tr| pointeur vers une chaîne terminée par null| pointer to a null-terminated string}}}}
+
{{| s |{{tr| pointeur vers une chaîne terminée par null| pointer to a null-terminated string}}}}
{{param list item | count |{{tr| longueur d'une séquence de caractères utilisée pour initialiser la regex| length of a character sequence used to initialize the regex}}}}
+
{{| count |{{tr| longueur d'une séquence de caractères utilisée pour initialiser la regex| length of a character sequence used to initialize the regex}}}}
{{param list item | first, last |{{tr| portée d'une séquence de caractères utilisée pour initialiser la regex| range of a character sequence used to initialize the regex}}}}
+
{{| first, last |{{tr| portée d'une séquence de caractères utilisée pour initialiser la regex| range of a character sequence used to initialize the regex}}}}
{{param list item | str |{{tr| une basic_string utilisé comme source utilisé pour initialiser la regex| a basic_string used as a source used to initialize the regex}}}}
+
{{| str |{{tr| une basic_string utilisé comme source utilisé pour initialiser la regex| a basic_string used as a source used to initialize the regex}}}}
{{param list item | other |{{tr| une autre regex à utiliser comme source pour initialiser la regex| another regex to use as source to initialize the regex}}}}
+
{{| other |{{tr| une autre regex à utiliser comme source pour initialiser la regex| another regex to use as source to initialize the regex}}}}
{{param list item | init |{{tr| liste d'initialisation utilisée pour initialiser la regex| initializer list used to initialize the regex}}}}
+
{{| init |{{tr| liste d'initialisation utilisée pour initialiser la regex| initializer list used to initialize the regex}}}}
{{param list item | f |{{tr| drapeaux utilisés pour guider l'interprétation de la séquence de caractères comme une expression régulière | flags used to guide the interpretation of the character sequence as a regular expression }}}}
+
{{| f |{{tr| drapeaux utilisés pour guider l'interprétation de la séquence de caractères comme une expression régulière | flags used to guide the interpretation of the character sequence as a regular expression }}}}
{{param list hreq}}
+
{{hreq}}
{{param list req concept | ForwardIt | ForwardIterator}}
+
{{req concept | ForwardIt | ForwardIterator}}
{{param list end}}
+
{{end}}
  
 
===Exceptions===
 
===Exceptions===
 
@1@ {{tr|(Aucun)|(none)}}
 
@1@ {{tr|(Aucun)|(none)}}
  
@2-3@ {{tr|{{c|std::regex_error}} si l'expression régulière fournie n'est pas valide .|{{c|std::regex_error}} if the supplied regular expression is not valid.}}
+
@2-3@ {{tr|{{|std::regex_error}} si l'expression régulière fournie n'est pas valide .|{{|std::regex_error}} if the supplied regular expression is not valid.}}
  
 
@4@ {{noexcept}}
 
@4@ {{noexcept}}
  
@5-8@ {{tr|{{c|std::regex_error}} si l'expression régulière fournie n'est pas valide .|{{c|std::regex_error}} if the supplied regular expression is not valid.}}
+
@5-8@ {{tr|{{|std::regex_error}} si l'expression régulière fournie n'est pas valide .|{{|std::regex_error}} if the supplied regular expression is not valid.}}
  
 
[[de:cpp/regex/basic regex/basic regex]]
 
[[de:cpp/regex/basic regex/basic regex]]

Version actuelle en date du 2 juillet 2013 à 05:43

 
 
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();
(1) (depuis C++11)
explicit basic_regex( const CharT* s,
                      flag_type f = std::regex_constants::ECMAScript );
(2) (depuis C++11)
basic_regex( const CharT* s, std::size_t count,
             flag_type f = std::regex_constants::ECMAScript );
(3) (depuis C++11)
basic_regex( const basic_regex& other );
(4) (depuis C++11)
basic_regex( basic_regex&& other );
(5) (depuis C++11)
template< class ST, class SA >

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

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

basic_regex( ForwardIt first, ForwardIt last,

             flag_type f = std::regex_constants::ECMAScript );
(7) (depuis C++11)
basic_regex( std::initializer_list<CharT> init,
             flag_type f = std::regex_constants::ECMAScript );
(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.

[modifier] 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.
You can help to correct and verify the translation. Click here for instructions.
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.
You can help to correct and verify the translation. Click here for instructions.
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.
You can help to correct and verify the translation. Click here for instructions.
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.
You can help to correct and verify the translation. Click here for instructions.
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.
You can help to correct and verify the translation. Click here for instructions.
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.
You can help to correct and verify the translation. Click here for instructions.
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.
You can help to correct and verify the translation. Click here for instructions.
Type requirements
-
ForwardIt must meet the requirements of ForwardIterator.

[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-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.
4)
noexcept specification:  
noexcept
   (depuis C++11)
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.