com doc/fr: Apply commit a69f6cf5d2437de2f6011b25fc2b2b890e60ab2b: reference/mbstring/functions/mb-strimwidth.xml reference/mbstring/functions/mb-strwidth.xml

[email protected] (George Peter Banyard) Wed, 17 Feb 2021 10:08:10 +0000
Newsgroups php.doc.fr
Message-ID <[email protected]>
Commit:    427a29f50498adf7c0e7ba6928891d41602275d9
Author:    George Peter Banyard <[email protected]>         Wed, 17 Feb 2021 10:08:10 +0000
Parents:   b320b639151ae30aa541d9cec66d0f019eea2c75
Branches:  master

Link:       http://git.php.net/?p=doc/fr.git;a=commitdiff;h=427a29f50498adf7c0e7ba6928891d41602275d9

Log:
Apply commit a69f6cf5d2437de2f6011b25fc2b2b890e60ab2b

Clarify what the 'width' in mb_strimwidth means

Update revisions to 64f2f1c70d2f42507d9c624e09dcf486ceca7be5 due to the fix-build revert stuff

Changed paths:
  M  reference/mbstring/functions/mb-strimwidth.xml
  M  reference/mbstring/functions/mb-strwidth.xml


Diff:
diff --git a/reference/mbstring/functions/mb-strimwidth.xml b/reference/mbstring/functions/mb-strimwidth.xml
index d97cead896..68d0df828d 100644
--- a/reference/mbstring/functions/mb-strimwidth.xml
+++ b/reference/mbstring/functions/mb-strimwidth.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 92f1b8b177eb5730382abf9f27bae868f1bb636f Maintainer: yannick Status: ready -->
+<!-- EN-Revision: 64f2f1c70d2f42507d9c624e09dcf486ceca7be5 Maintainer: yannick Status: ready -->
 <!-- Reviewed: yes -->
 <refentry xml:id="function.mb-strimwidth" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <refnamediv>
@@ -19,7 +19,12 @@
    <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>encoding</parameter><initializer>&null;</initializer></methodparam>
   </methodsynopsis>
   <para>
-   Tronque la chaîne <parameter>str</parameter> à la longueur <parameter>width</parameter>.
+   Tronque la chaîne <parameter>string</parameter> à la longueur
+   <parameter>width</parameter> spécifié,
+   où les caractères à demi-chasse comptent en tant que <literal>1</literal>, et
+   les caractères à pleine chasse comptent en tant que <literal>2</literal>.
+   Voir <link xlink:href="&url.unicode.reports.tr;11/">&url.unicode.reports.tr;11/</link>
+   pour plus de détails concernant les chasse des caractères Asiatique de l'Est.
   </para>
  </refsect1>
 
diff --git a/reference/mbstring/functions/mb-strwidth.xml b/reference/mbstring/functions/mb-strwidth.xml
index c4e0162486..1929dec4d7 100644
--- a/reference/mbstring/functions/mb-strwidth.xml
+++ b/reference/mbstring/functions/mb-strwidth.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 92f1b8b177eb5730382abf9f27bae868f1bb636f Maintainer: yannick Status: ready -->
+<!-- EN-Revision: 64f2f1c70d2f42507d9c624e09dcf486ceca7be5 Maintainer: yannick Status: ready -->
 <!-- Reviewed: yes -->
 <refentry xml:id="function.mb-strwidth" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <refnamediv>
@@ -19,6 +19,8 @@
    Retourne la chasse de <type>string</type> <parameter>string</parameter>,
    où les caractères à demi-chasse comptent en tant que <literal>1</literal>, et
    les caractères à pleine chasse comptent en tant que <literal>2</literal>.
+   Voir <link xlink:href="&url.unicode.reports.tr;11/">&url.unicode.reports.tr;11/</link>
+   pour plus de détails concernant les chasse des caractères Asiatique de l'Est.
   </para>
   <para>
    Les caractères à pleine chasse sont :
@@ -111,6 +113,30 @@
   </informaltable>
  </refsect1>
 
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example xml:id="mb-strwidth.example.basic">
+   <title>Exemple <function>mb_strwidth</function></title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+var_dump(
+    mb_strwidth('a'),       // LATIN SMALL LETTER A
+    mb_strwidth("\u{ff41}") // FULLWIDTH LATIN SMALL LETTER A
+);
+?>
+]]>
+   </programlisting>
+   &example.outputs;
+   <screen>
+<![CDATA[
+int(1)
+int(2)
+]]>
+   </screen>
+  </example>
+ </refsect1>
+
  <refsect1 role="seealso">
   &reftitle.seealso;
   <para>