xref: /PHP-8.1/ext/iconv/iconv.stub.php (revision fdc60829)
1<?php
2
3/** @generate-class-entries */
4
5function iconv_strlen(string $string, ?string $encoding = null): int|false {}
6
7/** @refcount 1 */
8function iconv_substr(string $string, int $offset, ?int $length = null, ?string $encoding = null): string|false {}
9
10function iconv_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false {}
11
12function iconv_strrpos(string $haystack, string $needle, ?string $encoding = null): int|false {}
13
14/** @refcount 1 */
15function iconv_mime_encode(string $field_name, string $field_value, array $options = []): string|false {}
16
17/** @refcount 1 */
18function iconv_mime_decode(string $string, int $mode = 0, ?string $encoding = null): string|false {}
19
20/**
21 * @return array<string, string|array>|false
22 * @refcount 1
23 */
24function iconv_mime_decode_headers(string $headers, int $mode = 0, ?string $encoding = null): array|false {}
25
26/** @refcount 1 */
27function iconv(string $from_encoding, string $to_encoding, string $string): string|false {}
28
29function iconv_set_encoding(string $type, string $encoding): bool {}
30
31/**
32 * @return array<string, string>|string|false
33 * @refcount 1
34 */
35function iconv_get_encoding(string $type = "all"): array|string|false {}
36