File: formatter.stub.php

package info (click to toggle)
php8.4 8.4.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 208,108 kB
  • sloc: ansic: 1,060,628; php: 35,345; sh: 11,866; cpp: 7,201; pascal: 4,913; javascript: 3,091; asm: 2,810; yacc: 2,411; makefile: 689; xml: 446; python: 301; awk: 148
file content (288 lines) | stat: -rw-r--r-- 9,917 bytes parent folder | download
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<?php

/** @generate-class-entries */

/** @not-serializable */
class NumberFormatter
{
    /* UNumberFormatStyle constants */

    /** @cvalue UNUM_PATTERN_DECIMAL */
    public const int PATTERN_DECIMAL = UNKNOWN;
    /** @cvalue UNUM_DECIMAL */
    public const int DECIMAL = UNKNOWN;
    /** @cvalue UNUM_CURRENCY */
    public const int CURRENCY = UNKNOWN;
    /** @cvalue UNUM_PERCENT */
    public const int PERCENT = UNKNOWN;
    /** @cvalue UNUM_SCIENTIFIC */
    public const int SCIENTIFIC = UNKNOWN;
    /** @cvalue UNUM_SPELLOUT */
    public const int SPELLOUT = UNKNOWN;
    /** @cvalue UNUM_ORDINAL */
    public const int ORDINAL = UNKNOWN;
    /** @cvalue UNUM_DURATION */
    public const int DURATION = UNKNOWN;
    /** @cvalue UNUM_PATTERN_RULEBASED */
    public const int PATTERN_RULEBASED = UNKNOWN;
    /** @cvalue UNUM_IGNORE */
    public const int IGNORE = UNKNOWN;
#if U_ICU_VERSION_MAJOR_NUM >= 53
    /** @cvalue UNUM_CURRENCY_ACCOUNTING */
    public const int CURRENCY_ACCOUNTING = UNKNOWN;
#endif
    /** @cvalue UNUM_DEFAULT */
    public const int DEFAULT_STYLE = UNKNOWN;

    /* UNumberFormatRoundingMode */

    /** @cvalue UNUM_ROUND_CEILING */
    public const int ROUND_CEILING = UNKNOWN;
    /** @cvalue UNUM_ROUND_FLOOR */
    public const int ROUND_FLOOR = UNKNOWN;
    /** @cvalue UNUM_ROUND_DOWN */
    public const int ROUND_DOWN = UNKNOWN;
    /** @cvalue UNUM_ROUND_UP */
    public const int ROUND_UP = UNKNOWN;
    /** @cvalue UNUM_ROUND_DOWN */
    public const int ROUND_TOWARD_ZERO = UNKNOWN;
    /** @cvalue UNUM_ROUND_UP */
    public const int ROUND_AWAY_FROM_ZERO = UNKNOWN;
    /** @cvalue UNUM_ROUND_HALFEVEN */
    public const int ROUND_HALFEVEN = UNKNOWN;
#if U_ICU_VERSION_MAJOR_NUM >= 69
    /** @cvalue UNUM_ROUND_HALF_ODD */
    public const int ROUND_HALFODD = UNKNOWN;
#endif
    /** @cvalue UNUM_ROUND_HALFDOWN */
    public const int ROUND_HALFDOWN = UNKNOWN;
    /** @cvalue UNUM_ROUND_HALFUP */
    public const int ROUND_HALFUP = UNKNOWN;

    /* UNumberFormatPadPosition */

    /** @cvalue UNUM_PAD_BEFORE_PREFIX */
    public const int PAD_BEFORE_PREFIX = UNKNOWN;
    /** @cvalue UNUM_PAD_AFTER_PREFIX */
    public const int PAD_AFTER_PREFIX = UNKNOWN;
    /** @cvalue UNUM_PAD_BEFORE_SUFFIX */
    public const int PAD_BEFORE_SUFFIX = UNKNOWN;
    /** @cvalue UNUM_PAD_AFTER_SUFFIX */
    public const int PAD_AFTER_SUFFIX = UNKNOWN;

    /* UNumberFormatAttribute */

