Skip to content

Commit

Permalink
[PHP 8.4] Add manual for grapheme_str_split function
Browse files Browse the repository at this point in the history
  • Loading branch information
mumumu committed Dec 15, 2024
1 parent ae490ed commit 7f25685
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions reference/mbstring/functions/mb-str-split.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
<para>
<simplelist>
<member><function>str_split</function></member>
<member><function>grapheme_str_split</function></member>
</simplelist>
</para>
</refsect1>
Expand Down
5 changes: 4 additions & 1 deletion reference/strings/functions/str-split.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: e1621b408bdd443153611090847023aa39829bb0 Maintainer: takagi Status: ready -->
<!-- EN-Revision: 31e301590744e91ee5903f3e20973ddb9f3dadbb Maintainer: takagi Status: ready -->
<!-- Credits: mumumu -->
<refentry xml:id="function.str-split" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -160,6 +160,8 @@ Array
<function>str_split</function> でのマルチバイト文字列の扱いは、文字単位ではなくバイト単位での分割になります。
コードポイント単位で文字列を分割するには、
<function>mb_str_split</function> を使います。
文字列を書記素クラスターに分割するには、
<function>grapheme_str_split</function> を使います。
</para>
</note>
</refsect1>
Expand All @@ -169,6 +171,7 @@ Array
<para>
<simplelist>
<member><function>mb_str_split</function></member>
<member><function>grapheme_str_split</function></member>
<member><function>chunk_split</function></member>
<member><function>preg_split</function></member>
<member><function>explode</function></member>
Expand Down

0 comments on commit 7f25685

Please sign in to comment.