summaryrefslogtreecommitdiff
path: root/ext/intl/collator/collator.stub.php
blob: f42d1508cb965dae088824301ca00fcd2d5476bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php

/** @generate-function-entries */

class Collator
{
    public function __construct(string $locale) {}

    /**
     * @return Collator|null
     * @alias collator_create
     */
    public static function create(string $locale) {}

    /**
     * @return int|false
     * @alias collator_compare
     */
    public function compare(string $string1, string $string2) {}

    /**
     * @return bool
     * @alias collator_sort
     */
    public function sort(array &$array, int $flags = Collator::SORT_REGULAR) {}

    /**
     * @return bool
     * @alias collator_sort_with_sort_keys
     */
    public function sortWithSortKeys(array &$array) {}

    /**
     * @return bool
     * @alias collator_asort
     */
    public function asort(array &$array, int $flags = Collator::SORT_REGULAR) {}

    /**
     * @return int|false
     * @alias collator_get_attribute
     */
    public function getAttribute(int $attribute) {}

    /**
     * @return bool
     * @alias collator_set_attribute
     */
    public function setAttribute(int $attribute, int $value) {}

    /**
     * @return int
     * @alias collator_get_strength
     */
    public function getStrength() {}

    /**
     * @return bool
     * @alias collator_set_strength
     */
    public function setStrength(int $strength) {}

    /**
     * @return string|false
     * @alias collator_get_locale
     */
    public function getLocale(int $type) {}

    /**
     * @return int|false
     * @alias collator_get_error_code
     */
    public function getErrorCode() {}

    /**
     * @return string|false
     * @alias collator_get_error_message
     */
    public function getErrorMessage() {}

    /**
     * @return string|false
     * @alias collator_get_sort_key
     */
    public function getSortKey(string $string) {}
}