mirror of
https://github.com/php/doc-en.git
synced 2026-03-23 23:32:18 +01:00
Small fix in grapheme_*() functions
Closes GH-1656.
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
<term><parameter>offset</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Starting position in<parameter>haystack</parameter> in bytes - if given, it must be zero or a
|
||||
Starting position in <parameter>haystack</parameter> in bytes - if given, it must be zero or a
|
||||
positive value that is less than or equal to the length of <parameter>haystack</parameter> in
|
||||
bytes, or a negative value that counts from the end of <parameter>haystack</parameter>.
|
||||
If <parameter>offset</parameter> does not point to the first byte of a UTF-8
|
||||
|
||||
@@ -43,10 +43,10 @@
|
||||
<term><parameter>offset</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The optional <parameter>offset</parameter> parameter allows you to specify where in haystack to
|
||||
The optional <parameter>offset</parameter> parameter allows you to specify where in <parameter>haystack</parameter> to
|
||||
start searching as an offset in grapheme units (not bytes or characters).
|
||||
If the offset is negative, it is treated relative to the end of the string.
|
||||
The position returned is still relative to the beginning of haystack
|
||||
The position returned is still relative to the beginning of <parameter>haystack</parameter>
|
||||
regardless of the value of <parameter>offset</parameter>.
|
||||
</para>
|
||||
</listitem>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<methodparam choice="opt"><type>bool</type><parameter>beforeNeedle</parameter><initializer>&false;</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns part of haystack string starting from and including the first occurrence of case-insensitive needle to the end of haystack.
|
||||
Returns part of <parameter>haystack</parameter> string starting from and including the first occurrence of case-insensitive needle to the end of <parameter>haystack</parameter>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
@@ -43,8 +43,8 @@
|
||||
<term><parameter>beforeNeedle</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
If &true;, grapheme_strstr() returns the part of the
|
||||
<parameter>haystack</parameter> before the first occurrence of the needle (excluding needle).
|
||||
If &true;, <function>grapheme_strstr</function> returns the part of the
|
||||
<parameter>haystack</parameter> before the first occurrence of the needle (excluding <parameter>needle</parameter>).
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
The optional <parameter>offset</parameter> parameter allows you to specify where in <parameter>haystack</parameter> to
|
||||
start searching as an offset in grapheme units (not bytes or characters).
|
||||
If the offset is negative, it is treated relative to the end of the string.
|
||||
The position returned is still relative to the beginning of haystack
|
||||
The position returned is still relative to the beginning of <parameter>haystack</parameter>
|
||||
regardless of the value of <parameter>offset</parameter>.
|
||||
</para>
|
||||
</listitem>
|
||||
|
||||
@@ -43,10 +43,10 @@
|
||||
<term><parameter>offset</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The optional <parameter>offset</parameter> parameter allows you to specify where in<parameter>haystack</parameter> to
|
||||
The optional <parameter>offset</parameter> parameter allows you to specify where in <parameter>haystack</parameter> to
|
||||
start searching as an offset in grapheme units (not bytes or characters).
|
||||
The position returned is still relative to the beginning of <parameter>haystack</parameter>
|
||||
regardless of the value of<parameter>offset</parameter>.
|
||||
regardless of the value of <parameter>offset</parameter>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<term><parameter>offset</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The optional<parameter>offset</parameter> parameter allows you to specify where in <parameter>haystack</parameter> to
|
||||
The optional <parameter>offset</parameter> parameter allows you to specify where in <parameter>haystack</parameter> to
|
||||
start searching as an offset in grapheme units (not bytes or characters).
|
||||
The position returned is still relative to the beginning of <parameter>haystack</parameter>
|
||||
regardless of the value of <parameter>offset</parameter>.
|
||||
|
||||
Reference in New Issue
Block a user