reference/pcre/constants.xml
37280533a76693adac626a37ffc8daa2276400ce
...
...
@@ -8,57 +8,75 @@
8
8
<tgroup cols="2">
9
9
<thead>
10
10
<row>
11
-
<entry>constant</entry>
12
-
<entry>description</entry>
13
-
<entry>since</entry>
11
+
<entry>&Constants;</entry>
12
+
<entry>&Description;</entry>
13
+
<entry>As of</entry>
14
14
</row>
15
15
</thead>
16
16
<tbody>
17
17
<row xml:id="constant.preg-pattern-order">
18
-
<entry><constant>PREG_PATTERN_ORDER</constant></entry>
18
+
<entry>
19
+
<constant>PREG_PATTERN_ORDER</constant>
20
+
(<type>int</type>)
21
+
</entry>
19
22
<entry>
20
23
Orders results so that <varname>$matches[0]</varname> is an array of full pattern
21
24
matches, <varname>$matches[1]</varname> is an array of strings matched by the first
22
25
parenthesized subpattern, and so on. This flag is only used with
23
26
<function>preg_match_all</function>.
24
27
</entry>
25
-
<entry></entry>
28
+
<entry/>
26
29
</row>
27
30
<row xml:id="constant.preg-set-order">
28
-
<entry><constant>PREG_SET_ORDER</constant></entry>
31
+
<entry>
32
+
<constant>PREG_SET_ORDER</constant>
33
+
(<type>int</type>)
34
+
</entry>
29
35
<entry>
30
36
Orders results so that <varname>$matches[0]</varname> is an array of first set of
31
37
matches, <varname>$matches[1]</varname> is an array of second set of matches, and so
32
38
on. This flag is only used with <function>preg_match_all</function>.
33
39
</entry>
34
-
<entry></entry>
40
+
<entry/>
35
41
</row>
36
42
<row xml:id="constant.preg-offset-capture">
37
-
<entry><constant>PREG_OFFSET_CAPTURE</constant></entry>
43
+
<entry>
44
+
<constant>PREG_OFFSET_CAPTURE</constant>
45
+
(<type>int</type>)
46
+
</entry>
38
47
<entry>
39
48
See the description of
40
49
<constant>PREG_SPLIT_OFFSET_CAPTURE</constant>.
41
50
</entry>
42
-
<entry>4.3.0</entry>
51
+
<entry/>
43
52
</row>
44
53
<row xml:id="constant.preg-split-no-empty">
45
-
<entry><constant>PREG_SPLIT_NO_EMPTY</constant></entry>
54
+
<entry>
55
+
<constant>PREG_SPLIT_NO_EMPTY</constant>
56
+
(<type>int</type>)
57
+
</entry>
46
58
<entry>
47
59
This flag tells <function>preg_split</function> to return only non-empty
48
60
pieces.
49
61
</entry>
50
-
<entry></entry>
62
+
<entry/>
51
63
</row>
52
64
<row xml:id="constant.preg-split-delim-capture">
53
-
<entry><constant>PREG_SPLIT_DELIM_CAPTURE</constant></entry>
65
+
<entry>
66
+
<constant>PREG_SPLIT_DELIM_CAPTURE</constant>
67
+
(<type>int</type>)
68
+
</entry>
54
69
<entry>
55
70
This flag tells <function>preg_split</function> to capture
56
71
parenthesized expression in the delimiter pattern as well.
57
72
</entry>
58
-
<entry>4.0.5</entry>
73
+
<entry/>
59
74
</row>
60
75
<row xml:id="constant.preg-split-offset-capture">
61
-
<entry><constant>PREG_SPLIT_OFFSET_CAPTURE</constant></entry>
76
+
<entry>
77
+
<constant>PREG_SPLIT_OFFSET_CAPTURE</constant>
78
+
(<type>int</type>)
79
+
</entry>
62
80
<entry>
63
81
If this flag is set, for every occurring match the appendant string
64
82
offset will also be returned. Note that this changes the return
...
...
@@ -66,10 +84,13 @@
66
84
matched string at offset 0 and its string offset within subject at
67
85
offset 1. This flag is only used for <function>preg_split</function>.
68
86
</entry>
69
-
<entry>4.3.0</entry>
87
+
<entry/>
70
88
</row>
71
89
<row xml:id="constant.preg-unmatched-as-null">
72
-
<entry><constant>PREG_UNMATCHED_AS_NULL</constant></entry>
90
+
<entry>
91
+
<constant>PREG_UNMATCHED_AS_NULL</constant>
92
+
(<type>int</type>)
93
+
</entry>
73
94
<entry>
74
95
This flag tells <function>preg_match</function> and
75
96
<function>preg_match_all</function> to include unmatched subpatterns in
...
...
@@ -80,7 +101,10 @@
80
101
<entry>7.2.0</entry>
81
102
</row>
82
103
<row xml:id="constant.preg-no-error">
83
-
<entry><constant>PREG_NO_ERROR</constant></entry>
104
+
<entry>
105
+
<constant>PREG_NO_ERROR</constant>
106
+
(<type>int</type>)
107
+
</entry>
84
108
<entry>
85
109
Returned by <function>preg_last_error</function> if there were no
86
110
errors.
...
...
@@ -88,7 +112,10 @@
88
112
<entry>5.2.0</entry>
89
113
</row>
90
114
<row xml:id="constant.preg-internal-error">
91
-
<entry><constant>PREG_INTERNAL_ERROR</constant></entry>
115
+
<entry>
116
+
<constant>PREG_INTERNAL_ERROR</constant>
117
+
(<type>int</type>)
118
+
</entry>
92
119
<entry>
93
120
Returned by <function>preg_last_error</function> if there was an
94
121
internal PCRE error.
...
...
@@ -96,32 +123,41 @@
96
123
<entry>5.2.0</entry>
97
124
</row>
98
125
<row xml:id="constant.preg-backtrack-limit-error">
99
-
<entry><constant>PREG_BACKTRACK_LIMIT_ERROR</constant></entry>
100
126
<entry>
101
-
Returned by <function>preg_last_error</function> if <link
102
-
linkend="ini.pcre.backtrack-limit">backtrack limit</link> was exhausted.
127
+
<constant>PREG_BACKTRACK_LIMIT_ERROR</constant>
128
+
(<type>int</type>)
129
+
</entry>
130
+
<entry>
131
+
Returned by <function>preg_last_error</function> if <link linkend="ini.pcre.backtrack-limit">backtrack limit</link> was exhausted.
103
132
</entry>
104
133
<entry>5.2.0</entry>
105
134
</row>
106
135
<row xml:id="constant.preg-recursion-limit-error">
107
-
<entry><constant>PREG_RECURSION_LIMIT_ERROR</constant></entry>
108
136
<entry>
109
-
Returned by <function>preg_last_error</function> if <link
110
-
linkend="ini.pcre.recursion-limit">recursion limit</link> was exhausted.
137
+
<constant>PREG_RECURSION_LIMIT_ERROR</constant>
138
+
(<type>int</type>)
139
+
</entry>
140
+
<entry>
141
+
Returned by <function>preg_last_error</function> if <link linkend="ini.pcre.recursion-limit">recursion limit</link> was exhausted.
111
142
</entry>
112
143
<entry>5.2.0</entry>
113
144
</row>
114
145
<row xml:id="constant.preg-bad-utf8-error">
115
-
<entry><constant>PREG_BAD_UTF8_ERROR</constant></entry>
146
+
<entry>
147
+
<constant>PREG_BAD_UTF8_ERROR</constant>
148
+
(<type>int</type>)
149
+
</entry>
116
150
<entry>
117
151
Returned by <function>preg_last_error</function> if the last error was
118
-
caused by malformed UTF-8 data (only when running a regex in <link
119
-
linkend="reference.pcre.pattern.modifiers">UTF-8 mode</link>).
152
+
caused by malformed UTF-8 data (only when running a regex in <link linkend="reference.pcre.pattern.modifiers">UTF-8 mode</link>).
120
153
</entry>
121
154
<entry>5.2.0</entry>
122
155
</row>
123
156
<row xml:id="constant.preg-bad-utf8-offset-error">
124
-
<entry><constant>PREG_BAD_UTF8_OFFSET_ERROR</constant></entry>
157
+
<entry>
158
+
<constant>PREG_BAD_UTF8_OFFSET_ERROR</constant>
159
+
(<type>int</type>)
160
+
</entry>
125
161
<entry>
126
162
Returned by <function>preg_last_error</function> if the offset didn't
127
163
correspond to the begin of a valid UTF-8 code point (only when running
...
...
@@ -131,7 +167,10 @@
131
167
<entry>5.3.0</entry>
132
168
</row>
133
169
<row xml:id="constant.preg-jit-stacklimit-error">
134
-
<entry><constant>PREG_JIT_STACKLIMIT_ERROR</constant></entry>
170
+
<entry>
171
+
<constant>PREG_JIT_STACKLIMIT_ERROR</constant>
172
+
(<type>int</type>)
173
+
</entry>
135
174
<entry>
136
175
Returned by <function>preg_last_error</function> if the last PCRE function
137
176
failed due to limited JIT stack space.
...
...
@@ -139,7 +178,10 @@
139
178
<entry>7.0.0</entry>
140
179
</row>
141
180
<row xml:id="constant.pcre-version">
142
-
<entry><constant>PCRE_VERSION</constant></entry>
181
+
<entry>
182
+
<constant>PCRE_VERSION</constant>
183
+
(<type>string</type>)
184
+
</entry>
143
185
<entry>
144
186
PCRE version and release date (e.g. "<literal>7.0 18-Dec-2006</literal>").
145
187
</entry>
...
...
@@ -149,7 +191,6 @@
149
191
</tgroup>
150
192
</table>
151
193
</appendix>
152
-

153
194
<!-- Keep this comment at the end of the file
154
195
Local variables:
155
196
mode: sgml
156
197