std::strcoll - cppreference.com
De cppreference.com
<metanoindex/>
<tbody> </tbody>
| Definido no cabeçalho <cstring> |
||
|
|
||
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.
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. |
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.
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.
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.
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.
Exemplo
Veja também
compara duas seqüências de largura, de acordo com a localidade Original: compares two wide strings in accordance to the current locale The text has been machine-translated via Google Translate. (função) [edit] | |
[virtual] |
compara duas seqüências usando as regras esta faceta do agrupamento Original: compares two strings using this facet's collation rules The text has been machine-translated via Google Translate. (virtual protegido of std::collate função de membro) [edit]
|
transformar uma string para que strcmp produziria o mesmo resultado que strcoll Original: transform a string so that strcmp would produce the same result as strcoll The text has been machine-translated via Google Translate. (função) [edit] | |
Documentação C para strcoll | |