svn: /phpdoc/zh/trunk/reference/mbstring/functions/ mb-output-handler.xml mb-strimwidth.xml mb-stripos.xml mb-strpos.xml
| From: | Dai Jie | Date: | Thu, 19 Jan 2017 14:44:24 +0000 |
| Subject: | svn: /phpdoc/zh/trunk/reference/mbstring/functions/ mb-output-handler.xml mb-strimwidth.xml mb-stripos.xml mb-strpos.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-4758@lists.php.net to get a copy of this message | ||
daijie Thu, 19 Jan 2017 14:44:24 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=341693
Log:
Sync with En
Changed paths:
U phpdoc/zh/trunk/reference/mbstring/functions/mb-output-handler.xml
U phpdoc/zh/trunk/reference/mbstring/functions/mb-strimwidth.xml
U phpdoc/zh/trunk/reference/mbstring/functions/mb-stripos.xml
U phpdoc/zh/trunk/reference/mbstring/functions/mb-strpos.xml
Modified: phpdoc/zh/trunk/reference/mbstring/functions/mb-output-handler.xml
===================================================================
--- phpdoc/zh/trunk/reference/mbstring/functions/mb-output-handler.xml 2017-01-19 14:20:05 UTC (rev
341692)
+++ phpdoc/zh/trunk/reference/mbstring/functions/mb-output-handler.xml 2017-01-19 14:44:24 UTC (rev
341693)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 328365 Maintainer: daijie Status: ready -->
+<!-- EN-Revision: 341282 Maintainer: daijie Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.mb-output-handler" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -120,17 +120,12 @@
&reftitle.notes;
<note>
<para>
- 如果你想要输出二进制数据,比如图片,并且使用的是 PHP 4.3.x 或
- 更新的版本,必须在任何二进制数据发送到客户端之前使用
<function>header</function> 来设置 Content-Type: 头。(例如
header("Content-Type: image/png"))。
+
如果你想要输出二进制数据,比如图片,必须在任何二进制数据发送到客户端之前使用
<function>header</function> 来设置 Content-Type: 头。(例如
header("Content-Type: image/png"))。
如果 Content-Type: 头已发送,输出字符编码的转换将不会执行。
</para>
<para>
注意,如果发送了 'Content-Type:
text/*',则内容被认为是文本,将发生转换。
</para>
- <para>
- 如果你想要输出二进制数据,比如图片,并且使用的是 PHP 4.2.x 或
- 更早版本,你必须将 <function>mb_http_output</function> 输出编码设置为
"pass" 。
- </para>
</note>
</refsect1>
Modified: phpdoc/zh/trunk/reference/mbstring/functions/mb-strimwidth.xml
===================================================================
--- phpdoc/zh/trunk/reference/mbstring/functions/mb-strimwidth.xml 2017-01-19 14:20:05 UTC (rev
341692)
+++ phpdoc/zh/trunk/reference/mbstring/functions/mb-strimwidth.xml 2017-01-19 14:44:24 UTC (rev
341693)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 331340 Maintainer: daijie Status: ready -->
+<!-- EN-Revision: 340032 Maintainer: daijie Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.mb-strimwidth" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -41,6 +41,7 @@
<listitem>
<para>
开始位置的偏移。从这些字符数开始的截取字符串。(默认是 0
个字符)
+ 如果 start 是负数,就是字符串结尾处的字符数。
</para>
</listitem>
</varlistentry>
@@ -48,7 +49,7 @@
<term><parameter>width</parameter></term>
<listitem>
<para>
- 所需修剪的宽度。
+ 所需修剪的宽度。负数的宽度是从字符串结尾处统计的。
</para>
</listitem>
</varlistentry>
@@ -74,10 +75,32 @@
&reftitle.returnvalues;
<para>
截短后的 <type>string</type>。
- 如果设置了 <parameter>trimmarker</parameter>,还会将
<parameter>trimmarker</parameter> 追加到返回的值。
+ 如果设置了
<parameter>trimmarker</parameter>,还将结尾处的字符替换为
<parameter>trimmarker</parameter> ,并符合 <parameter>width</parameter>
的宽度。
</para>
</refsect1>
-
+
+<refsect1 role="changelog">
+ &reftitle.changelog;
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>7.1.0</entry>
+ <entry>
+ 支持负数的 <parameter>start</parameter> 和
<parameter>width</parameter>。
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </refsect1>
+
<refsect1 role="examples">
&reftitle.examples;
<para>
Modified: phpdoc/zh/trunk/reference/mbstring/functions/mb-stripos.xml
===================================================================
--- phpdoc/zh/trunk/reference/mbstring/functions/mb-stripos.xml 2017-01-19 14:20:05 UTC (rev 341692)
+++ phpdoc/zh/trunk/reference/mbstring/functions/mb-stripos.xml 2017-01-19 14:44:24 UTC (rev 341693)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 331340 Maintainer: daijie Status: ready -->
+<!-- EN-Revision: 340032 Maintainer: daijie Status: ready -->
<!-- Reviewed: no -->
<!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. -->
@@ -48,7 +48,7 @@
<term><parameter>offset</parameter></term>
<listitem>
<para>
- <parameter>haystack</parameter> 里开始搜索的位置
+ <parameter>haystack</parameter>
里开始搜索的位置。如果是负数,就从字符串的尾部开始统计。
</para>
</listitem>
</varlistentry>
@@ -72,29 +72,27 @@
</para>
</refsect1>
- <!-- Use when a CHANGELOG exists
<refsect1 role="changelog">
&reftitle.changelog;
- <para>
- <informaltable>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>&Version;</entry>
- <entry>&Description;</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>Enter the PHP version of change here</entry>
- <entry>Description of change</entry>
- </row>
- </tbody>
- </tgroup>
- </informaltable>
- </para>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>7.1.0</entry>
+ <entry>
+ 支持 <parameter>offset</parameter> 使用负数。
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
</refsect1>
- -->
<!-- Use when examples exist
Modified: phpdoc/zh/trunk/reference/mbstring/functions/mb-strpos.xml
===================================================================
--- phpdoc/zh/trunk/reference/mbstring/functions/mb-strpos.xml 2017-01-19 14:20:05 UTC (rev 341692)
+++ phpdoc/zh/trunk/reference/mbstring/functions/mb-strpos.xml 2017-01-19 14:44:24 UTC (rev 341693)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 331340 Maintainer: daijie Status: ready -->
+<!-- EN-Revision: 340032 Maintainer: daijie Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.mb-strpos" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -52,7 +52,7 @@
<term><parameter>offset</parameter></term>
<listitem>
<para>
- 搜索位置的偏移。如果没有提供该参数,将会使用 0。
+ 搜索位置的偏移。如果没有提供该参数,将会使用 0。负数的 offset
会从字符串尾部开始统计。
</para>
</listitem>
</varlistentry>
@@ -74,6 +74,29 @@
</para>
</refsect1>
+
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>7.1.0</entry>
+ <entry>
+ 支持负数的 <parameter>offset</parameter>。
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </refsect1>
+
<refsect1 role="seealso">
&reftitle.seealso;
<para>