std::strcoll
Da cppreference.com.
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Elemento definito nell'header <cstring>
|
||
int strcoll( const char* lhs, const char* rhs ); |
||
Confronta due stringhe con terminazione null byte in base alla localizzazione corrente come definito dalla 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.
Indice |
[modifica] Parametri
lhs, rhs | - | puntatori alle stringhe con terminazione null byte da confrontare
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. |
[modifica] Valore di ritorno
Valore negativo se
lhs
è meno (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
è pari 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.
Valore positivo se
lhs
è superiore (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.
[modifica] Note
Ordine di collazione è tipicamente lessicografico case-insensitive confronto in base all'alfabeto il locale, ma in alcuni locali, gruppi di caratteri confrontare unità di confronto come singole. Ad esempio, "ch" in lingua ceca segue "h" e precede "i" e "ng" in gallese 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.
[modifica] Esempio
This section is incomplete Reason: no example |
[modifica] Vedi anche
confronta due stringhe larghe in accordo con i parametri locali Original: compares two wide strings in accordance to the current locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
[virtuale] |
confronta due stringhe utilizzando le regole di confronto di questa faccetta Original: compares two strings using this facet's collation rules The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuale protetto funzione of std::collate membro)
|
trasformare una stringa in modo che strcmp produrrebbe lo stesso risultato strcoll Original: transform a string so that strcmp would produce the same result as strcoll The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
C documentation for strcoll
|