std::strcoll
De cppreference.com
<metanoindex/>
<tbody> </tbody>| Definido no cabeçalho <cstring>
|
||
int strcoll( const char* lhs, const char* rhs ); |
||
Compara duas seqüências de terminação nula de bytes de acordo com o local atual como definido pela categoria LC_COLLATE.
Original:
Compares two null-terminated byte strings according to the current locale as defined by the LC_COLLATE category.
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.
Parâmetros
| lhs, rhs | - | ponteiros para as cordas de terminação nula de bytes para comparar
Original: pointers to the null-terminated byte strings to compare The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Valor de retorno
Valor negativo se
lhs é menos (precede) rhs.Original:
Negative value if
lhs is less than (precedes) rhs.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.
0 se lhs é igual rhs.Original:
0 if lhs is equal to rhs.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.
Valor positivo se
lhs é maior (segue) rhs.Original:
Positive value if
lhs is greater than (follows) rhs.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.
Notas
Ordem de comparação é tipicamente comparação de maiúsculas e minúsculas lexicográfica de acordo com o alfabeto local, mas em algumas localidades, grupos de personagens comparar unidades de agrupamento como individuais. Por exemplo, "ch" em checo segue "h" e precede "i", e "ng" em galês segue "g" e precede "h".
Original:
Collation order is typically lexicographic case-insensitive comparison according to the locale's alphabet, but in some locales, groups of characters compare as single collation units. For example, "ch" in Czech follows "h" and precedes "i", and "ng" in Welsh follows "g" and precedes "h".
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.
Exemplo
| Esta seção está incompleta Motivo: sem exemplo |