    /** @cvalue UNUM_PARSE_INT_ONLY */
    public const int PARSE_INT_ONLY = UNKNOWN;
    /** @cvalue UNUM_GROUPING_USED */
    public const int GROUPING_USED = UNKNOWN;
    /** @cvalue UNUM_DECIMAL_ALWAYS_SHOWN */
    public const int DECIMAL_ALWAYS_SHOWN = UNKNOWN;
    /** @cvalue UNUM_MAX_INTEGER_DIGITS */
    public const int MAX_INTEGER_DIGITS = UNKNOWN;
    /** @cvalue UNUM_MIN_INTEGER_DIGITS */
    public const int MIN_INTEGER_DIGITS = UNKNOWN;
    /** @cvalue UNUM_INTEGER_DIGITS */
    public const int INTEGER_DIGITS = UNKNOWN;
    /** @cvalue UNUM_MAX_FRACTION_DIGITS */
    public const int MAX_FRACTION_DIGITS = UNKNOWN;
    /** @cvalue UNUM_MIN_FRACTION_DIGITS */
    public const int MIN_FRACTION_DIGITS = UNKNOWN;
    /** @cvalue UNUM_FRACTION_DIGITS */
    public const int FRACTION_DIGITS = UNKNOWN;
    /** @cvalue UNUM_MULTIPLIER */
    public const int MULTIPLIER = UNKNOWN;
    /** @cvalue UNUM_GROUPING_SIZE */
    public const int GROUPING_SIZE = UNKNOWN;
    /** @cvalue UNUM_ROUNDING_MODE */
    public const int ROUNDING_MODE = UNKNOWN;
    /** @cvalue UNUM_ROUNDING_INCREMENT */
    public const int ROUNDING_INCREMENT = UNKNOWN;
    /** @cvalue UNUM_FORMAT_WIDTH */
    public const int FORMAT_WIDTH = UNKNOWN;
    /** @cvalue UNUM_PADDING_POSITION */
    public const int PADDING_POSITION = UNKNOWN;
    /** @cvalue UNUM_SECONDARY_GROUPING_SIZE */
    public const int SECONDARY_GROUPING_SIZE = UNKNOWN;
    /** @cvalue UNUM_SIGNIFICANT_DIGITS_USED */
    public const int SIGNIFICANT_DIGITS_USED = UNKNOWN;
    /** @cvalue UNUM_MIN_SIGNIFICANT_DIGITS */
    public const int MIN_SIGNIFICANT_DIGITS = UNKNOWN;
    /** @cvalue UNUM_MAX_SIGNIFICANT_DIGITS */
    public const int MAX_SIGNIFICANT_DIGITS = UNKNOWN;
    /** @cvalue UNUM_LENIENT_PARSE */
    public const int LENIENT_PARSE = UNKNOWN;

    /* UNumberFormatTextAttribute */

    /** @cvalue UNUM_POSITIVE_PREFIX */
    public const int POSITIVE_PREFIX = UNKNOWN;
    /** @cvalue UNUM_POSITIVE_SUFFIX */
    public const int POSITIVE_SUFFIX = UNKNOWN;
    /** @cvalue UNUM_NEGATIVE_PREFIX */
    public const int NEGATIVE_PREFIX = UNKNOWN;
    /** @cvalue UNUM_NEGATIVE_SUFFIX */
    public const int NEGATIVE_SUFFIX = UNKNOWN;
    /** @cvalue UNUM_PADDING_CHARACTER */
    public const int PADDING_CHARACTER = UNKNOWN;
    /** @cvalue UNUM_CURRENCY_CODE */
    public const int CURRENCY_CODE = UNKNOWN;
    /** @cvalue UNUM_DEFAULT_RULESET */
    public const int DEFAULT_RULESET = UNKNOWN;
    /** @cvalue UNUM_PUBLIC_RULESETS */
    public const int PUBLIC_RULESETS = UNKNOWN;

    /* UNumberFormatSymbol */

