|
The Collator classIntroductionProvides string comparison capability with support for appropriate locale-sensitive sort orderings. Class synopsis
Collator
/* Constants */
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;
/* Methods */
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 )Predefined Constants
|