|
Collator クラスはじめに各ロケール固有の並び順を考慮した文字列の比較機能を提供します。 クラス概要
Collator
/* 定数 */
public
const
int
Collator::DEFAULT_VALUE;
public
const
int
Collator::PRIMARY;
public
const
int
Collator::SECONDARY;
public
const
int
Collator::TERTIARY;
public
const
int
Collator::DEFAULT_STRENGTH;
public
const
int
Collator::QUATERNARY;
public
const
int
Collator::IDENTICAL;
public
const
int
Collator::OFF;
public
const
int
Collator::ON;
public
const
int
Collator::SHIFTED;
public
const
int
Collator::NON_IGNORABLE;
public
const
int
Collator::LOWER_FIRST;
public
const
int
Collator::UPPER_FIRST;
public
const
int
Collator::FRENCH_COLLATION;
public
const
int
Collator::ALTERNATE_HANDLING;
public
const
int
Collator::CASE_FIRST;
public
const
int
Collator::CASE_LEVEL;
public
const
int
Collator::NORMALIZATION_MODE;
public
const
int
Collator::STRENGTH;
public
const
int
Collator::HIRAGANA_QUATERNARY_MODE;
public
const
int
Collator::NUMERIC_COLLATION;
public
const
int
Collator::SORT_REGULAR;
public
const
int
Collator::SORT_STRING;
public
const
int
Collator::SORT_NUMERIC;
/* メソッド */
public __construct(string
$locale )public bool asort(array
&$array , int $flags = Collator::SORT_REGULAR)public intfalse compare(string
$string1 , string $string2 )public static Collatornull create(string
$locale )public intfalse getAttribute(int
$attribute )public intfalse getErrorCode()
public stringfalse getErrorMessage()
public stringfalse getLocale(int
$type )public stringfalse getSortKey(string
$string )public int getStrength()
public bool setAttribute(int
$attribute , int $value )public bool setStrength(int
$strength )public bool sort(array
&$array , int $flags = Collator::SORT_REGULAR)public bool sortWithSortKeys(array
&$array )定義済み定数
|