    /** @cvalue UNUM_DECIMAL_SEPARATOR_SYMBOL */
    public const int DECIMAL_SEPARATOR_SYMBOL = UNKNOWN;
    /** @cvalue UNUM_GROUPING_SEPARATOR_SYMBOL */
    public const int GROUPING_SEPARATOR_SYMBOL = UNKNOWN;
    /** @cvalue UNUM_PATTERN_SEPARATOR_SYMBOL */
    public const int PATTERN_SEPARATOR_SYMBOL = UNKNOWN;
    /** @cvalue UNUM_PERCENT_SYMBOL */
    public const int PERCENT_SYMBOL = UNKNOWN;
    /** @cvalue UNUM_ZERO_DIGIT_SYMBOL */
    public const int ZERO_DIGIT_SYMBOL = UNKNOWN;
    /** @cvalue UNUM_DIGIT_SYMBOL */
    public const int DIGIT_SYMBOL = UNKNOWN;
    /** @cvalue UNUM_MINUS_SIGN_SYMBOL */
    public const int MINUS_SIGN_SYMBOL = UNKNOWN;
    /** @cvalue UNUM_PLUS_SIGN_SYMBOL */
    public const int PLUS_SIGN_SYMBOL = UNKNOWN;
    /** @cvalue UNUM_CURRENCY_SYMBOL */
    public const int CURRENCY_SYMBOL = UNKNOWN;
    /** @cvalue UNUM_INTL_CURRENCY_SYMBOL */
    public const int INTL_CURRENCY_SYMBOL = UNKNOWN;
    /** @cvalue UNUM_MONETARY_SEPARATOR_SYMBOL */
    public const int MONETARY_SEPARATOR_SYMBOL = UNKNOWN;
    /** @cvalue UNUM_EXPONENTIAL_SYMBOL */
    public const int EXPONENTIAL_SYMBOL = UNKNOWN;
    /** @cvalue UNUM_PERMILL_SYMBOL */
    public const int PERMILL_SYMBOL = UNKNOWN;
    /** @cvalue UNUM_PAD_ESCAPE_SYMBOL */
    public const int PAD_ESCAPE_SYMBOL = UNKNOWN;
    /** @cvalue UNUM_INFINITY_SYMBOL */
    public const int INFINITY_SYMBOL = UNKNOWN;
    /** @cvalue UNUM_NAN_SYMBOL */
    public const int NAN_SYMBOL = UNKNOWN;
    /** @cvalue UNUM_SIGNIFICANT_DIGIT_SYMBOL */
    public const int SIGNIFICANT_DIGIT_SYMBOL = UNKNOWN;
    /** @cvalue UNUM_MONETARY_GROUPING_SEPARATOR_SYMBOL */
    public const int MONETARY_GROUPING_SEPARATOR_SYMBOL = UNKNOWN;

    /** @cvalue FORMAT_TYPE_DEFAULT */
    public const int TYPE_DEFAULT = UNKNOWN;
    /** @cvalue FORMAT_TYPE_INT32 */
    public const int TYPE_INT32 = UNKNOWN;
    /** @cvalue FORMAT_TYPE_INT64 */
    public const int TYPE_INT64 = UNKNOWN;
    /** @cvalue FORMAT_TYPE_DOUBLE */
    public const int TYPE_DOUBLE = UNKNOWN;
    /**
     * @cvalue FORMAT_TYPE_CURRENCY
     */
    #[\Deprecated(since: '8.3')]
    public const int TYPE_CURRENCY = UNKNOWN;

    public function __construct(string $locale, int $style, ?string $pattern = null) {}

    /**
     * @tentative-return-type
     * @alias numfmt_create
     */
    public static function create(string $locale, int $style, ?string $pattern = null): ?NumberFormatter {}

    /**
     * @tentative-return-type
     * @alias numfmt_format
     */
    public function format(int|float $num, int $type = NumberFormatter::TYPE_DEFAULT): string|false {}

    /**
     * @param int $offset
     * @tentative-return-type
     * @alias numfmt_parse
     */
    public function parse(string $string, int $type = NumberFormatter::TYPE_DOUBLE, &$offset = null): int|float|false {}

    /**
     * @tentative-return-type
     * @alias numfmt_format_currency
     */
    public function formatCurrency(float $amount, string $currency): string|false {}

    /**
     * @param string $currency
     * @param int $offset
     * @tentative-return-type
     * @alias numfmt_parse_currency
     */
    public function parseCurrency(string $string, &$currency, &$offset = null): float|false {}

    /**
     * @tentative-return-type
     * @alias numfmt_set_attribute
     */
    public function setAttribute(int $attribute, int|float $value): bool {}

    /**
     * @tentative-return-type
     * @alias numfmt_get_attribute
     */
    public function getAttribute(int $attribute): int|float|false {}

    /**
     * @tentative-return-type
     * @alias numfmt_set_text_attribute
     */
    public function setTextAttribute(int $attribute, string $value): bool {}

    /**
     * @tentative-return-type
     * @alias numfmt_get_text_attribute
     */
    public function getTextAttribute(int $attribute): string|false {}

    /**
     * @tentative-return-type
     * @alias numfmt_set_symbol
     */
    public function setSymbol(int $symbol, string $value): bool {}

    /**
     * @tentative-return-type
     * @alias numfmt_get_symbol
     */
    public function getSymbol(int $symbol): string|false {}

    /**
     * @tentative-return-type
     * @alias numfmt_set_pattern
     */
    public function setPattern(string $pattern): bool {}

    /**
     * @tentative-return-type
     * @alias numfmt_get_pattern
     */
    public function getPattern(): string|false {}

    /**
     * @tentative-return-type
     * @alias numfmt_get_locale
     */
    public function getLocale(int $type = ULOC_ACTUAL_LOCALE): string|false {}

    /**
     * @tentative-return-type
     * @alias numfmt_get_error_code
     */
    public function getErrorCode(): int {}

    /**
     * @tentative-return-type
     * @alias numfmt_get_error_message
     */
    public function getErrorMessage(): string {}
}