std::basic_regex::basic_regex
De 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) | (desde C++11) |
explicit basic_regex( const CharT* s, flag_type f = std::regex_constants::ECMAScript ); |
(2) | (desde C++11) |
basic_regex( const CharT* s, std::size_t count, flag_type f = std::regex_constants::ECMAScript ); |
(3) | (desde C++11) |
basic_regex( const basic_regex& other ); |
(4) | (desde C++11) |
basic_regex( basic_regex&& other ); |
(5) | (desde C++11) |
template< class ST, class SA > explicit basic_regex( const std::basic_string<CharT,ST,SA>& str, |
(6) | (desde C++11) |
template< class ForwardIt > basic_regex( ForwardIt first, ForwardIt last, |
(7) | (desde C++11) |
basic_regex( std::initializer_list<CharT> init, flag_type f = std::regex_constants::ECMAScript ); |
(8) | (desde C++11) |
Construye una nueva expresión regular de una secuencia de caracteres interpretados de acuerdo con las banderas
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)
Por defecto constructor. Construye una expresión vacía regular, que coincidirá con 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)
Construye una expresión regular de un
s
cadena terminada en cero .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)
Construye una expresión regular a partir de una secuencia de caracteres
count
, apuntada por 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)
Copiar constructor. Construye una expresión regular 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)
Mueva constructor. Construye una expresión regular por el contenido de
other
utilizando la semántica de movimiento .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)
Construye una expresión regular de un
str
cadena .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)
Rango constructor. Construye la cadena con el contenido de la
[first, last)
rango .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)
Inicializador de constructor de lista. Construye la cadena con el contenido de la lista de inicializadores
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 | - | puntero a una cadena terminada en nulo
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 | - | longitud de una secuencia de caracteres utilizada para inicializar la expresión regular
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 | - | rango de una secuencia de caracteres utilizado para inicializar la expresión regular
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 utilizado como fuente utilizado para inicializar la expresión regular
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 | - | otra expresión regular para utilizar como fuente para inicializar la expresión regular
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 inicialización utilizado para inicializar la expresión regular
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 | - | banderas utiliza para guiar la interpretación de la secuencia de caracteres como una expresión 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] Excepciones
1)
(Ninguno)
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 si la expresión regular proporcionada no es válida .
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 si la expresión regular proporcionada no es válida .
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.