Skip to content

Commit

Permalink
Fix GH-2639: Mention empty needle in string functions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Aug 7, 2023
1 parent 660cdbf commit 45846ac
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 2 deletions.
7 changes: 7 additions & 0 deletions language-snippets.ent
Original file line number Diff line number Diff line change
Expand Up @@ -3947,6 +3947,13 @@ local: {
</para>
'>

<!ENTITY strings.changelog.needle-empty '<row xmlns="http://docbook.org/ns/docbook">
<entry>8.0.0</entry>
<entry>
<parameter>needle</parameter> now accepts an empty string.
</entry>
</row>'>

<!ENTITY strings.changelog.encoding '
<row xmlns="http://docbook.org/ns/docbook">
<entry>5.6.0</entry>
Expand Down
4 changes: 2 additions & 2 deletions reference/strings/functions/stripos.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
<term><parameter>needle</parameter></term>
<listitem>
<para>
Note that the <parameter>needle</parameter> may be a string of one or
more characters.
The string to search for.
</para>
&strings.parameter.needle.non-string;
</listitem>
Expand Down Expand Up @@ -85,6 +84,7 @@
</thead>
<tbody>
&strings.changelog.ascii-case-folding;
&strings.changelog.needle-empty;
<row>
<entry>8.0.0</entry>
<entry>
Expand Down
3 changes: 3 additions & 0 deletions reference/strings/functions/stristr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
<varlistentry>
<term><parameter>needle</parameter></term>
<listitem>
<para>
The string to search for.
</para>
&strings.parameter.needle.non-string;
</listitem>
</varlistentry>
Expand Down
4 changes: 4 additions & 0 deletions reference/strings/functions/strpos.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
<varlistentry>
<term><parameter>needle</parameter></term>
<listitem>
<para>
The string to search for.
</para>
&strings.parameter.needle.non-string;
</listitem>
</varlistentry>
Expand Down Expand Up @@ -76,6 +79,7 @@
</row>
</thead>
<tbody>
&strings.changelog.needle-empty;
<row>
<entry>8.0.0</entry>
<entry>
Expand Down
1 change: 1 addition & 0 deletions reference/strings/functions/strrchr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
</row>
</thead>
<tbody>
&strings.changelog.needle-empty;
<row>
<entry>8.0.0</entry>
<entry>
Expand Down
4 changes: 4 additions & 0 deletions reference/strings/functions/strripos.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
<varlistentry>
<term><parameter>needle</parameter></term>
<listitem>
<para>
The string to search for.
</para>
&strings.parameter.needle.non-string;
</listitem>
</varlistentry>
Expand Down Expand Up @@ -99,6 +102,7 @@
</thead>
<tbody>
&strings.changelog.ascii-case-folding;
&strings.changelog.needle-empty;
<row>
<entry>8.0.0</entry>
<entry>
Expand Down
4 changes: 4 additions & 0 deletions reference/strings/functions/strrpos.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
<varlistentry>
<term><parameter>needle</parameter></term>
<listitem>
<para>
The string to search for.
</para>
&strings.parameter.needle.non-string;
</listitem>
</varlistentry>
Expand Down Expand Up @@ -94,6 +97,7 @@
</row>
</thead>
<tbody>
&strings.changelog.needle-empty;
<row>
<entry>8.0.0</entry>
<entry>
Expand Down
4 changes: 4 additions & 0 deletions reference/strings/functions/strstr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
<varlistentry>
<term><parameter>needle</parameter></term>
<listitem>
<para>
The string to search for.
</para>
&strings.parameter.needle.non-string;
</listitem>
</varlistentry>
Expand Down Expand Up @@ -86,6 +89,7 @@
</row>
</thead>
<tbody>
&strings.changelog.needle-empty;
<row>
<entry>8.0.0</entry>
<entry>
Expand Down

0 comments on commit 45846ac

Please sign in to comment.