名前空間
変種
操作

std::collate::compare, std::collate::do_compare

提供: cppreference.com
< cpp‎ | locale‎ | collate

 
 
ローカライゼーションライブラリ
ロケールおよびファセット
Original:
Locales and facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
locale
文字分類
Original:
Character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
変換
Original:
Conversions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ファセットカテゴリの基底クラスです
Original:
Facet category base classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ファセットカテゴリ
Original:
Facet categories
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ロケール固有のファセット
Original:
Locale-specific facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
コー​​ド変換ファセット
Original:
Code conversion facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
codecvt_utf8(C++11)
codecvt_utf16(C++11)
Cロケール
Original:
C locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
std::collate
メンバ関数
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.
collate::collate
collate::~collate
collate::compare
collate::do_compare
collate::transform
collate::do_transform
collate::hash
collate::do_hash
 
Defined in header <locale>
public:

int compare( const CharT* low1, const CharT* high1,

             const CharT* low2, const CharT* high2 ) const;
(1)
protected:

int do_compare( const CharT* low1, const CharT* high1,

                const CharT* low2, const CharT* high2 ) const;
(2)
1)
パブリックメンバ関数、最派生クラスのプロテクト仮想メンバ関数を呼び出しdo_compare.
Original:
public member function, calls the protected virtual member function do_compare of the most derived class.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
このロケールの照合ルールを使用して、文字シーケンス[low1, high1)に文字シーケンス[low2, high2)を比較し、二つの文字列が等しい場合、最初の文字列がゼロ、第二に先行する場合、最初の文字列が-1、秒以下の場合は1を返し.
Original:
Compares the character sequence [low1, high1) to the character sequence [low2, high2), using this locale's collation rules, and returns 1 if the first string follows the second, -1 if the first string precedes the second, zero if the two strings are equivalent.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集] パラメータ

low1 -
最初の文字列の最初の文字へのポインタ
Original:
pointer to the first character of the first string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
high1 -
最初の文字列の終了ポインタ過去1
Original:
one past the end pointer for the first string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
low2 -
2番目の文字列の最初の文字へのポインタ
Original:
pointer to the first character of the second string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
high2 -
第二の文字列の末尾のポインタ過去1
Original:
one past the end pointer for the second string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 値を返します

1つの文字列がある場合、最初の文字列は秒(つまり、照合順序で2番目に従います)、最初の文字列が2番目の値より小さい場合-1(照合順序で2番目の前に)、ゼロより大きい場合同等の.
Original:
1 if the first string is greater than the second (that is, follows the second in the collation order), -1 if the first string is less than the second (precedes the second in the collation order), zero if the two strings are equivalent.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] ノート

照合順序は、通常、ロケールのアルファベットに基づいた辞書式の大文字と小文字を区別しない比較であるが、一部のロケールでは、文字のグループは、単一の照合単位として比較する。たとえば、チェコ語では "ch"は "h"をたどり、 "i"を先行し、 "NG"ウェールズ語で "g"をたどり、 "h"を先行.
Original:
Collation order is typically lexicographic case-insensitive comparison according to the locale's alphabet, but in some locales, groups of characters compare as single collation units. For example, "ch" in Czech follows "h" and precedes "i", and "ng" in Welsh follows "g" and precedes "h".
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集]

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

現在のロケールに応じた2つの文字列を比較する
Original:
compares two strings in accordance to the current locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
現在のロケールに基づいて、2つのワイド文字列を比較します
Original:
compares two wide strings in accordance to the current locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
lexicographically compares two strings using this locale's collate facet
(パブリックメンバ関数of std::locale) [edit]