class StubCollator extends Collator
deprecated
since version 2.3, to be removed in 3.0. Use {@link \Symfony\Component\Intl\Collator\Collator} instead.
Alias of {@link \Symfony\Component\Intl\Collator\Collator}.
Constants
FRENCH_COLLATION | |
ALTERNATE_HANDLING | |
CASE_FIRST | |
CASE_LEVEL | |
NORMALIZATION_MODE | |
STRENGTH | |
HIRAGANA_QUATERNARY_MODE | |
NUMERIC_COLLATION | |
DEFAULT_VALUE | |
PRIMARY | |
SECONDARY | |
TERTIARY | |
DEFAULT_STRENGTH | |
QUATERNARY | |
IDENTICAL | |
OFF | |
ON | |
SHIFTED | |
NON_IGNORABLE | |
LOWER_FIRST | |
UPPER_FIRST | |
SORT_REGULAR | |
SORT_NUMERIC | |
SORT_STRING |
Methods
__construct(string $locale) Constructor. | from Collator | |
static Collator | create(string $locale) Static constructor. | from Collator |
bool | asort(array $array, int $sortFlag = self::SORT_REGULAR) Sort array maintaining index association. | from Collator |
bool|int | compare(string $str1, string $str2) Not supported. Compare two Unicode strings. | from Collator |
bool|int | getAttribute(int $attr) Not supported. Get a value of an integer collator attribute. | from Collator |
int | getErrorCode() Returns collator's last error code. Always returns the UZEROERROR class constant value. | from Collator |
string | getErrorMessage() Returns collator's last error message. Always returns the UZEROERROR_MESSAGE class constant value. | from Collator |
string | getLocale(int $type = Locale::ACTUAL_LOCALE) Returns the collator's locale. | from Collator |
string | getSortKey(string $string) Not supported. Get sorting key for a string. | from Collator |
bool|int | getStrength() Not supported. Get current collator's strength. | from Collator |
bool | setAttribute(int $attr, int $val) Not supported. Set a collator's attribute. | from Collator |
bool | setStrength(int $strength) Not supported. Set the collator's strength. | from Collator |
bool | sortWithSortKeys(array $arr) Not supported. Sort array using specified collator and sort keys. | from Collator |
bool | sort(array $arr, int $sortFlag = self::SORT_REGULAR) Not supported. Sort array using specified collator. | from Collator |
Details
__construct(string $locale)
Constructor.
static Collator create(string $locale)
Static constructor.
bool asort(array $array, int $sortFlag = self::SORT_REGULAR)
Sort array maintaining index association.
bool|int compare(string $str1, string $str2)
Not supported. Compare two Unicode strings.
bool|int getAttribute(int $attr)
Not supported. Get a value of an integer collator attribute.
int getErrorCode()
Returns collator's last error code. Always returns the UZEROERROR class constant value.
string getErrorMessage()
Returns collator's last error message. Always returns the UZEROERROR_MESSAGE class constant value.
string getLocale(int $type = Locale::ACTUAL_LOCALE)
Returns the collator's locale.
string getSortKey(string $string)
Not supported. Get sorting key for a string.
bool|int getStrength()
Not supported. Get current collator's strength.
bool setAttribute(int $attr, int $val)
Not supported. Set a collator's attribute.
bool setStrength(int $strength)
Not supported. Set the collator's strength.
bool sortWithSortKeys(array $arr)
Not supported. Sort array using specified collator and sort keys.
bool sort(array $arr, int $sortFlag = self::SORT_REGULAR)
Not supported. Sort array using specified collator.
Please login to continue.