Espacios de nombres
Variantes
Acciones

std::sub_match::compare

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

 
 
Expresiones biblioteca Regular
Clases
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)
Algoritmos
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)
Los iteradores
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)
Excepciones
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)
Rasgos
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
Las funciones miembro
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)
Terceros funciones
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) (desde C++11)
int compare( const string_type& s ) const;
(2) (desde C++11)
int compare( const value_type* c ) const;
(3) (desde C++11)
1)
Compara dos sub_match directamente mediante la comparación de sus secuencias de caracteres subyacentes. 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)
Compara un sub_match con un std :: basic_string. Esta función se implementa como sigue. 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)
Compara un sub_match con una secuencia terminada en cero de los tipos de caracteres subyacente apunta 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.
Esta función es poco utilizada directamente por el código de la aplicación. En cambio, uno de los operadores de comparación no miembros se utilizan .
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.

Contenido

[editar] Parámetros

m -
un puntero a otra 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 puntero a una cadena a comparar
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 puntero a una secuencia de caracteres terminada en nulo de la value_type subyacente a comparar
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.

[editar] Valor de retorno

Un valor menor que cero si este sub_match' es menor que la secuencia de caracteres de otro, cero si las secuencias de ambos underlyinging caracteres son iguales, mayor que cero si este sub_match es mayor' de la secuencia de caracteres de otra .
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.

[editar] Ejemplo

[editar] Ver también

compara dos cadenas
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.

(miembro público of std::basic_string función) [edit]