svn: /phpdoc/ja/trunk/reference/mbstring/functions/ mb-str-split.xml

[email protected] (Yoshinari Takaoka)
Newsgroups php.doc.ja
Message-ID <[email protected]>
mumumu                                   Fri, 03 Apr 2020 14:16:46 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=349605

Log:
Fix #79425: Function mb_str_split is not documented yet

Patch provided by Tomas Zubiri.

Bug: https://bugs.php.net/79425 (error getting bug information)
      
Changed paths:
    A   phpdoc/ja/trunk/reference/mbstring/functions/mb-str-split.xml

Added: phpdoc/ja/trunk/reference/mbstring/functions/mb-str-split.xml
===================================================================
--- phpdoc/ja/trunk/reference/mbstring/functions/mb-str-split.xml	                        (rev 0)
+++ phpdoc/ja/trunk/reference/mbstring/functions/mb-str-split.xml	2020-04-03 14:16:46 UTC (rev 349605)
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 349604 Maintainer: mumumu Status: ready -->
+
+<refentry xml:id="function.mb-str-split" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <refnamediv>
+  <refname>mb_str_split</refname>
+  <refpurpose>マルチバイト文字列を受取り、文字の配列を返す</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>array</type><methodname>mb_str_split</methodname>
+   <methodparam><type>string</type><parameter>string</parameter></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>split_length</parameter><initializer>1</initializer></methodparam>
+   <methodparam choice="opt"><type>string</type><parameter>encoding</parameter><initializer>mb_internal_encoding()</initializer></methodparam>
+  </methodsynopsis>
+  <para>
+   この関数は文字列の配列を返します。
+   これは <function>str_split</function> に 1, 2 または 4バイトの固定長のエンコーディングだけでなく、
+   可変長のエンコーディングのサポートも追加したものです。
+   <parameter>split_length</parameter> を指定すると、
+   文字列は指定された数の(バイトではなく)文字のチャンクに分割されます。
+   <parameter>encoding</parameter> もオプションで指定できますが、
+   指定するほうが良いでしょう。
+  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+  &reftitle.parameters;
+  <para>
+   <variablelist>
+    <varlistentry>
+     <term><parameter>string</parameter></term>
+     <listitem>
+      <para>
+       文字またはチャンクに分割する &string;
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>split_length</parameter></term>
+     <listitem>
+      <para>
+        これを指定すると、返される配列の個々の要素は一文字ではなく複数の文字になります。
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>encoding</parameter></term>
+     <listitem>
+      &mbstring.encoding.parameter;
+      <para>
+        サポートされているエンコーディングのうち、ひとつを指定した文字列
+      </para>
+     </listitem>
+    </varlistentry>
+   </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   <function>mb_str_split</function> は、&string; の配列を返します。&return.falseforfailure;.
+  </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+  &reftitle.seealso;
+  <para>
+   <simplelist>
+    <member><function>str_split</function></member>
+   </simplelist>
+  </para>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->


Property changes on: phpdoc/ja/trunk/reference/mbstring/functions/mb-str-split.xml
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
\ No newline at end of property
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.