Espaços nominais
Variantes
Acções

std::sub_match::compare

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.
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)
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)
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.
regex_error(C++11)
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.
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
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.
operator==
operator!=
operator<<
operator<=
operator>
operator>=
(C++11)
operator<<(C++11)
 
int compare( const sub_match& m ) const;
(1) (a partir do C++ 11)
int compare( const string_type& s ) const;
(2) (a partir do C++ 11)
int compare( const value_type* c ) const;
(3) (a partir do C++ 11)
1)
Compara dois sub_match diretamente comparando suas sequências de caracteres subjacentes. Equivalente a str().compare(m.str())
Original:
Compares two sub_match directly by comparing their underlying character sequences. Equivalent to str().compare(m.str())
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Compara um sub_match com um std :: basic_string. Esta função é implementada da seguinte maneira. Equivalente a str().compare(s)
Original:
Compares a sub_match with a std::basic_string. This function is implemented as follows. Equivalent to str().compare(s)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
Compara um sub_match com uma seqüência terminada em nulo do tipo de caráter subjacente apontado por s. Equivalente a str().compare(c)
Original:
Compares a sub_match with a null-terminated sequence of the underlying character type pointed to by s. Equivalent to str().compare(c)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Esta função é raramente usado diretamente pelo código do aplicativo. Em vez disso, um dos operadores não-membros de comparação são usados ​​.
Original:
This function is infrequently used directly by application code. Instead, one of the non-member comparison operators are used.
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

m -
um apontador para outra sub_match
Original:
a pointer to another sub_match
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
s -
um ponteiro para uma string para comparar
Original:
a pointer to a string to compare to
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
c -
um ponteiro para uma seqüência de caracteres NULL-Terminated do value_type subjacente para comparar
Original:
a pointer to a null-terminated character sequence of the underlying value_type to compare to
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

Um valor menor que zero se esta sub_match é menos do que a seqüência de outro personagem, zero se as duas sequências de caracteres underlyinging são iguais, maior que zero se esta sub_match é maior do que a sequência de caracteres de outros.
Original:
A value less than zero if this sub_match is less than the other character sequence, zero if the both underlyinging character sequences are equal, greater than zero if this sub_match is greater than the other 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

[editar] Veja também

compara duas strings
Original:
compares two strings
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(of std::basic_string função pública membro) [edit]