xref: /PHP-8.4/ext/iconv/iconv.stub.php (revision e328c683)
1<?php
2
3/** @generate-class-entries */
4
5/**
6 * @var string
7 * @cvalue PHP_ICONV_IMPL_VALUE
8 */
9const ICONV_IMPL = UNKNOWN;
10/**
11 * @var string
12 * @cvalue get_iconv_version()
13 */
14const ICONV_VERSION = UNKNOWN;
15/**
16 * @var int
17 * @cvalue PHP_ICONV_MIME_DECODE_STRICT
18 */
19const ICONV_MIME_DECODE_STRICT = UNKNOWN;
20/**
21 * @var int
22 * @cvalue PHP_ICONV_MIME_DECODE_CONTINUE_ON_ERROR
23 */
24const ICONV_MIME_DECODE_CONTINUE_ON_ERROR = UNKNOWN;
25
26function iconv_strlen(string $string, ?string $encoding = null): int|false {}
27
28/** @refcount 1 */
29function iconv_substr(string $string, int $offset, ?int $length = null, ?string $encoding = null): string|false {}
30
31function iconv_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false {}
32
33function iconv_strrpos(string $haystack, string $needle, ?string $encoding = null): int|false {}
34
35/** @refcount 1 */
36function iconv_mime_encode(string $field_name, string $field_value, array $options = []): string|false {}
37
38/** @refcount 1 */
39function iconv_mime_decode(string $string, int $mode = 0, ?string $encoding = null): string|false {}
40
41/**
42 * @return array<string, string|array>|false
43 * @refcount 1
44 */
45function iconv_mime_decode_headers(string $headers, int $mode = 0, ?string $encoding = null): array|false {}
46
47/** @refcount 1 */
48function iconv(string $from_encoding, string $to_encoding, string $string): string|false {}
49
50function iconv_set_encoding(string $type, string $encoding): bool {}
51
52/**
53 * @return array<string, string>|string|false
54 * @refcount 1
55 */
56function iconv_get_encoding(string $type = "all"): array|string|false {}
57