Espaços nominais
Variantes
Acções

std::sub_match::operator string_type, std::sub_match::str

Da cppreference.com
< cpp‎ | regex‎ | sub match

 
 
Biblioteca de expressões regulares
Classes
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(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.
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.
Exceções
Original:
Exceptions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Características
Original:
Traits
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
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.
(C++11)
 
std::sub_match
Funções de membro
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)
Não-membros funções
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.
(C++11)
 
operator string_type() const;
(1)
string_type str() const;
(2)
1)
Implicitamente converte para um objeto do tipo std::basic_string subjacente.
Original:
Implicitly converts to an object of the underlying std::basic_string type.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Converte explicitamente a um objeto do tipo std::basic_string subjacente.
Original:
Explicitly converts to an object of the underlying std::basic_string type.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Índice

[editar] Parâmetros

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

[editar] Valor de retorno

Retorna a seqüência de caracteres combinados como um objeto do tipo std::basic_string subjacente. Se o membro matched é falso então a string vazia é retornada.
Original:
Returns the matched character sequence as an object of the underlying std::basic_string type. If the matched member is false then the empty string is returned.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Complexidade

Linear no comprimento da seqüência de caracteres de base.
Original:
Linear in the length of the underlying 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] Exemplo

std::ssub_match sm;
std::string s = sm;  // implicit conversion
std::cout << s.length() << '\n';

Saída:

​0​