std::sub_match::compare
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. |
int compare( const sub_match& m ) const; |
(1) | (dal C++11) |
int compare( const string_type& s ) const; |
(2) | (dal C++11) |
int compare( const value_type* c ) const; |
(3) | (dal C++11) |
Confronta due sub_match direttamente confrontando le loro sequenze di caratteri sottostanti. Equivalente a str().compare(m.str())
2) Original:
Compares two sub_match directly by comparing their underlying character sequences. Equivalent to str().compare(m.str())
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.
Confronta una sub_match con una std :: basic_string. Questa funzione è implementata come segue. Equivalente a str().compare(s)
3) Original:
Compares a sub_match with a std::basic_string. This function is implemented as follows. Equivalent to str().compare(s)
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.
Confronta una sub_match con terminazione null sequenza del tipo di carattere di fondo a cui punta
s
. Equivalente a str().compare(c)Original:
Compares a sub_match with a null-terminated sequence of the underlying character type pointed to by
s
. Equivalent to str().compare(c)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.
Questa funzione viene raramente utilizzato direttamente dal codice dell'applicazione. Invece, uno dei terzi operatori di confronto vengono utilizzati.
Original:
This function is infrequently used directly by application code. Instead, one of the non-member comparison operators are used.
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
m | - | un puntatore ad un altro sub_match
Original: a pointer to another sub_match The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
s | - | un puntatore a una stringa da confrontare
Original: a pointer to a string to compare to The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
c | - | un puntatore a una terminazione null sequenza di caratteri del value_type sottostante da confrontare
Original: a pointer to a null-terminated character sequence of the underlying value_type to compare to 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
Un valore minore di zero se questo sub_match' è inferiore alla sequenza di altro carattere, zero se le due sequenze di caratteri underlyinging sono uguali, maggiore di zero se questo è sub_match' maggiore rispetto alla sequenza di caratteri altra.
Original:
A value less than zero if this sub_match is less than the other character sequence, zero if the both underlyinging character sequences are equal, greater than zero if this sub_match is greater than the other character sequence.
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 (metodo pubblico) |