Espacios de nombres
Variantes
Acciones

std::match_results::format

De cppreference.com
< cpp‎ | regex‎ | match results

 
 
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::match_results
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.
match_results::match_results
match_results::~match_results
match_results::operator=
match_results::get_allocator
Estado
Original:
State
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
match_results::ready
Elemento acceso
Original:
Element access
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
match_results::size
match_results::max_size
match_results::empty
match_results::length
match_results::position
match_results::str
match_results::operator_at
match_results::prefix
match_results::suffix
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.
match_results::begin
match_results::cbegin
match_results::end
match_results::cend
Formato
Original:
Format
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
match_results::format
Modificadores
Original:
Modifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
match_results::swap
 
template< class OutputIt >

OutputIter format( OutputIt out,
                   const char_type* fmt_first, const char_type* fmt_last,
                   std::regex_constants::match_flag_type flags =

                       std::regex_constants::format_default ) const;
(1) (desde C++11)
template< class OutputIt, class ST, class SA >

OutputIter format( OutputIt out,
                   const basic_string<char_type,ST,SA>& fmt,
                   std::regex_constants::match_flag_type flags =

                       std::regex_constants::format_default ) const;
(2) (desde C++11)
template< class ST, class SA >

std::basic_string<char_type,ST,SA>
    format( const std::basic_string<char_type,ST,SA>& fmt,
            std::regex_constants::match_flag_type flags =

                std::regex_constants::format_default ) const;
(3) (desde C++11)
string_type format( const char_type* fmt_s,

                    std::regex_constants::match_flag_type flags =

                        std::regex_constants::format_default ) const;
(4) (desde C++11)
Copia el formato de secuencia de caracteres dada sustituyendo cada especificador de formato o secuencia de escape con cualquiera de los caracteres que representa o personajes dentro *this a la que se refiere. Las máscaras de bits especificado por flags determinar qué especificadores de formato y secuencias de escape son reconocidos .
Original:
Copies the given format character sequence replacing each format specifier or escape sequence with either the characters it represents or characters within *this to which it refers to. The bitmasks specified by flags determine which format specifiers and escape sequences are recognized.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
El comportamiento no está definido si ready() != true .
Original:
The behavior is undefined if ready() != true.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
La secuencia de caracteres de formato está definido por la gama [fmt_first, fmt_last). La secuencia de caracteres resultante se copia en out .
Original:
The format character sequence is defined by the range [fmt_first, fmt_last). The resulting character sequence is copied to out.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
La secuencia de caracteres de formato se define por los personajes de fmt. La secuencia de caracteres resultante se copia en out .
Original:
The format character sequence is defined by the characters in fmt. The resulting character sequence is copied to out.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3-4)
La secuencia de caracteres de formato está definido por los personajes de fmt y fmt_s respectivamente. La secuencia de caracteres resultante se copia en una cadena de nueva construcción, que se devuelve .
Original:
The format character sequence is defined by the characters in fmt and fmt_s respectively. The resulting character sequence is copied to a newly constructed string, which is returned.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Contenido

[editar] Parámetros

fmt_begin, fmt_end -
punteros a una serie de personajes que definen la secuencia de caracteres de formato
Original:
pointers to a range of characters defining the format character sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
fmt -
cadena que define la secuencia de caracteres de formato
Original:
string defining the format character sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
fmt_s -
puntero a una cadena de caracteres terminada en cero que define la secuencia de caracteres de formato
Original:
pointer to a null-terminated character string defining the format character sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
out -
iterador dónde copiar la secuencia de caracteres resultante
Original:
iterator where to copy the resulting character sequence to
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
flags -
Tipo de máscara de bits que especifica que los especificadores de formato y secuencias de escape son reconocidos
Original:
bitmask type specifying which format specifiers and escape sequences are recognized
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Type requirements
-
OutputIt must meet the requirements of OutputIterator.

[editar] Valor de retorno

1-2) out
3-4)
La cadena de nueva construcción que contiene la secuencia de caracteres resultante .
Original:
The newly constructed string containing resulting character sequence.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Excepciones

(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.

[editar] Ejemplo