1<?php
2
3/** @generate-class-entries */
4
5/** @not-serializable */
6class UConverter
7{
8    /* enum UConverterCallbackReason */
9
10    /** @cvalue UCNV_UNASSIGNED */
11    public const int REASON_UNASSIGNED = UNKNOWN;
12    /** @cvalue UCNV_ILLEGAL */
13    public const int REASON_ILLEGAL = UNKNOWN;
14    /** @cvalue UCNV_IRREGULAR */
15    public const int REASON_IRREGULAR = UNKNOWN;
16    /** @cvalue UCNV_RESET */
17    public const int REASON_RESET = UNKNOWN;
18    /** @cvalue UCNV_CLOSE */
19    public const int REASON_CLOSE = UNKNOWN;
20    /** @cvalue UCNV_CLONE */
21    public const int REASON_CLONE = UNKNOWN;
22
23    /* enum UConverterType */
24
25    /** @cvalue UCNV_UNSUPPORTED_CONVERTER */
26    public const int UNSUPPORTED_CONVERTER = UNKNOWN;
27    /** @cvalue UCNV_SBCS */
28    public const int SBCS = UNKNOWN;
29    /** @cvalue UCNV_DBCS */
30    public const int DBCS = UNKNOWN;
31    /** @cvalue UCNV_MBCS */
32    public const int MBCS = UNKNOWN;
33    /** @cvalue UCNV_LATIN_1 */
34    public const int LATIN_1 = UNKNOWN;
35    /** @cvalue UCNV_UTF8 */
36    public const int UTF8 = UNKNOWN;
37    /** @cvalue UCNV_UTF16_BigEndian */
38    public const int UTF16_BigEndian = UNKNOWN;
39    /** @cvalue UCNV_UTF16_LittleEndian */
40    public const int UTF16_LittleEndian = UNKNOWN;
41    /** @cvalue UCNV_UTF32_BigEndian */
42    public const int UTF32_BigEndian = UNKNOWN;
43    /** @cvalue UCNV_UTF32_LittleEndian */
44    public const int UTF32_LittleEndian = UNKNOWN;
45    /** @cvalue UCNV_EBCDIC_STATEFUL */
46    public const int EBCDIC_STATEFUL = UNKNOWN;
47    /** @cvalue UCNV_ISO_2022 */
48    public const int ISO_2022 = UNKNOWN;
49    /** @cvalue UCNV_LMBCS_1 */
50    public const int LMBCS_1 = UNKNOWN;
51    /** @cvalue UCNV_LMBCS_2 */
52    public const int LMBCS_2 = UNKNOWN;
53    /** @cvalue UCNV_LMBCS_3 */
54    public const int LMBCS_3 = UNKNOWN;
55    /** @cvalue UCNV_LMBCS_4 */
56    public const int LMBCS_4 = UNKNOWN;
57    /** @cvalue UCNV_LMBCS_5 */
58    public const int LMBCS_5 = UNKNOWN;
59    /** @cvalue UCNV_LMBCS_6 */
60    public const int LMBCS_6 = UNKNOWN;
61    /** @cvalue UCNV_LMBCS_8 */
62    public const int LMBCS_8 = UNKNOWN;
63    /** @cvalue UCNV_LMBCS_11 */
64    public const int LMBCS_11 = UNKNOWN;
65    /** @cvalue UCNV_LMBCS_16 */
66    public const int LMBCS_16 = UNKNOWN;
67    /** @cvalue UCNV_LMBCS_17 */
68    public const int LMBCS_17 = UNKNOWN;
69    /** @cvalue UCNV_LMBCS_18 */
70    public const int LMBCS_18 = UNKNOWN;
71    /** @cvalue UCNV_LMBCS_19 */
72    public const int LMBCS_19 = UNKNOWN;
73    /** @cvalue UCNV_LMBCS_LAST */
74    public const int LMBCS_LAST = UNKNOWN;
75    /** @cvalue UCNV_HZ */
76    public const int HZ = UNKNOWN;
77    /** @cvalue UCNV_SCSU */
78    public const int SCSU = UNKNOWN;
79    /** @cvalue UCNV_ISCII */
80    public const int ISCII = UNKNOWN;
81    /** @cvalue UCNV_US_ASCII */
82    public const int US_ASCII = UNKNOWN;
83    /** @cvalue UCNV_UTF7 */
84    public const int UTF7 = UNKNOWN;
85    /** @cvalue UCNV_BOCU1 */
86    public const int BOCU1 = UNKNOWN;
87    /** @cvalue UCNV_UTF16 */
88    public const int UTF16 = UNKNOWN;
89    /** @cvalue UCNV_UTF32 */
90    public const int UTF32 = UNKNOWN;
91    /** @cvalue UCNV_CESU8 */
92    public const int CESU8 = UNKNOWN;
93    /** @cvalue UCNV_IMAP_MAILBOX */
94    public const int IMAP_MAILBOX = UNKNOWN;
95
96    public function __construct(?string $destination_encoding = null, ?string $source_encoding = null) {}
97
98    /** @tentative-return-type */
99    public function convert(string $str, bool $reverse = false): string|false {}
100
101    /**
102     * @param int $error
103     * @tentative-return-type
104     */
105    public function fromUCallback(int $reason, array $source, int $codePoint, &$error): string|int|array|null {}
106
107    /**
108     * @return array<int, string>|false|null
109     * @tentative-return-type
110     */
111    public static function getAliases(string $name): array|false|null {}
112
113    /**
114     * @return array<int, string>
115     * @tentative-return-type
116     */
117    public static function getAvailable(): array {}
118
119    /** @tentative-return-type */
120    public function getDestinationEncoding(): string|false|null {}
121
122    /** @tentative-return-type */
123    public function getDestinationType(): int|false|null {}
124
125    /** @tentative-return-type */
126    public function getErrorCode(): int {}
127
128    /** @tentative-return-type */
129    public function getErrorMessage(): ?string {}
130
131    /** @tentative-return-type */
132    public function getSourceEncoding(): string|false|null {}
133
134    /** @tentative-return-type */
135    public function getSourceType(): int|false|null {}
136
137    /** @tentative-return-type */
138    public static function getStandards(): ?array {}
139
140    /** @tentative-return-type */
141    public function getSubstChars(): string|false|null {}
142
143    /** @tentative-return-type */
144    public static function reasonText(int $reason): string {}
145
146    /** @tentative-return-type */
147    public function setDestinationEncoding(string $encoding): bool {}
148
149    /** @tentative-return-type */
150    public function setSourceEncoding(string $encoding): bool {}
151
152    /** @tentative-return-type */
153    public function setSubstChars(string $chars): bool {}
154
155    /**
156     * @param int $error
157     * @tentative-return-type
158     */
159    public function toUCallback(int $reason, string $source, string $codeUnits, &$error): string|int|array|null {}
160
161    /** @tentative-return-type */
162    public static function transcode(string $str, string $toEncoding, string $fromEncoding, ?array $options = null): string|false {}
163}
164