名前空間
変種
操作

std::sub_match::compare

提供: cppreference.com
< cpp‎ | regex‎ | sub match

 
 
正規表現ライブラリ
クラス
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)
アルゴリズム
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)
イテレータ
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)
例外
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)
形質
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)
定数
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
メンバ関数
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)
非メンバ関数
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) (C++11およびそれ以降)
int compare( const string_type& s ) const;
(2) (C++11およびそれ以降)
int compare( const value_type* c ) const;
(3) (C++11およびそれ以降)
1)
それらの基礎となる文字配列を比較することによって直接2sub_matchを比較します。 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)
のstd :: basic_stringのsub_matchとを比較します。この機能は、次のように実装されています。 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)
sub_matchが指す基礎となる文字型のNULL終端配列でsを比較します。 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.
この関数は、まれに、アプリケーションコードから直接使用されます。代わりに、非メンバ比較演算子のいずれかが使用されている.
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.

目次

[編集] パラメータ

m -
別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 -
と比較する文字列へのポインタ
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 -
と比較する基礎value_typeのnullで終わる文字配列へのポインタ
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.

[編集] 値を返します

ゼロ未満の値underlyinging文字配列の両方が等しい場合、このsub_match他の文字配列よりも少ない'、ゼロの場合は、ゼロより大きいこのsub_matchが大きい場合は他の文字配列よりも.
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.

[編集]

[編集] も参照してください

2つの文字列を比較します
(パブリックメンバ関数of std::basic_string) [edit]