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