forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphp_pcre.stub.php
146 lines (133 loc) · 3.39 KB
/
php_pcre.stub.php
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?php
/** @generate-class-entries */
/**
* @var int
* @cvalue PREG_PATTERN_ORDER
*/
const PREG_PATTERN_ORDER = UNKNOWN;
/**
* @var int
* @cvalue PREG_SET_ORDER
*/
const PREG_SET_ORDER = UNKNOWN;
/**
* @var int
* @cvalue PREG_OFFSET_CAPTURE
*/
const PREG_OFFSET_CAPTURE = UNKNOWN;
/**
* @var int
* @cvalue PREG_UNMATCHED_AS_NULL
*/
const PREG_UNMATCHED_AS_NULL = UNKNOWN;
/**
* @var int
* @cvalue PREG_SPLIT_NO_EMPTY
*/
const PREG_SPLIT_NO_EMPTY = UNKNOWN;
/**
* @var int
* @cvalue PREG_SPLIT_DELIM_CAPTURE
*/
const PREG_SPLIT_DELIM_CAPTURE = UNKNOWN;
/**
* @var int
* @cvalue PREG_SPLIT_OFFSET_CAPTURE
*/
const PREG_SPLIT_OFFSET_CAPTURE = UNKNOWN;
/**
* @var int
* @cvalue PREG_GREP_INVERT
*/
const PREG_GREP_INVERT = UNKNOWN;
/**
* @var int
* @cvalue PHP_PCRE_NO_ERROR
*/
const PREG_NO_ERROR = UNKNOWN;
/**
* @var int
* @cvalue PHP_PCRE_INTERNAL_ERROR
*/
const PREG_INTERNAL_ERROR = UNKNOWN;
/**
* @var int
* @cvalue PHP_PCRE_BACKTRACK_LIMIT_ERROR
*/
const PREG_BACKTRACK_LIMIT_ERROR = UNKNOWN;
/**
* @var int
* @cvalue PHP_PCRE_RECURSION_LIMIT_ERROR
*/
const PREG_RECURSION_LIMIT_ERROR = UNKNOWN;
/**
* @var int
* @cvalue PHP_PCRE_BAD_UTF8_ERROR
*/
const PREG_BAD_UTF8_ERROR = UNKNOWN;
/**
* @var int
* @cvalue PHP_PCRE_BAD_UTF8_OFFSET_ERROR
*/
const PREG_BAD_UTF8_OFFSET_ERROR = UNKNOWN;
/**
* @var int
* @cvalue PHP_PCRE_JIT_STACKLIMIT_ERROR
*/
const PREG_JIT_STACKLIMIT_ERROR = UNKNOWN;
/**
* @var string
* @cvalue php_pcre_version
*/
const PCRE_VERSION = UNKNOWN;
/**
* @var int
* @cvalue PCRE2_MAJOR
*/
const PCRE_VERSION_MAJOR = UNKNOWN;
/**
* @var int
* @cvalue PCRE2_MINOR
*/
const PCRE_VERSION_MINOR = UNKNOWN;
/**
* @var bool
* @cvalue PHP_PCRE_JIT_SUPPORT
*/
const PCRE_JIT_SUPPORT = UNKNOWN;
/**
* @param array $matches
* @frameless-function {"arity": 2}
*/
function preg_match(string $pattern, string $subject, &$matches = null, int $flags = 0, int $offset = 0): int|false {}
/** @param array $matches */
function preg_match_all(string $pattern, string $subject, &$matches = null, int $flags = 0, int $offset = 0): int|false {}
/**
* @param int $count
* @return string|array<int|string, string>|null
* @frameless-function {"arity": 3}
*/
function preg_replace(string|array $pattern, string|array $replacement, string|array $subject, int $limit = -1, &$count = null): string|array|null {}
/**
* @param int $count
* @return string|array<int|string, string>|null
*/
function preg_filter(string|array $pattern, string|array $replacement, string|array $subject, int $limit = -1, &$count = null): string|array|null {}
/**
* @param int $count
* @return string|array<int|string, string>|null
*/
function preg_replace_callback(string|array $pattern, callable $callback, string|array $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {}
/** @param int $count */
function preg_replace_callback_array(array $pattern, string|array $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {}
/**
* @return array<int|string, string|array>|false
* @refcount 1
*/
function preg_split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array|false {}
/** @compile-time-eval */
function preg_quote(string $str, ?string $delimiter = null): string {}
/** @refcount 1 */
function preg_grep(string $pattern, array $array, int $flags = 0): array|false {}
function preg_last_error(): int {}
function preg_last_error_msg(): string {}