php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
Collator Class Reference

Public Member Functions

 __construct (string $locale)
 
 compare (string $string1, string $string2)
 
 sort (array &$array, int $flags=Collator::SORT_REGULAR)
 
 sortWithSortKeys (array &$array)
 
 asort (array &$array, int $flags=Collator::SORT_REGULAR)
 
 getAttribute (int $attribute)
 
 setAttribute (int $attribute, int $value)
 
 getStrength ()
 
 setStrength (int $strength)
 
 getLocale (int $type)
 
 getErrorCode ()
 
 getErrorMessage ()
 
 getSortKey (string $string)
 

Static Public Member Functions

static create (string $locale)
 

Data Fields

const int DEFAULT_VALUE = UNKNOWN
 
const int PRIMARY = UNKNOWN
 
const int SECONDARY = UNKNOWN
 
const int TERTIARY = UNKNOWN
 
const int DEFAULT_STRENGTH = UNKNOWN
 
const int QUATERNARY = UNKNOWN
 
const int IDENTICAL = UNKNOWN
 
const int OFF = UNKNOWN
 
const int ON = UNKNOWN
 
const int SHIFTED = UNKNOWN
 
const int NON_IGNORABLE = UNKNOWN
 
const int LOWER_FIRST = UNKNOWN
 
const int UPPER_FIRST = UNKNOWN
 
const int FRENCH_COLLATION = UNKNOWN
 
const int ALTERNATE_HANDLING = UNKNOWN
 
const int CASE_FIRST = UNKNOWN
 
const int CASE_LEVEL = UNKNOWN
 
const int NORMALIZATION_MODE = UNKNOWN
 
const int STRENGTH = UNKNOWN
 
const int HIRAGANA_QUATERNARY_MODE = UNKNOWN
 
const int NUMERIC_COLLATION = UNKNOWN
 
const int SORT_REGULAR = UNKNOWN
 
const int SORT_STRING = UNKNOWN
 
const int SORT_NUMERIC = UNKNOWN
 

Detailed Description

@not-serializable

Definition at line 17 of file collator.stub.php.

Constructor & Destructor Documentation

◆ __construct()

Collator::__construct ( string $locale)

Definition at line 78 of file collator.stub.php.

Member Function Documentation

◆ asort()

Collator::asort ( array & $array,
int $flags = Collator::SORT_REGULAR )

@tentative-return-type @alias collator_asort

Definition at line 108 of file collator.stub.php.

◆ compare()

Collator::compare ( string $string1,
string $string2 )

@tentative-return-type @alias collator_compare

Definition at line 90 of file collator.stub.php.

◆ create()

static Collator::create ( string $locale)
static

@tentative-return-type @alias collator_create

Definition at line 84 of file collator.stub.php.

◆ getAttribute()

Collator::getAttribute ( int $attribute)

@tentative-return-type @alias collator_get_attribute

Definition at line 114 of file collator.stub.php.

◆ getErrorCode()

Collator::getErrorCode ( )

@tentative-return-type @alias collator_get_error_code

Definition at line 144 of file collator.stub.php.

◆ getErrorMessage()

Collator::getErrorMessage ( )

@tentative-return-type @alias collator_get_error_message

Definition at line 150 of file collator.stub.php.

◆ getLocale()

Collator::getLocale ( int $type)

@tentative-return-type @alias collator_get_locale

Definition at line 138 of file collator.stub.php.

◆ getSortKey()

Collator::getSortKey ( string $string)

@tentative-return-type @alias collator_get_sort_key

Definition at line 156 of file collator.stub.php.

◆ getStrength()

Collator::getStrength ( )

@tentative-return-type @alias collator_get_strength

Definition at line 126 of file collator.stub.php.

◆ setAttribute()

Collator::setAttribute ( int $attribute,
int $value )

@tentative-return-type @alias collator_set_attribute

Definition at line 120 of file collator.stub.php.

◆ setStrength()

Collator::setStrength ( int $strength)

@tentative-return-type @alias collator_set_strength

Definition at line 132 of file collator.stub.php.

◆ sort()

Collator::sort ( array & $array,
int $flags = Collator::SORT_REGULAR )

@tentative-return-type @alias collator_sort

Definition at line 96 of file collator.stub.php.

◆ sortWithSortKeys()

Collator::sortWithSortKeys ( array & $array)

@tentative-return-type @alias collator_sort_with_sort_keys

Definition at line 102 of file collator.stub.php.

Field Documentation

◆ ALTERNATE_HANDLING

