std::sub_match::compare
De cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
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) |
Compare deux sub_match directement en comparant leurs séquences de caractères sous-jacents. Equivalent à 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.
Compare une sub_match avec un std :: basic_string. Cette fonction est implémentée comme suit. Equivalent à 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.
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.
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.
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.
You can help to correct and verify the translation. Click here for instructions.
[modifier] Exemple
This section is incomplete Reason: no example |
[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 )
|