std::basic_regex::basic_regex
Da cppreference.com.
< cpp | regex | basic regex
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
basic_regex(); |
(1) | (dal C++11) |
explicit basic_regex( const CharT* s, flag_type f = std::regex_constants::ECMAScript ); |
(2) | (dal C++11) |
basic_regex( const CharT* s, std::size_t count, flag_type f = std::regex_constants::ECMAScript ); |
(3) | (dal C++11) |
basic_regex( const basic_regex& other ); |
(4) | (dal C++11) |
basic_regex( basic_regex&& other ); |
(5) | (dal C++11) |
template< class ST, class SA > explicit basic_regex( const std::basic_string<CharT,ST,SA>& str, |
(6) | (dal C++11) |
template< class ForwardIt > basic_regex( ForwardIt first, ForwardIt last, |
(7) | (dal C++11) |
basic_regex( std::initializer_list<CharT> init, flag_type f = std::regex_constants::ECMAScript ); |
(8) | (dal C++11) |
Costruisce un nuovo regex da una sequenza di caratteri interpretati secondo le bandiere
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.
You can help to correct and verify the translation. Click here for instructions.
1)
Costruttore di default. Costruisce una espressione vuota regolare che corrisponderà nulla.
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.
You can help to correct and verify the translation. Click here for instructions.
2)
Costruisce una regex di terminazione null
s
stringa.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.
You can help to correct and verify the translation. Click here for instructions.
3)
Costruisce una regex da una sequenza di caratteri
count
, rilevata dal 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.
You can help to correct and verify the translation. Click here for instructions.
4)
Copia costruttore. Costruisce una regex copiando
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.
You can help to correct and verify the translation. Click here for instructions.
5)
Sposta costruttore. Costruisce una regex da con il contenuto di
other
con semantica di spostamento.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.
You can help to correct and verify the translation. Click here for instructions.
6)
Costruisce una regex da un
str
stringa.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.
You can help to correct and verify the translation. Click here for instructions.
7)
Intervallo costruttore. Costruisce la stringa con il contenuto del campo di
[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.
You can help to correct and verify the translation. Click here for instructions.
8)
Inizializzatore lista costruttore. Costruisce la stringa con il contenuto della lista di inizializzazione
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.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Parametri
s | - | puntatore ad una stringa terminata da 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 | - | lunghezza di una sequenza di caratteri utilizzato per inizializzare 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 | - | intervallo di una sequenza di caratteri utilizzato per inizializzare 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 | - | un basic_string usato come fonte utilizzata per inizializzare 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 | - | un'altra regex da usare come sorgente per inizializzare 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 | - | lista di inizializzazione utilizzato per inizializzare 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 | - | flag usato per guidare l'interpretazione della sequenza di caratteri come una espressione regolare
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 .
|
[modifica] Eccezioni
1)
(Nessuno)
Original:
(none)
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.
2-3)
std::regex_error se l'espressione regolare in dotazione non è valida.
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.
You can help to correct and verify the translation. Click here for instructions.
4)
5-8)
std::regex_error se l'espressione regolare in dotazione non è valida.
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.
You can help to correct and verify the translation. Click here for instructions.