std::basic_regex
De cppreference.com
![]() |
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. |
Defined in header <regex>
|
||
template < class CharT = char, |
(desde C++11) | |
La plantilla
basic_regex
clase proporciona un marco general para la celebración de las expresiones regulares . Original:
The class template
basic_regex
provides a general framework for holding regular expressions. 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.
Varias especializaciones para tipos de caracteres comunes están disponibles:
Original:
Several specializations for common character types are provided:
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.
Defined in header
<regex> | |
Tipo
Original: Type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
regex
|
basic_regex<char> |
wregex
|
basic_regex<wchar_t> |
[editar] Tipos de miembros
Miembro de tipo
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
value_type
|
CharT |
traits_type
|
Traits |
string_type
|
Traits::string_type |
locale_type
|
Traits::locale_type |
flag_type
|
std::regex_constants::syntax_option_type |
[editar] Las funciones miembro
constructs the regex object (miembro público función) | |
destructs el objeto regex Original: destructs the regex object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (miembro público función) | |
asigna el contenido 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. (miembro público función) | |
asigna el contenido 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. (miembro público función) | |
Original: Observers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
devuelve el número de marcado sub-expresiones dentro de la expresión regular Original: returns the number of marked sub-expressions within 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. (miembro público función) | |
returns the syntax flags (miembro público función) | |
Original: Locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
obtener información de configuración regional Original: get locale information The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (miembro público función) | |
establecer la información de configuración regional Original: set locale information The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (miembro público función) | |
Original: Modifiers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
intercambia los contenidos Original: swaps the contents The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (miembro público función) | |
Original: Constants The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Valor
Original: Value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Effect(s) |
icase | ignora caso la coincidencia de caracteres
Original: ignores case when matching characters The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
nosubs | no almacena expresión sub-partidas
Original: does not store sub-expression matches The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
optimize | más rápido coincidencia, la construcción más lento
Original: faster matching, slower construction The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
collate | hace expresiones de rango sensibles al entorno local
Original: makes range expressions locale-sensitive The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
ECMAScript | utiliza un ECMA-262 (Perl 5) sintaxis
Original: uses an ECMA-262 (Perl 5) syntax The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
basic | utiliza una sintaxis POSIX básico de expresiones regulares
Original: uses a POSIX basic regular expression syntax The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
extended | utiliza una sintaxis POSIX extendido de expresiones regulares
Original: uses a POSIX extended regular expression syntax The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
awk | utiliza un' awk compatible con la sintaxis
Original: uses an awk-compatible syntax The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
grep | utiliza un grep' sintaxis compatible
Original: uses a grep-compatible syntax The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
egrep | utiliza un grep extendidas compatible con la sintaxis
Original: uses an extended grep-compatible syntax The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[editar] Terceros funciones
(C++11) |
el algoritmo se especializa std::swap Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) |