class StubCollator extends Collator
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 |
| Boolean |
asort(array $array, integer $sortFlag = self::SORT_REGULAR)
Sort array maintaining index association |
from Collator |
| Boolean|int |
compare(string $str1, string $str2)
Not supported. |
from Collator |
| Boolean|int |
getAttribute(int $attr)
Not supported. |
from Collator |
| int |
getErrorCode()
Returns collator's last error code. |
from Collator |
| string |
getErrorMessage()
Returns collator's last error message. |
from Collator |
| string |
getLocale(int $type = Locale::ACTUAL_LOCALE)
Returns the collator's locale |
from Collator |
| string |
getSortKey(string $string)
Not supported. |
from Collator |
| Boolean|int |
getStrength()
Not supported. |
from Collator |
| Boolean |
setAttribute(int $attr, int $val)
Not supported. |
from Collator |
| Boolean |
setStrength(int $strength)
Not supported. |
from Collator |
| Boolean |
sortWithSortKeys(array $arr)
Not supported. |
from Collator |
| Boolean |
sort(array $arr, int $sortFlag = self::SORT_REGULAR)
Not supported. |
from Collator |
Details
in Collator at line 77
public
__construct(string $locale)
Constructor
in Collator at line 93
static public Collator
create(string $locale)
Static constructor
in Collator at line 109
public Boolean
asort(array $array, integer $sortFlag = self::SORT_REGULAR)
Sort array maintaining index association
in Collator at line 137
public Boolean|int
compare(string $str1, string $str2)
Not supported.
Compare two Unicode strings
in Collator at line 153
public Boolean|int
getAttribute(int $attr)
Not supported.
Get a value of an integer collator attribute
in Collator at line 163
public int
getErrorCode()
Returns collator's last error code.
Always returns the UZEROERROR class constant value
in Collator at line 173
public string
getErrorMessage()
Returns collator's last error message.
Always returns the UZEROERROR_MESSAGE class constant value
in Collator at line 186
public string
getLocale(int $type = Locale::ACTUAL_LOCALE)
Returns the collator's locale
in Collator at line 202
public string
getSortKey(string $string)
Not supported.
Get sorting key for a string
in Collator at line 216
public Boolean|int
getStrength()
Not supported.
Get current collator's strength
in Collator at line 233
public Boolean
setAttribute(int $attr, int $val)
Not supported.
Set a collator's attribute
in Collator at line 255
public Boolean
setStrength(int $strength)
Not supported.
Set the collator's strength
in Collator at line 271
public Boolean
sortWithSortKeys(array $arr)
Not supported.
Sort array using specified collator and sort keys
in Collator at line 291
public Boolean
sort(array $arr, int $sortFlag = self::SORT_REGULAR)
Not supported.
Sort array using specified collator