std::strcoll
De cppreference.com
| Definido en el archivo de encabezado <cstring>
|
||
int strcoll( const char* lhs, const char* rhs );
|
||
Compara dos cadenas terminadas en null byte de acuerdo a la localidad actual tal como se define por la categoría 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 | - | punteros a las cadenas de bytes de terminación nula 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 si
lhs es 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 lhs si es igual a' 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 si
lhs es superior (sigue) 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
Para la colación es típicamente lexicográfica entre mayúsculas y minúsculas comparación de acuerdo con la configuración regional del alfabeto, pero en algunos lugares, grupos de caracteres comparar unidades de intercalación como individuales. Por ejemplo, "ch" en checo sigue "h" y precede a "i" y "ng" en galés sigue "g" y precede a "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.
Ejemplo
| Esta sección está incompleta Razón: sin ejemplo |
