std::sub_match::compare
Da 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. |
int compare(const sub_match& m )const; | (1) | (desde C++11) |
int compare(const string_type& s )const; | (2) | (desde C++11) |
int compare(const value_type* c )const; | (3) | (desde C++11) |
Compara dois sub_match diretamente comparando suas sequências de caracteres subjacentes. Equivalente a str().compare(m.str())
2) 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.
You can help to correct and verify the translation. Click here for instructions.
Compara um sub_match com um std :: basic_string. Esta função é implementada da seguinte maneira. Equivalente a str().compare(s)
3) 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.
You can help to correct and verify the translation. Click here for instructions.
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.
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.
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.
You can help to correct and verify the translation. Click here for instructions.
[editar]Exemplo
Esta seção está incompleta Motivo: sem 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) |