svn: /phpdoc/ en/trunk/reference/mbstring/functions/mb-regex-encoding.xml ja/trunk/reference/mbstring/functions/mb-regex-encoding.xml
| From: | Yoshinari Takaoka | Date: | Fri, 22 Feb 2013 15:49:07 +0000 |
| Subject: | svn: /phpdoc/ en/trunk/reference/mbstring/functions/mb-regex-encoding.xml ja/trunk/reference/mbstring/functions/mb-regex-encoding.xml | ||
| Groups: | php.doc.ja php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-11029@lists.php.net to get a copy of this message | ||
mumumu Fri, 22 Feb 2013 15:49:07 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=329546
Log:
- fixed function desctiption.
- added notice, the internal encoding is not changed by this function.
Changed paths:
U phpdoc/en/trunk/reference/mbstring/functions/mb-regex-encoding.xml
U phpdoc/ja/trunk/reference/mbstring/functions/mb-regex-encoding.xml
Modified: phpdoc/en/trunk/reference/mbstring/functions/mb-regex-encoding.xml
===================================================================
--- phpdoc/en/trunk/reference/mbstring/functions/mb-regex-encoding.xml 2013-02-22 15:47:01 UTC (rev
329545)
+++ phpdoc/en/trunk/reference/mbstring/functions/mb-regex-encoding.xml 2013-02-22 15:49:07 UTC (rev
329546)
@@ -3,7 +3,7 @@
<refentry xml:id="function.mb-regex-encoding" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>mb_regex_encoding</refname>
- <refpurpose>Returns current encoding for multibyte regex as string</refpurpose>
+ <refpurpose>Set/Get character encoding for multibyte regex</refpurpose>
</refnamediv>
<refsect1 role="description">
@@ -13,7 +13,7 @@
<methodparam
choice="opt"><type>string</type><parameter>encoding</parameter></methodparam>
</methodsynopsis>
<para>
- Returns the current encoding for a multibyte regex as a <type>string</type>.
+ Set/Get character encoding for a multibyte regex.
</para>
</refsect1>
@@ -34,7 +34,11 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<simpara>
- Returns the character encoding used by multibyte regex functions.
+ If <parameter>encoding</parameter> is set, then
+ &return.success;
+ In this case, the internal character encoding is NOT changed.
+ If <parameter>encoding</parameter> is omitted, then
+ the current character encoding name for a multibyte regex is returned.
</simpara>
</refsect1>
Modified: phpdoc/ja/trunk/reference/mbstring/functions/mb-regex-encoding.xml
===================================================================
--- phpdoc/ja/trunk/reference/mbstring/functions/mb-regex-encoding.xml 2013-02-22 15:47:01 UTC (rev
329545)
+++ phpdoc/ja/trunk/reference/mbstring/functions/mb-regex-encoding.xml 2013-02-22 15:49:07 UTC (rev
329546)
@@ -37,6 +37,7 @@
&reftitle.returnvalues;
<simpara>
encoding が設定された場合、成功した場合に TRUE を、失敗した場合に FALSE
を返します。
+ このとき、内部文字エンコーディングは変更されません。
encoding
が省略された場合、現在のマルチバイト用の正規表現関数で用いる文字エンコーディング名を返します。
</simpara>
</refsect1>