Skip to content

Commit

Permalink
wordwrap() Add errors/changelog sections, specify U+0020 instead U+20
Browse files Browse the repository at this point in the history
  • Loading branch information
mumumu committed Dec 8, 2024
1 parent 17d4e01 commit c4b4aad
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions reference/strings/functions/wordwrap.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 2ed0a46d445d2b213366f943d73660007d39c423 Maintainer: hirokawa Status: ready -->
<!-- EN-Revision: a6ee935b0e0416084509e2c82ecea0578c7f40cc Maintainer: hirokawa Status: ready -->
<!-- CREDITS: shimooka,mumumu -->
<refentry xml:id="function.wordwrap" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand All @@ -20,7 +20,7 @@
<para>
指定した文字数で、指定した文字を用いて文字列を分割します。
<parameter>cut_long_words</parameter> を &true; に設定しないと、
文字列はスペース文字(U+20) の後でラップされます。
文字列はスペース文字(U+0020) の後でラップされます。
</para>
</refsect1>

Expand Down Expand Up @@ -50,6 +50,7 @@
<para>
オプションのパラメータ
<parameter>break</parameter> を用いて行を分割します。
空文字列は指定できません。
</para>
</listitem>
</varlistentry>
Expand All @@ -75,6 +76,32 @@
</para>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.0.0</entry>
<entry>
<parameter>break</parameter> が空文字列の場合、
<classname>ValueError</classname> がスローされるようになりました。
これより前のバージョンでは、
<constant>E_WARNING</constant>
が発生し、&false; を返していました。
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
Expand Down

0 comments on commit c4b4aad

Please sign in to comment.