const int Collator::ALTERNATE_HANDLING = UNKNOWN

@cvalue UCOL_ALTERNATE_HANDLING

Definition at line 55 of file collator.stub.php.

◆ CASE_FIRST

const int Collator::CASE_FIRST = UNKNOWN

@cvalue UCOL_CASE_FIRST

Definition at line 57 of file collator.stub.php.

◆ CASE_LEVEL

const int Collator::CASE_LEVEL = UNKNOWN

@cvalue UCOL_CASE_LEVEL

Definition at line 59 of file collator.stub.php.

◆ DEFAULT_STRENGTH

const int Collator::DEFAULT_STRENGTH = UNKNOWN

@cvalue UCOL_DEFAULT_STRENGTH

Definition at line 29 of file collator.stub.php.

◆ DEFAULT_VALUE

const int Collator::DEFAULT_VALUE = UNKNOWN

@cvalue UCOL_DEFAULT

Definition at line 20 of file collator.stub.php.

◆ FRENCH_COLLATION

const int Collator::FRENCH_COLLATION = UNKNOWN

@cvalue UCOL_FRENCH_COLLATION

Definition at line 53 of file collator.stub.php.

◆ HIRAGANA_QUATERNARY_MODE

const int Collator::HIRAGANA_QUATERNARY_MODE = UNKNOWN

@cvalue UCOL_HIRAGANA_QUATERNARY_MODE

Definition at line 65 of file collator.stub.php.

◆ IDENTICAL

const int Collator::IDENTICAL = UNKNOWN

@cvalue UCOL_IDENTICAL

Definition at line 33 of file collator.stub.php.

◆ LOWER_FIRST

const int Collator::LOWER_FIRST = UNKNOWN

@cvalue UCOL_LOWER_FIRST

Definition at line 46 of file collator.stub.php.

◆ NON_IGNORABLE

const int Collator::NON_IGNORABLE = UNKNOWN

@cvalue UCOL_NON_IGNORABLE

Definition at line 43 of file collator.stub.php.

◆ NORMALIZATION_MODE

const int Collator::NORMALIZATION_MODE = UNKNOWN

@cvalue UCOL_NORMALIZATION_MODE

Definition at line 61 of file collator.stub.php.

◆ NUMERIC_COLLATION

const int Collator::NUMERIC_COLLATION = UNKNOWN

@cvalue UCOL_NUMERIC_COLLATION

Definition at line 67 of file collator.stub.php.

◆ OFF

const int Collator::OFF = UNKNOWN

@cvalue UCOL_OFF

Definition at line 36 of file collator.stub.php.

◆ ON

const int Collator::ON = UNKNOWN

@cvalue UCOL_ON

Definition at line 38 of file collator.stub.php.

◆ PRIMARY

const int Collator::PRIMARY = UNKNOWN

@cvalue UCOL_PRIMARY

Definition at line 23 of file collator.stub.php.

◆ QUATERNARY

const int Collator::QUATERNARY = UNKNOWN

@cvalue UCOL_QUATERNARY

Definition at line 31 of file collator.stub.php.

◆ SECONDARY

const int Collator::SECONDARY = UNKNOWN

@cvalue UCOL_SECONDARY

Definition at line 25 of file collator.stub.php.

◆ SHIFTED

const int Collator::SHIFTED = UNKNOWN

@cvalue UCOL_SHIFTED

Definition at line 41 of file collator.stub.php.

◆ SORT_NUMERIC

const int Collator::SORT_NUMERIC = UNKNOWN

@cvalue COLLATOR_SORT_NUMERIC

Definition at line 76 of file collator.stub.php.

◆ SORT_REGULAR

const int Collator::SORT_REGULAR = UNKNOWN

@cvalue COLLATOR_SORT_REGULAR

Definition at line 72 of file collator.stub.php.

◆ SORT_STRING

const int Collator::SORT_STRING = UNKNOWN

@cvalue COLLATOR_SORT_STRING

Definition at line 74 of file collator.stub.php.

◆ STRENGTH

const int Collator::STRENGTH = UNKNOWN

@cvalue UCOL_STRENGTH

Definition at line 63 of file collator.stub.php.

◆ TERTIARY

const int Collator::TERTIARY = UNKNOWN

@cvalue UCOL_TERTIARY

Definition at line 27 of file collator.stub.php.

◆ UPPER_FIRST

const int Collator::UPPER_FIRST = UNKNOWN

@cvalue UCOL_UPPER_FIRST

Definition at line 48 of file collator.stub.php.


The documentation for this class was generated from the following file: