Namespace
Varianti

std::sub_match::compare

Da cppreference.com.
< cpp‎ | regex‎ | sub match

 
 
Espressioni regolari libreria
Classi
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_regex(C++11)
sub_match(C++11)
match_results(C++11)
Algoritmi
Original:
Algorithms
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
regex_match(C++11)
regex_search(C++11)
regex_replace(C++11)
Iteratori
Original:
Iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
regex_iterator(C++11)
regex_token_iterator(C++11)
Eccezioni
Original:
Exceptions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
regex_error(C++11)
Tratti
Original:
Traits
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
regex_traits(C++11)
Costanti
Original:
Constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
syntax_option_type(C++11)
match_flag_type(C++11)
error_type(C++11)
 
std::sub_match
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.
sub_match::sub_match(C++11)
sub_match::length(C++11)
sub_match::str
sub_match::operator string_type
(C++11)
sub_match::compare(C++11)
Non membri funzioni
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
operator==
operator!=
operator<<
operator<=
operator>
operator>=
(C++11)
operator<<(C++11)
 
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)
1)
Confronta due sub_match direttamente confrontando le loro sequenze di caratteri sottostanti. Equivalente a str().compare(m.str())
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.
2)
Confronta una sub_match con una std :: basic_string. Questa funzione è implementata come segue. Equivalente a str().compare(s)
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.
3)
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.
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.

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.

[modifica] Esempio

[modifica] Vedi anche

confronta due stringhe
Original:
compares two strings
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(membro pubblico of std::basic_string funzione) [edit]