Espaces de noms
Variantes
Affichages
Actions

std::sub_match::compare

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

 
 
Regular expressions bibliothèque
Classes
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)
Algorithmes
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)
Les itérateurs
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)
Exceptions
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)
Traits
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)
Constantes
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
Les fonctions membres
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)
Tiers fonctions
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) (depuis C++11)
int compare( const string_type& s ) const;
(2) (depuis C++11)
int compare( const value_type* c ) const;
(3) (depuis C++11)
1)
Compare deux sub_match directement en comparant leurs séquences de caractères sous-jacents. Equivalent à 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)
Compare une sub_match avec un std :: basic_string. Cette fonction est implémentée comme suit. Equivalent à 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)
Compare une sub_match avec une séquence terminée par NULL de type caractère sous-jacent pointé par s. Equivalent à 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.
Cette fonction est rarement utilisée directement par le code d'application. Au lieu de cela, l'un des opérateurs de comparaison non-membres sont utilisés .
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.

Sommaire

[modifier] Paramètres

m -
un pointeur vers une autre 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 pointeur vers une chaîne de caractères de comparaison
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 pointeur vers une séquence de caractères à zéro terminal de la value_type sous-jacente à comparer
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.

[modifier] Retourne la valeur

Une valeur inférieure à zéro si ce n'est sub_match moins de la séquence de caractères autre, zéro si les deux séquences de caractères underlyinging sont égaux, supérieur à zéro si ce n'est sub_match' plus grande que la séquence de caractères autre .
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.

[modifier] Exemple

[modifier] Voir aussi

compare deux chaînes
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.

(fonction membre publique de std::basic_string) [edit]