Namespace
Varianti

std::collate::compare, std::collate::do_compare

Da cppreference.com.
< cpp‎ | locale‎ | collate

 
 
Localizzazioni libreria
Impostazioni internazionali e sfaccettature
Original:
Locales and facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
locale
Carattere classificazione
Original:
Character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Conversioni
Original:
Conversions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Facet categoria classi di base
Original:
Facet category base classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Facet categorie
Original:
Facet categories
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Locale specifici aspetti
Original:
Locale-specific facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Codice di conversione sfaccettature
Original:
Code conversion facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
codecvt_utf8(C++11)
codecvt_utf16(C++11)
C locale
Original:
C locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
std::collate
Membri funzioni
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
collate::collate
collate::~collate
collate::compare
collate::do_compare
collate::transform
collate::do_transform
collate::hash
collate::do_hash
 
Defined in header <locale>
public:

int compare( const CharT* low1, const CharT* high1,

             const CharT* low2, const CharT* high2 ) const;
(1)
protected:

int do_compare( const CharT* low1, const CharT* high1,

                const CharT* low2, const CharT* high2 ) const;
(2)
1)
funzione membro pubblica, chiama il virtuale protetto do_compare funzione membro della classe più derivata.
Original:
public member function, calls the protected virtual member function do_compare of the most derived class.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Consente di confrontare la sequenza di caratteri [low1, high1) al [low2, high2) sequenza di caratteri, utilizzando le regole di confronto di questo locale, e restituisce 1 se la prima stringa segue la seconda, -1 se la prima stringa precede la seconda, pari a zero se le due stringhe sono equivalenti.
Original:
Compares the character sequence [low1, high1) to the character sequence [low2, high2), using this locale's collation rules, and returns 1 if the first string follows the second, -1 if the first string precedes the second, zero if the two strings are equivalent.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Indice

[modifica] Parametri

low1 -
puntatore al primo carattere della prima stringa
Original:
pointer to the first character of the first string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
high1 -
un passato il puntatore fine per la prima stringa
Original:
one past the end pointer for the first string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
low2 -
puntatore al primo carattere della seconda stringa
Original:
pointer to the first character of the second string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
high2 -
un passato il puntatore fine per la seconda stringa
Original:
one past the end pointer for the second string
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

1 se la prima stringa è maggiore della seconda (cioè, segue la seconda nell'ordine di confronto), -1 se la prima stringa è minore della seconda (precede la seconda nell'ordine di confronto), zero se le due stringhe sono equivalente.
Original:
1 if the first string is greater than the second (that is, follows the second in the collation order), -1 if the first string is less than the second (precedes the second in the collation order), zero if the two strings are equivalent.
The text has been machine-translated via Google Translate.
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.

[modifica] Esempio

[modifica] Vedi anche

confronta due stringhe in accordo con i parametri locali
Original:
compares two 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) [edit]
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) [edit]
lexicographically compares two strings using this locale's collate facet
(membro pubblico of std::locale funzione) [edit]