summaryrefslogtreecommitdiff
path: root/ext/mbstring/mbstring.stub.php
blob: 343a5d103d136d48449c291d57d13b27686d159a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?php

/** @generate-function-entries */

function mb_language(?string $language = null): string|bool {}

function mb_internal_encoding(?string $encoding = null): string|bool {}

function mb_http_input(?string $type = null): array|string|false {}

function mb_http_output(?string $encoding = null): string|bool {}

function mb_detect_order(array|string|null $encoding = null): array|bool {}

function mb_substitute_character(string|int|null $substitute_character = null): string|int|bool {}

function mb_preferred_mime_name(string $encoding): string|false {}

/** @param array $result */
function mb_parse_str(string $encoded_string, &$result): bool {}

function mb_output_handler(string $contents, int $status): string {}

function mb_str_split(string $str, int $split_length = 1, ?string $encoding = null): array {}

function mb_strlen(string $str, ?string $encoding = null): int {}

function mb_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false {}

function mb_strrpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false {}

function mb_stripos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false {}

function mb_strripos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false {}

function mb_strstr(string $haystack, string $needle, bool $part = false, ?string $encoding = null): string|false {}

function mb_strrchr(string $haystack, string $needle, bool $part = false, ?string $encoding = null): string|false {}

function mb_stristr(string $haystack, string $needle, bool $part = false, ?string $encoding = null): string|false {}

function mb_strrichr(string $haystack, string $needle, bool $part = false, ?string $encoding = null): string|false {}

function mb_substr_count(string $haystack, string $needle, ?string $encoding = null): int {}

function mb_substr(string $str, int $start, ?int $length = null, ?string $encoding = null): string {}

function mb_strcut(string $str, int $start, ?int $length = null, ?string $encoding = null): string|false {}

function mb_strwidth(string $str, ?string $encoding = null): int {}

function mb_strimwidth(string $str, int $start, int $width, string $trim_marker = "", ?string $encoding = null): string {}

function mb_convert_encoding(array|string $str, string $to, array|string|null $from = null): array|string|false {}

function mb_convert_case(string $source_string, int $mode, ?string $encoding = null): string {}

function mb_strtoupper(string $source_string, ?string $encoding = null): string {}

function mb_strtolower(string $source_string, ?string $encoding = null): string {}

function mb_detect_encoding(string $str, array|string|null $encoding_list = null, bool $strict = false): string|false {}

function mb_list_encodings(): array {}

function mb_encoding_aliases(string $encoding): array {}

function mb_encode_mimeheader(string $str, ?string $charset = null, ?string $transfer = null, string $linefeed = "\r\n", int $indent = 0): string {}

function mb_decode_mimeheader(string $string): string {}

function mb_convert_kana(string $str, string $option = "KV", ?string $encoding = null): string {}

function mb_convert_variables(string $to, array|string $from, mixed &$var, mixed &...$vars): string|false {}

function mb_encode_numericentity(string $string, array $convmap, ?string $encoding = null, bool $is_hex = false): string {}

function mb_decode_numericentity(string $string, array $convmap, ?string $encoding = null): string {}

/** @param string|array|null $additional_headers */
function mb_send_mail(string $to, string $subject, string $message, $additional_headers = null, ?string $additional_parameters = null): bool {}

function mb_get_info(string $type = "all"): array|string|int|false {}

function mb_check_encoding(array|string|null $var = null, ?string $encoding = null): bool {}

function mb_scrub(string $str, ?string $encoding = null): string {}

function mb_ord(string $str, ?string $encoding = null): int|false {}

function mb_chr(int $cp, ?string $encoding = null): string|false {}

#ifdef HAVE_MBREGEX
function mb_regex_encoding(?string $encoding = null): string|bool {}

/** @param array $registers */
function mb_ereg(string $pattern, string $string, &$registers = null): int|false {}

/** @param array $registers */
function mb_eregi(string $pattern, string $string, &$registers = null): int|false {}

function mb_ereg_replace(string $pattern, string $replacement, string $string, ?string $option = null): string|false|null {}

function mb_eregi_replace(string $pattern, string $replacement, string $string, ?string $option = null): string|false|null {}

function mb_ereg_replace_callback(string $pattern, callable $callback, string $string, ?string $option = null): string|false|null {}

function mb_split(string $pattern, string $string, int $limit = -1): array|false {}

function mb_ereg_match(string $pattern, string $string, ?string $option = null): bool {}

function mb_ereg_search(?string $pattern = null, ?string $option = null): bool {}

function mb_ereg_search_pos(?string $pattern = null, ?string $option = null): array|false {}

function mb_ereg_search_regs(?string $pattern = null, ?string $option = null): array|false {}

function mb_ereg_search_init(string $string, ?string $pattern = null, ?string $option = null): bool {}

function mb_ereg_search_getregs(): array|false {}

function mb_ereg_search_getpos(): int {}

function mb_ereg_search_setpos(int $position): bool {}

function mb_regex_set_options(?string $options = null): string {}
#endif