1<?php
2
3/** @generate-class-entries */
4
5class UConverter
6{
7    public function __construct(?string $destination_encoding = null, ?string $source_encoding = null) {}
8
9    /** @tentative-return-type */
10    public function convert(string $str, bool $reverse = false): string|false {}
11
12    /**
13     * @param int $error
14     * @tentative-return-type
15     */
16    public function fromUCallback(int $reason, array $source, int $codePoint, &$error): string|int|array|null {}
17
18    /**
19     * @return array<int, string>|false|null
20     * @tentative-return-type
21     */
22    public static function getAliases(string $name): array|false|null {}
23
24    /**
25     * @return array<int, string>
26     * @tentative-return-type
27     */
28    public static function getAvailable(): array {}
29
30    /** @tentative-return-type */
31    public function getDestinationEncoding(): string|false|null {}
32
33    /** @tentative-return-type */
34    public function getDestinationType(): int|false|null {}
35
36    /** @tentative-return-type */
37    public function getErrorCode(): int {}
38
39    /** @tentative-return-type */
40    public function getErrorMessage(): ?string {}
41
42    /** @tentative-return-type */
43    public function getSourceEncoding(): string|false|null {}
44
45    /** @tentative-return-type */
46    public function getSourceType(): int|false|null {}
47
48    /** @tentative-return-type */
49    public static function getStandards(): ?array {}
50
51    /** @tentative-return-type */
52    public function getSubstChars(): string|false|null {}
53
54    /** @tentative-return-type */
55    public static function reasonText(int $reason): string {}
56
57    /** @tentative-return-type */
58    public function setDestinationEncoding(string $encoding): bool {}
59
60    /** @tentative-return-type */
61    public function setSourceEncoding(string $encoding): bool {}
62
63    /** @tentative-return-type */
64    public function setSubstChars(string $chars): bool {}
65
66    /**
67     * @param int $error
68     * @tentative-return-type
69     */
70    public function toUCallback(int $reason, string $source, string $codeUnits, &$error): string|int|array|null {}
71
72    /** @tentative-return-type */
73    public static function transcode(string $str, string $toEncoding, string $fromEncoding, ?array $options = null): string|false {}
74}
75