xref: /PHP-8.0/ext/mbstring/mbstring.stub.php (revision 5582490b)
1<?php
2
3/** @generate-function-entries */
4
5function mb_language(?string $language = null): string|bool {}
6
7function mb_internal_encoding(?string $encoding = null): string|bool {}
8
9function mb_http_input(?string $type = null): array|string|false {}
10
11function mb_http_output(?string $encoding = null): string|bool {}
12
13function mb_detect_order(array|string|null $encoding = null): array|bool {}
14
15function mb_substitute_character(string|int|null $substitute_character = null): string|int|bool {}
16
17function mb_preferred_mime_name(string $encoding): string|false {}
18
19/** @param array $result */
20function mb_parse_str(string $string, &$result): bool {}
21
22function mb_output_handler(string $string, int $status): string {}
23
24function mb_str_split(string $string, int $length = 1, ?string $encoding = null): array {}
25
26function mb_strlen(string $string, ?string $encoding = null): int {}
27
28function mb_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false {}
29
30function mb_strrpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false {}
31
32function mb_stripos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false {}
33
34function mb_strripos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false {}
35
36function mb_strstr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding = null): string|false {}
37
38function mb_strrchr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding = null): string|false {}
39
40function mb_stristr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding = null): string|false {}
41
42function mb_strrichr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding = null): string|false {}
43
44function mb_substr_count(string $haystack, string $needle, ?string $encoding = null): int {}
45
46function mb_substr(string $string, int $start, ?int $length = null, ?string $encoding = null): string {}
47
48function mb_strcut(string $string, int $start, ?int $length = null, ?string $encoding = null): string {}
49
50function mb_strwidth(string $string, ?string $encoding = null): int {}
51
52function mb_strimwidth(string $string, int $start, int $width, string $trim_marker = "", ?string $encoding = null): string {}
53
54function mb_convert_encoding(array|string $string, string $to_encoding, array|string|null $from_encoding = null): array|string|false {}
55
56function mb_convert_case(string $string, int $mode, ?string $encoding = null): string {}
57
58function mb_strtoupper(string $string, ?string $encoding = null): string {}
59
60function mb_strtolower(string $string, ?string $encoding = null): string {}
61
62function mb_detect_encoding(string $string, array|string|null $encodings = null, bool $strict = false): string|false {}
63
64function mb_list_encodings(): array {}
65
66function mb_encoding_aliases(string $encoding): array {}
67
68function mb_encode_mimeheader(string $string, ?string $charset = null, ?string $transfer_encoding = null, string $newline = "\r\n", int $indent = 0): string {}
69
70function mb_decode_mimeheader(string $string): string {}
71
72function mb_convert_kana(string $string, string $mode = "KV", ?string $encoding = null): string {}
73
74function mb_convert_variables(string $to_encoding, array|string $from_encoding, mixed &$var, mixed &...$vars): string|false {}
75
76function mb_encode_numericentity(string $string, array $map, ?string $encoding = null, bool $hex = false): string {}
77
78function mb_decode_numericentity(string $string, array $map, ?string $encoding = null): string {}
79
80function mb_send_mail(string $to, string $subject, string $message, array|string $additional_headers = [], ?string $additional_params = null): bool {}
81
82function mb_get_info(string $type = "all"): array|string|int|false {}
83
84function mb_check_encoding(array|string|null $value = null, ?string $encoding = null): bool {}
85
86function mb_scrub(string $string, ?string $encoding = null): string {}
87
88function mb_ord(string $string, ?string $encoding = null): int|false {}
89
90function mb_chr(int $codepoint, ?string $encoding = null): string|false {}
91
92#ifdef HAVE_MBREGEX
93function mb_regex_encoding(?string $encoding = null): string|bool {}
94
95/** @param array $matches */
96function mb_ereg(string $pattern, string $string, &$matches = null): bool {}
97
98/** @param array $matches */
99function mb_eregi(string $pattern, string $string, &$matches = null): bool {}
100
101function mb_ereg_replace(string $pattern, string $replacement, string $string, ?string $options = null): string|false|null {}
102
103function mb_eregi_replace(string $pattern, string $replacement, string $string, ?string $options = null): string|false|null {}
104
105function mb_ereg_replace_callback(string $pattern, callable $callback, string $string, ?string $options = null): string|false|null {}
106
107function mb_split(string $pattern, string $string, int $limit = -1): array|false {}
108
109function mb_ereg_match(string $pattern, string $string, ?string $options = null): bool {}
110
111function mb_ereg_search(?string $pattern = null, ?string $options = null): bool {}
112
113function mb_ereg_search_pos(?string $pattern = null, ?string $options = null): array|false {}
114
115function mb_ereg_search_regs(?string $pattern = null, ?string $options = null): array|false {}
116
117function mb_ereg_search_init(string $string, ?string $pattern = null, ?string $options = null): bool {}
118
119function mb_ereg_search_getregs(): array|false {}
120
121function mb_ereg_search_getpos(): int {}
122
123function mb_ereg_search_setpos(int $offset): bool {}
124
125function mb_regex_set_options(?string $options = null): string {}
126#endif
127