xref: /PHP-8.0/ext/intl/uchar/uchar.stub.php (revision 186612e4)
1<?php
2
3/** @generate-function-entries */
4
5class IntlChar
6{
7    /** @return bool|null */
8    public static function hasBinaryProperty(int|string $codepoint, int $property) {}
9
10    /** @return array|null */
11    public static function charAge(int|string $codepoint) {}
12
13    /** @return int|null */
14    public static function charDigitValue(int|string $codepoint) {}
15
16    /** @return int|null
17     */
18    public static function charDirection(int|string $codepoint) {}
19
20    /** @return int|null */
21    public static function charFromName(string $name, int $type = IntlChar::UNICODE_CHAR_NAME) {}
22
23    /** @return int|string|null */
24    public static function charMirror(int|string $codepoint) {}
25
26    /** @return string|null */
27    public static function charName(int|string $codepoint, int $type = IntlChar::UNICODE_CHAR_NAME) {}
28
29    /** @return int|null */
30    public static function charType(int|string $codepoint) {}
31
32    /** @return string|null */
33    public static function chr(int|string $codepoint) {}
34
35    /** @return int|false|null */
36    public static function digit(int|string $codepoint, int $base = 10) {}
37
38    /** @return bool|null */
39    public static function enumCharNames(int|string $start, int|string $end, callable $callback, int $type = IntlChar::UNICODE_CHAR_NAME) {}
40
41    /** @return void */
42    public static function enumCharTypes(callable $callback) {}
43
44    /**
45     * @return int|string|null
46     */
47    public static function foldCase(int|string $codepoint, int $options = IntlChar::FOLD_CASE_DEFAULT) {}
48
49    /** @return int */
50    public static function forDigit(int $digit, int $base = 10) {}
51
52#if U_ICU_VERSION_MAJOR_NUM >= 52
53    /** @return int|string|null */
54    public static function getBidiPairedBracket(int|string $codepoint) {}
55#endif
56
57    /** @return int|null */
58    public static function getBlockCode(int|string $codepoint) {}
59
60    /** @return int|null */
61    public static function getCombiningClass(int|string $codepoint) {}
62
63    /** @return string|false|null */
64    public static function getFC_NFKC_Closure(int|string $codepoint) {}
65
66    /** @return int */
67    public static function getIntPropertyMaxValue(int $property) {}
68
69    /** @return int */
70    public static function getIntPropertyMinValue(int $property) {}
71
72    /** @return int|null */
73    public static function getIntPropertyValue(int|string $codepoint, int $property) {}
74
75    /** @return float|null */
76    public static function getNumericValue(int|string $codepoint) {}
77
78    /** @return int */
79    public static function getPropertyEnum(string $alias) {}
80
81    /** @return string|false */
82    public static function getPropertyName(int $property, int $type = IntlChar::LONG_PROPERTY_NAME) {}
83
84    /** @return int */
85    public static function getPropertyValueEnum(int $property, string $name) {}
86
87    /** @return string|false */
88    public static function getPropertyValueName(int $property, int $value, int $type = IntlChar::LONG_PROPERTY_NAME) {}
89
90    /** @return array */
91    public static function getUnicodeVersion() {}
92
93    /** @return bool|null */
94    public static function isalnum(int|string $codepoint) {}
95
96    /** @return bool|null */
97    public static function isalpha(int|string $codepoint) {}
98
99    /** @return bool|null */
100    public static function isbase(int|string $codepoint) {}
101
102    /** @return bool|null */
103    public static function isblank(int|string $codepoint) {}
104
105    /** @return bool|null */
106    public static function iscntrl(int|string $codepoint) {}
107
108    /** @return bool|null */
109    public static function isdefined(int|string $codepoint) {}
110
111    /** @return bool|null */
112    public static function isdigit(int|string $codepoint) {}
113
114    /** @return bool|null */
115    public static function isgraph(int|string $codepoint) {}
116
117    /** @return bool|null */
118    public static function isIDIgnorable(int|string $codepoint) {}
119
120    /** @return bool|null */
121    public static function isIDPart(int|string $codepoint) {}
122
123    /** @return bool|null */
124    public static function isIDStart(int|string $codepoint) {}
125
126    /** @return bool|null */
127    public static function isISOControl(int|string $codepoint) {}
128
129    /** @return bool|null */
130    public static function isJavaIDPart(int|string $codepoint) {}
131
132    /** @return bool|null */
133    public static function isJavaIDStart(int|string $codepoint) {}
134
135    /** @return bool|null */
136    public static function isJavaSpaceChar(int|string $codepoint) {}
137
138    /** @return bool|null */
139    public static function islower(int|string $codepoint) {}
140
141    /** @return bool|null */
142    public static function isMirrored(int|string $codepoint) {}
143
144    /** @return bool|null */
145    public static function isprint(int|string $codepoint) {}
146
147    /** @return bool|null */
148    public static function ispunct(int|string $codepoint) {}
149
150    /** @return bool|null */
151    public static function isspace(int|string $codepoint) {}
152
153    /** @return bool|null */
154    public static function istitle(int|string $codepoint) {}
155
156    /** @return bool|null */
157    public static function isUAlphabetic(int|string $codepoint) {}
158
159    /** @return bool|null */
160    public static function isULowercase(int|string $codepoint) {}
161
162    /** @return bool|null */
163    public static function isupper(int|string $codepoint) {}
164
165    /** @return bool|null */
166    public static function isUUppercase(int|string $codepoint) {}
167
168    /** @return bool|null */
169    public static function isUWhiteSpace(int|string $codepoint) {}
170
171    /** @return bool|null */
172    public static function isWhitespace(int|string $codepoint) {}
173
174    /** @return bool|null */
175    public static function isxdigit(int|string $codepoint) {}
176
177    /** @return int|null */
178    public static function ord(int|string $character) {}
179
180    /** @return int|string|null */
181    public static function tolower(int|string $codepoint) {}
182
183    /** @return int|string|null */
184    public static function totitle(int|string $codepoint) {}
185
186    /** @return int|string|null */
187    public static function toupper(int|string $codepoint) {}
188}
189