std::basic_regex::basic_regex
Da cppreference.com
< cpp | regex | basic regex
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
basic_regex(); |
(1) | (a partir do C++ 11) |
explicit basic_regex( const CharT* s, flag_type f = std::regex_constants::ECMAScript ); |
(2) | (a partir do C++ 11) |
basic_regex( const CharT* s, std::size_t count, flag_type f = std::regex_constants::ECMAScript ); |
(3) | (a partir do C++ 11) |
basic_regex( const basic_regex& other ); |
(4) | (a partir do C++ 11) |
basic_regex( basic_regex&& other ); |
(5) | (a partir do C++ 11) |
template< class ST, class SA > explicit basic_regex( const std::basic_string<CharT,ST,SA>& str, |
(6) | (a partir do C++ 11) |
template< class ForwardIt > basic_regex( ForwardIt first, ForwardIt last, |
(7) | (a partir do C++ 11) |
basic_regex( std::initializer_list<CharT> init, flag_type f = std::regex_constants::ECMAScript ); |
(8) | (a partir do C++ 11) |
Constrói um regex novo a partir de uma seqüência de caracteres interpretados de acordo com as bandeiras
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)
Construtor padrão. Constrói uma expressão vazia regular, que irá corresponder a nada.
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)
Constrói um regex de um
s
string terminada em null.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)
Constrói um regex de uma seqüência de caracteres
count
, apontado pelo 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)
Copie construtor. Constrói um 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)
Mova construtor. Constrói um regex por com o conteúdo do
other
usando semântica mover.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)
Constrói um regex de um
str
cadeia.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)
Construtor Range. Constrói a string com o conteúdo do
[first, last)
gama.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)
Construtor lista de inicializador. Constrói a string com o conteúdo da lista de inicializador
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.
[editar] Parâmetros
s | - | ponteiro para uma string terminada em 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 | - | comprimento de uma seqüência de caracteres usado para inicializar o 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 | - | alcance de uma seqüência de caracteres usado para inicializar o 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 | - | um basic_string usado como uma fonte usado para inicializar o 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 | - | outro regex para usar como fonte para inicializar o 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 de inicializador usado para inicializar o 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 | - | sinalizadores usados para orientar a interpretação da seqüência de caracteres como uma expressão regular
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 .
|
[editar] Exceções
1)
(Nenhum)
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 a expressão regular não é fornecido válido.
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 a expressão regular não é fornecido válido.
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.