Skip to content

Commit ac164c9

Browse files
committed
Flip description of PREG_OFFSET_CAPTURE (fix #1097)
1 parent d368a4c commit ac164c9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

reference/pcre/constants.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@
4545
(<type>int</type>)
4646
</entry>
4747
<entry>
48-
See the description of
49-
<constant>PREG_SPLIT_OFFSET_CAPTURE</constant>.
48+
If this flag is set, for every occurring match the appendant string
49+
offset will also be returned. Note that this changes the return
50+
values in an array where every element is an array consisting of the
51+
matched string at offset 0 and its string offset within subject at
52+
offset 1.
5053
</entry>
5154
<entry/>
5255
</row>
@@ -78,11 +81,8 @@
7881
(<type>int</type>)
7982
</entry>
8083
<entry>
81-
If this flag is set, for every occurring match the appendant string
82-
offset will also be returned. Note that this changes the return
83-
values in an array where every element is an array consisting of the
84-
matched string at offset 0 and its string offset within subject at
85-
offset 1. This flag is only used for <function>preg_split</function>.
84+
See the description of <constant>PREG_OFFSET_CAPTURE</constant>.
85+
This flag is only used for <function>preg_split</function>.
8686
</entry>
8787
<entry/>
8888
</row>

0 commit comments

Comments
 (0)