Espacios de nombres
Variantes
Acciones

std::sub_match

De cppreference.com
< cpp‎ | regex

 
 
Expresiones biblioteca Regular
Clases
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)
Algoritmos
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)
Los iteradores
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)
Excepciones
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)
Rasgos
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::sub_match
Las funciones miembro
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.
sub_match::sub_match(C++11)
sub_match::length(C++11)
sub_match::str
sub_match::operator string_type
(C++11)
sub_match::compare(C++11)
Terceros funciones
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.
operator==
operator!=
operator<<
operator<=
operator>
operator>=
(C++11)
operator<<(C++11)
 
Defined in header <regex>
template<

    class BidirIt

> class sub_match;
(desde C++11)
El sub_match plantilla de clase es utilizada por el motor de expresiones regulares para denotar secuencias de caracteres coincidentes por una marcada sub-expresiones .
Original:
The class template sub_match is used by the regular expression engine to denote sequences of characters matched by marked sub-expressions.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Un partido es un par [begin, end) dentro del rango meta coincide con la expresión regular, pero con funciones de observación adicionales para mejorar la claridad del código .
Original:
A match is a [begin, end) pair within the target range matched by the regular expression, but with additional observer functions to enhance code clarity.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Sólo el constructor por defecto es de acceso público. Las instancias de sub_match se construyen normalmente y se rellena como una parte de un contenedor std::match_results durante el procesamiento de uno de los algoritmos de expresiones regulares .
Original:
Only the default constructor is publicly accessible. Instances of sub_match are normally constructed and populated as a part of a std::match_results container during the processing of one of the regex algorithms.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Las funciones miembro definidas devolver los valores predeterminados a menos que el miembro matched es true .
Original:
The member functions return defined default values unless the matched member is true.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
sub_match hereda de std::pair<BidirIt, BidirIt>, aunque no puede ser tratado como un objeto std::pair porque las funciones de miembro como de intercambio y cesión no funciona como se esperaba .
Original:
sub_match inherits from std::pair<BidirIt, BidirIt>, although it cannot be treated as a std::pair object because member functions such as swap and assignment will not work as expected.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Contenido

[editar] Tipo de requisitos

-
BidirIt must meet the requirements of BidirectionalIterator.

[editar] Especializaciones

Varias especializaciones comunes para los tipos de caracteres de secuencia se disponía:
Original:
Several specializations for common character sequence 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.
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
csub_match sub_match<const char*>
wcsub_match sub_match<const wchar_t*>
ssub_match sub_match<std::string::const_iterator>
wssub_match sub_match<std::wstring::const_iterator>

[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
iterator BidirIt
value_type std::iterator_traits<BidirIt>::value_type
difference_type std::iterator_traits<BidirIt>::difference_type
string_type std::basic_string<value_type>

[editar] Objetos miembros

matched
Indica si este partido fue un éxito .
Original:
Indicates if this match was successful.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Inherited from std::pair

first
Inicio de la secuencia partido .
Original:
Start of the match sequence.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
second
One-past-the-final de la secuencia partido .
Original:
One-past-the-end of the match sequence.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Las funciones miembro

construye el objeto partido
Original:
constructs the match 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) [edit]
Los observadores
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 la longitud de la coincidencia (si la hay)
Original:
returns the length of the match (if any)
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) [edit]
se convierte en el tipo de cadena subyacente
Original:
converts to the underlying string type
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) [edit]
compara subsecuencia emparejado (si los hay)
Original:
compares matched subsequence (if any)
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) [edit]

[editar] Terceros funciones

lexicográficamente compara los valores en el recipiente
Original:
lexicographically compares the values in the container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]
Salidas de la subsecuencia carácter coincidente
Original:
outputs the matched character subsequence
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)

[editar] Ver también

recorre subcoincidencias expresiones regulares
Original:
iterates through regex submatches
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(clase de plantilla)