- 
	Comparison methods
これらの定数はComp関数によって使用され、毎回sortメソッドが必要になります。 たとえば、Arrayのソートメソッド、Collectionの作成時、Stringクラスのメソッドなどです。
| gb.Binary | Binary comparison (This is the default). | 
| gb.IgnoreCase | ASCII case insensitive comparison. | 
| gb.Language | Comparison according to the current language. | 
| gb.Language + gb.IgnoreCase | Case insensitive comparison according to the current language. | 
| gb.Natural | Natural comparison according to the current language. | 
| gb.Natural + gb.IgnoreCase | Case insensitive natural comparison according to the current language. | 
| gb.Like | The second string is assumed to be a LIKE pattern. If the first string matches it, then equality is returned. Otherwise a case insensitive comparison is done. | 
| gb.Match | Since 3.11The second string is assumed to be a gb.pcre MATCH pattern. If the first string matches it, then equality is returned. Otherwise a case insensitive comparison is done. | 
|  | 現在の言語(gb.Language)に従って文字列を比較することは、glibcライブラリの内部照合サポートに依存していることに注意してください。 したがって、特定の言語を使用したソートの結果はわかりません。 あなたは自分でチェックしなければなりません。 少なくとも西ヨーロッパの言語では、スペースはglibc照合ルーチンによって無視されるようです。 | 

コメント
最新を表示する
NG表示方式
NGID一覧