1<?php 2 3/** @generate-class-entries */ 4 5/** @not-serializable */ 6class UConverter 7{ 8 /* enum UConverterCallbackReason */ 9 10 /** 11 * @var int 12 * @cvalue UCNV_UNASSIGNED 13 */ 14 public const REASON_UNASSIGNED = UNKNOWN; 15 /** 16 * @var int 17 * @cvalue UCNV_ILLEGAL 18 */ 19 public const REASON_ILLEGAL = UNKNOWN; 20 /** 21 * @var int 22 * @cvalue UCNV_IRREGULAR 23 */ 24 public const REASON_IRREGULAR = UNKNOWN; 25 /** 26 * @var int 27 * @cvalue UCNV_RESET 28 */ 29 public const REASON_RESET = UNKNOWN; 30 /** 31 * @var int 32 * @cvalue UCNV_CLOSE 33 */ 34 public const REASON_CLOSE = UNKNOWN; 35 /** 36 * @var int 37 * @cvalue UCNV_CLONE 38 */ 39 public const REASON_CLONE = UNKNOWN; 40 41 /* enum UConverterType */ 42 43 /** 44 * @var int 45 * @cvalue UCNV_UNSUPPORTED_CONVERTER 46 */ 47 public const UNSUPPORTED_CONVERTER = UNKNOWN; 48 /** 49 * @var int 50 * @cvalue UCNV_SBCS 51 */ 52 public const SBCS = UNKNOWN; 53 /** 54 * @var int 55 * @cvalue UCNV_DBCS 56 */ 57 public const DBCS = UNKNOWN; 58 /** 59 * @var int 60 * @cvalue UCNV_MBCS 61 */ 62 public const MBCS = UNKNOWN; 63 /** 64 * @var int 65 * @cvalue UCNV_LATIN_1 66 */ 67 public const LATIN_1 = UNKNOWN; 68 /** 69 * @var int 70 * @cvalue UCNV_UTF8 71 */ 72 public const UTF8 = UNKNOWN; 73 /** 74 * @var int 75 * @cvalue UCNV_UTF16_BigEndian 76 */ 77 public const UTF16_BigEndian = UNKNOWN; 78 /** 79 * @var int 80 * @cvalue UCNV_UTF16_LittleEndian 81 */ 82 public const UTF16_LittleEndian = UNKNOWN; 83 /** 84 * @var int 85 * @cvalue UCNV_UTF32_BigEndian 86 */ 87 public const UTF32_BigEndian = UNKNOWN; 88 /** 89 * @var int 90 * @cvalue UCNV_UTF32_LittleEndian 91 */ 92 public const UTF32_LittleEndian = UNKNOWN; 93 /** 94 * @var int 95 * @cvalue UCNV_EBCDIC_STATEFUL 96 */ 97 public const EBCDIC_STATEFUL = UNKNOWN; 98 /** 99 * @var int 100 * @cvalue UCNV_ISO_2022 101 */ 102 public const ISO_2022 = UNKNOWN; 103 /** 104 * @var int 105 * @cvalue UCNV_LMBCS_1 106 */ 107 public const LMBCS_1 = UNKNOWN; 108 /** 109 * @var int 110 * @cvalue UCNV_LMBCS_2 111 */ 112 public const LMBCS_2 = UNKNOWN; 113 /** 114 * @var int 115 * @cvalue UCNV_LMBCS_3 116 */ 117 public const LMBCS_3 = UNKNOWN; 118 /** 119 * @var int 120 * @cvalue UCNV_LMBCS_4 121 */ 122 public const LMBCS_4 = UNKNOWN; 123 /** 124 * @var int 125 * @cvalue UCNV_LMBCS_5 126 */ 127 public const LMBCS_5 = UNKNOWN; 128 /** 129 * @var int 130 * @cvalue UCNV_LMBCS_6 131 */ 132 public const LMBCS_6 = UNKNOWN; 133 /** 134 * @var int 135 * @cvalue UCNV_LMBCS_8 136 */ 137 public const LMBCS_8 = UNKNOWN; 138 /** 139 * @var int 140 * @cvalue UCNV_LMBCS_11 141 */ 142 public const LMBCS_11 = UNKNOWN; 143 /** 144 * @var int 145 * @cvalue UCNV_LMBCS_16 146 */ 147 public const LMBCS_16 = UNKNOWN; 148 /** 149 * @var int 150 * @cvalue UCNV_LMBCS_17 151 */ 152 public const LMBCS_17 = UNKNOWN; 153 /** 154 * @var int 155 * @cvalue UCNV_LMBCS_18 156 */ 157 public const LMBCS_18 = UNKNOWN; 158 /** 159 * @var int 160 * @cvalue UCNV_LMBCS_19 161 */ 162 public const LMBCS_19 = UNKNOWN; 163 /** 164 * @var int 165 * @cvalue UCNV_LMBCS_LAST 166 */ 167 public const LMBCS_LAST = UNKNOWN; 168 /** 169 * @var int 170 * @cvalue UCNV_HZ 171 */ 172 public const HZ = UNKNOWN; 173 /** 174 * @var int 175 * @cvalue UCNV_SCSU 176 */ 177 public const SCSU = UNKNOWN; 178 /** 179 * @var int 180 * @cvalue UCNV_ISCII 181 */ 182 public const ISCII = UNKNOWN; 183 /** 184 * @var int 185 * @cvalue UCNV_US_ASCII 186 */ 187 public const US_ASCII = UNKNOWN; 188 /** 189 * @var int 190 * @cvalue UCNV_UTF7 191 */ 192 public const UTF7 = UNKNOWN; 193 /** 194 * @var int 195 * @cvalue UCNV_BOCU1 196 */ 197 public const BOCU1 = UNKNOWN; 198 /** 199 * @var int 200 * @cvalue UCNV_UTF16 201 */ 202 public const UTF16 = UNKNOWN; 203 /** 204 * @var int 205 * @cvalue UCNV_UTF32 206 */ 207 public const UTF32 = UNKNOWN; 208 /** 209 * @var int 210 * @cvalue UCNV_CESU8 211 */ 212 public const CESU8 = UNKNOWN; 213 /** 214 * @var int 215 * @cvalue UCNV_IMAP_MAILBOX 216 */ 217 public const IMAP_MAILBOX = UNKNOWN; 218 219 public function __construct(?string $destination_encoding = null, ?string $source_encoding = null) {} 220 221 /** @tentative-return-type */ 222 public function convert(string $str, bool $reverse = false): string|false {} 223 224 /** 225 * @param int $error 226 * @tentative-return-type 227 */ 228 public function fromUCallback(int $reason, array $source, int $codePoint, &$error): string|int|array|null {} 229 230 /** 231 * @return array<int, string>|false|null 232 * @tentative-return-type 233 */ 234 public static function getAliases(string $name): array|false|null {} 235 236 /** 237 * @return array<int, string> 238 * @tentative-return-type 239 */ 240 public static function getAvailable(): array {} 241 242 /** @tentative-return-type */ 243 public function getDestinationEncoding(): string|false|null {} 244 245 /** @tentative-return-type */ 246 public function getDestinationType(): int|false|null {} 247 248 /** @tentative-return-type */ 249 public function getErrorCode(): int {} 250 251 /** @tentative-return-type */ 252 public function getErrorMessage(): ?string {} 253 254 /** @tentative-return-type */ 255 public function getSourceEncoding(): string|false|null {} 256 257 /** @tentative-return-type */ 258 public function getSourceType(): int|false|null {} 259 260 /** @tentative-return-type */ 261 public static function getStandards(): ?array {} 262 263 /** @tentative-return-type */ 264 public function getSubstChars(): string|false|null {} 265 266 /** @tentative-return-type */ 267 public static function reasonText(int $reason): string {} 268 269 /** @tentative-return-type */ 270 public function setDestinationEncoding(string $encoding): bool {} 271 272 /** @tentative-return-type */ 273 public function setSourceEncoding(string $encoding): bool {} 274 275 /** @tentative-return-type */ 276 public function setSubstChars(string $chars): bool {} 277 278 /** 279 * @param int $error 280 * @tentative-return-type 281 */ 282 public function toUCallback(int $reason, string $source, string $codeUnits, &$error): string|int|array|null {} 283 284 /** @tentative-return-type */ 285 public static function transcode(string $str, string $toEncoding, string $fromEncoding, ?array $options = null): string|false {} 286} 287