cvs: phpdoc-fr /reference/strings/functions strnatcasecmp.xml strpbrk.xml strrpos.xml substr-replace.xml trim.xml ucfirst.xml ucwords.xml vfprintf.xml
vprintf.xml vsprintf.xml wordwrap.xml /reference/swf/functions swf-closefile.xml /reference/sybase ini.xml /reference/tidy/functions
tidy-construct.xml tidy-parse-string.xml tidyNode-isPhp.xml tidynode-getparent.xml
| From: | Yannick Torres | Date: | Sun, 25 May 2008 09:00:36 +0000 |
| Subject: | cvs: phpdoc-fr /reference/strings/functions strnatcasecmp.xml strpbrk.xml strrpos.xml substr-replace.xml trim.xml ucfirst.xml ucwords.xml vfprintf.xml vprintf.xml vsprintf.xml wordwrap.xml /reference/swf/functions swf-closefile.xml /reference/sybase ini.xml /reference/tidy/functions tidy-construct.xml tidy-parse-string.xml tidyNode-isPhp.xml tidynode-getparent.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-5935@lists.php.net to get a copy of this message | ||
yannick Sun May 25 09:00:36 2008 UTC
Modified files:
/phpdoc-fr/reference/strings/functions strnatcasecmp.xml
strpbrk.xml strrpos.xml
substr-replace.xml trim.xml
ucfirst.xml ucwords.xml
vfprintf.xml vprintf.xml
vsprintf.xml wordwrap.xml
/phpdoc-fr/reference/swf/functions swf-closefile.xml
/phpdoc-fr/reference/sybase ini.xml
/phpdoc-fr/reference/tidy/functions tidy-construct.xml
tidynode-getparent.xml
tidyNode-isPhp.xml
tidy-parse-string.xml
Log:
syn with EN
http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/strnatcasecmp.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc-fr/reference/strings/functions/strnatcasecmp.xml diff -u phpdoc-fr/reference/strings/functions/strnatcasecmp.xml:1.14 phpdoc-fr/reference/strings/functions/strnatcasecmp.xml:1.15 --- phpdoc-fr/reference/strings/functions/strnatcasecmp.xml:1.14 Thu Jun 21 17:04:57 2007 +++ phpdoc-fr/reference/strings/functions/strnatcasecmp.xml Sun May 25 09:00:35 2008 @@ -1,16 +1,15 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.15 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> -<refentry xml:id="function.strnatcasecmp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> +<refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="function.strnatcasecmp"> <refnamediv> <refname>strnatcasecmp</refname> - <refpurpose> - Comparaison de chaînes avec l'algorithme d'"ordre naturel" (insensible à la casse) - </refpurpose> + <refpurpose>Comparaison de chaînes avec l'algorithme d'"ordre naturel" (insensible à la casse)</refpurpose> </refnamediv> - <refsect1> + + <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>int</type><methodname>strnatcasecmp</methodname> @@ -18,33 +17,67 @@ <methodparam><type>string</type><parameter>str2</parameter></methodparam> </methodsynopsis> <para> - <function>strnatcasecmp</function> implémente l'algorithme - de comparaison qui ordonne les chaînes tel qu'un homme - le ferait. Cette fonction est similaire à la fonction - <function>strnatcmp</function>, mais la comparaison n'est pas - sensible à la casse. Pour plus de détails, reportez-vous à - <link xlink:href="&url.strnatcmp;"><literal>Natural Order String Comparison</literal></link> - de Martin Pool (en anglais). + <function>strnatcasecmp</function> implémente l'algorithme de comparaison + qui ordonne les chaînes tel qu'un homme le ferait. Cette fonction est + similaire à la fonction <function>strnatcmp</function>, mais la comparaison + n'est pas sensible à la casse. Pour plus de détails, reportez-vous à + <link xlink:href="&url.strnatcmp;"><literal>Natural Order String + Comparison</literal></link> de Martin Pool (en anglais). </para> - <simpara> - <function>strnatcasecmp</function> retourne < 0 si - <parameter>str1</parameter> est inférieure à <parameter>str2</parameter> - > 0 si <parameter>str1</parameter> est supérieure à + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str1</parameter></term> + <listitem> + <para> + La première chaîne. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>str2</parameter></term> + <listitem> + <para> + La seconde chaîne. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Tout comme les autres fonctions de comparaison de chaînes, + celle-ci retourne < 0 si <parameter>str1</parameter> + est inférieure à <parameter>str2</parameter> > 0 si + <parameter>str1</parameter> est supérieure à <parameter>str2</parameter>, et 0 si les deux chaînes sont égales. - </simpara> - <simpara> - Voir aussi - <function>preg_match</function>, - <function>strcasecmp</function>, - <function>substr</function>, - <function>stristr</function>, - <function>strcmp</function>, - <function>strncmp</function>, - <function>strncasecmp</function>, - <function>strnatcmp</function> et - <function>strstr</function>. - </simpara> + </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>preg_match</function></member> + <member><function>strcmp</function></member> + <member><function>strcasecmp</function></member> + <member><function>substr</function></member> + <member><function>stristr</function></member> + <member><function>strncasecmp</function></member> + <member><function>strncmp</function></member> + <member><function>strstr</function></member> + <member><function>setlocale</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/strpbrk.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-fr/reference/strings/functions/strpbrk.xml diff -u phpdoc-fr/reference/strings/functions/strpbrk.xml:1.6 phpdoc-fr/reference/strings/functions/strpbrk.xml:1.7 --- phpdoc-fr/reference/strings/functions/strpbrk.xml:1.6 Thu Jun 21 17:04:57 2007 +++ phpdoc-fr/reference/strings/functions/strpbrk.xml Sun May 25 09:00:35 2008 @@ -1,52 +1,83 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.strpbrk" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>strpbrk</refname> - <refpurpose> - Recherche une chaîne de caractères dans un ensemble de caractères - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>strpbrk</methodname> - <methodparam><type>string</type><parameter>haystack</parameter></methodparam> - <methodparam><type>string</type><parameter>char_list</parameter></methodparam> - </methodsynopsis> - <para> - <function>strpbrk</function> recherche la chaîne <parameter>haystack</parameter> - dans l'ensemble de caractères <parameter>char_list</parameter> et - retourne une chaîne commençant au caractère trouvé (ou &false; s'il n'est pas trouvé). - </para> - <note> - <para> - Le paramètre <parameter>char_list</parameter> est sensible à la casse. - </para> - </note> - <para> - <example> - <title>Exemple avec <function>strpbrk</function></title> - <programlisting role="php"> + +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.strpbrk"> + <refnamediv> + <refname>strpbrk</refname> + <refpurpose>Recherche une chaîne de caractères dans un ensemble de caractères</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>strpbrk</methodname> + <methodparam><type>string</type><parameter>haystack</parameter></methodparam> + <methodparam><type>string</type><parameter>char_list</parameter></methodparam> + </methodsynopsis> + <para> + <function>strpbrk</function> recherche la chaîne <parameter>haystack</parameter> + dans l'ensemble de caractères <parameter>char_list</parameter>. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>haystack</parameter></term> + <listitem> + <para> + La chaîne dans laquelle on cherche <parameter>char_list</parameter>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>char_list</parameter></term> + <listitem> + <para> + Ce paramètre est sensible à la casse. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne une chaîne, commençant au premier caractère trouvé, + ou &false; s'il n'a pas été trouvé. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>strpbrk</function></title> + <programlisting role="php"> <![CDATA[ <?php -$text = 'Ceci est un texte Simple.'; +$text = 'This is a Simple text.'; -// Ceci affichera "i est un texte simple." car 'i' correspond en premier +// Ceci affichera "is is a Simple text." car 'i' correspond au premier echo strpbrk($text, 'mi'); -// Ceci affichera "Simple." car les caractères sont sensibles à la casse +// Ceci affichera "Simple text." car les caractères sont sensibles à la casse echo strpbrk($text, 'S'); ?> ]]> - </programlisting> - </example> - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/strrpos.xml?r1=1.22&r2=1.23&diff_format=u Index: phpdoc-fr/reference/strings/functions/strrpos.xml diff -u phpdoc-fr/reference/strings/functions/strrpos.xml:1.22 phpdoc-fr/reference/strings/functions/strrpos.xml:1.23 --- phpdoc-fr/reference/strings/functions/strrpos.xml:1.22 Thu Jun 21 17:04:57 2007 +++ phpdoc-fr/reference/strings/functions/strrpos.xml Sun May 25 09:00:35 2008 @@ -1,89 +1,128 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.22 $ --> -<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.23 $ --> +<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.strrpos" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>strrpos</refname> - <refpurpose> - Trouve la position de la dernière occurrence d'un caractère dans une chaîne - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>strrpos</methodname> - <methodparam><type>string</type><parameter>haystack</parameter></methodparam> - <methodparam><type>string</type><parameter>needle</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>offset</parameter></methodparam> - </methodsynopsis> - <para> - <function>strrpos</function> retourne la position numérique - de la dernière occurrence du caractère <parameter>needle</parameter> - dans la chaîne <parameter>haystack</parameter>. Notez que - <parameter>needle</parameter> doit être un caractère unique en &php; 4. - Si une chaîne est passée dans ce paramètre, seul le premier - caractère sera utilisé. - </para> - <para> - Si <parameter>needle</parameter> n'est pas trouvé, <function>strrpos</function> - retournera &false;. - </para> - <para> - Il est facile de confondre le résultat "caractère trouvé à la - position 0" et "caractère non trouvé". Voici comment faire la différence : - <example> - <title>Exemple avec <function>strrpos</function></title> - <programlisting role="php"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.strrpos"> + <refnamediv> + <refname>strrpos</refname> + <refpurpose>Trouve la position de la dernière occurrence d'un caractère dans une chaîne</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>strrpos</methodname> + <methodparam><type>string</type><parameter>haystack</parameter></methodparam> + <methodparam><type>string</type><parameter>needle</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>offset</parameter></methodparam> + </methodsynopsis> + <para> + Retourne la position numérique de la dernière occurrence du caractère + <parameter>needle</parameter> dans la chaîne <parameter>haystack</parameter>. + Notez que <parameter>needle</parameter> doit être un caractère unique + en PHP 4. Si une chaîne est passée dans ce paramètre, seul le premier + caractère sera utilisé. + </para> + <para> + Si <parameter>needle</parameter> n'est pas trouvé, <function>strrpos</function> + retournera &false;. + </para> + <para> + Il est facile de confondre le résultat "caractère trouvé à la + position 0" et "caractère non trouvé". Voici comment faire la différence : + <informalexample> + <programlisting role="php"> <![CDATA[ <?php + // À partir de PHP 4.0.0 : -$pos = strrpos($machaine, "b"); +$pos = strrpos($mystring, "b"); if ($pos === false) { // note : trois signes égal - // pas trouvé + // pas trouvé... } // en versions plus anciennes que 4.0.0 : -$pos = strrpos($machaine, "b"); +$pos = strrpos($mystring, "b"); if (is_bool($pos) && !$pos) { - // pas trouvé + // pas trouvé... } ?> ]]> - </programlisting> - </example> - </para> - <para> - Si <parameter>needle</parameter> n'est pas une chaîne, il est - converti en entier, et utilisé comme caractère de code ASCII - correspondant. - </para> - <note> - <simpara> - Depuis &php; 5.0.0, <parameter>offset</parameter> peut être spécifié - pour commencer à rechercher un nombre de caractères arbitraires dans la - chaîne. Les valeurs négatives vont stopper la recherche à partir d'un - point arbitraire avant la fin de la chaîne. - </simpara> - </note> - <note> - <simpara> - Le paramètre <parameter>needle</parameter> peut être composé de plus - d'un caractère à partir de &php; 5.0.0. - </simpara> - </note> - <para> - Voir aussi - <function>strpos</function>, - <function>strripos</function>, - <function>strrchr</function>, - <function>substr</function>, - <function>stristr</function> et - <function>strstr</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </informalexample> + </para> + <para> + Si <parameter>needle</parameter> n'est pas une chaîne, il est + converti en entier, et utilisé comme caractère de code ASCII + correspondant. + </para> + <note> + <simpara> + Depuis PHP 5.0.0, <parameter>offset</parameter> peut être spécifié + pour commencer à rechercher un nombre de caractères arbitraires dans la + chaîne. Les valeurs négatives vont stopper la recherche à partir d'un + point arbitraire avant la fin de la chaîne. + </simpara> + </note> + <note> + <simpara> + Le paramètre <parameter>needle</parameter> peut être composé de plus + d'un caractère à partir de PHP 5.0.0. + </simpara> + </note> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>haystack</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>needle</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>offset</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>strpos</function></member> + <member><function>strripos</function></member> + <member><function>strrchr</function></member> + <member><function>substr</function></member> + <member><function>stristr</function></member> + <member><function>strstr</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/substr-replace.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc-fr/reference/strings/functions/substr-replace.xml diff -u phpdoc-fr/reference/strings/functions/substr-replace.xml:1.14 phpdoc-fr/reference/strings/functions/substr-replace.xml:1.15 --- phpdoc-fr/reference/strings/functions/substr-replace.xml:1.14 Thu Jun 21 17:04:57 2007 +++ phpdoc-fr/reference/strings/functions/substr-replace.xml Sun May 25 09:00:35 2008 @@ -1,63 +1,109 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.15 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.substr-replace" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>substr_replace</refname> - <refpurpose>Remplace un segment dans une chaîne</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>mixed</type><methodname>substr_replace</methodname> - <methodparam><type>mixed</type><parameter>string</parameter></methodparam> - <methodparam><type>string</type><parameter>replacement</parameter></methodparam> - <methodparam><type>int</type><parameter>start</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam> - </methodsynopsis> - <para> - <function>substr_replace</function> remplace un segment de la - chaîne <parameter>string</parameter> par la chaîne - <parameter>replacement</parameter>. Le segment est délimité - par <parameter>start</parameter> et éventuellement par - <parameter>length</parameter>. La chaîne de résultat est retournée. - Si <parameter>string</parameter> est un tableau, alors un tableau est - retourné. - </para> - <para> - Si <parameter>start</parameter> est positif, le remplacement - se fera à partir du <parameter>start</parameter>-ième caractère - de <parameter>string</parameter>. - </para> - <para> - Si <parameter>start</parameter> est négatif, le remplacement - se fera à partir du <parameter>start</parameter>-ième caractère - en partant de la fin de la chaîne <parameter>string</parameter>. - </para> - <para> - Si <parameter>length</parameter> est fourni et positif, il - représentera la longueur du segment de code remplacé dans la - chaîne <parameter>string</parameter>. S'il est négatif, il - représentera la longueur du segment remplacé, mais compté - dans l'ordre inverse de la chaîne <parameter>string</parameter>. - S'il est omis, il prendra la valeur par défaut de la taille - de la chaîne, et remplacera tout jusqu'à la fin de la chaîne - <parameter>string</parameter>. Bien sûr, si - <parameter>length</parameter> vaut 0, alors, cette fonction - aura comme effet d'insérer <parameter>replacement</parameter> dans - <parameter>string</parameter> à la position - <parameter>start</parameter> donnée. - </para> - <para> - <example> - <title>Exemple avec <function>substr_replace</function></title> - <programlisting role="php"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.substr-replace"> + <refnamediv> + <refname>substr_replace</refname> + <refpurpose>Remplace un segment dans une chaîne</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>mixed</type><methodname>substr_replace</methodname> + <methodparam><type>mixed</type><parameter>string</parameter></methodparam> + <methodparam><type>string</type><parameter>replacement</parameter></methodparam> + <methodparam><type>int</type><parameter>start</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam> + </methodsynopsis> + <para> + <function>substr_replace</function> remplace un segment de la + chaîne <parameter>string</parameter> par la chaîne + <parameter>replacement</parameter>. Le segment est délimité + par <parameter>start</parameter> et éventuellement par + <parameter>length</parameter>. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>string</parameter></term> + <listitem> + <para> + La chaîne d'entrée. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>replacement</parameter></term> + <listitem> + <para> + La chaîne de remplacement. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>start</parameter></term> + <listitem> + <para> + Si <parameter>start</parameter> est positif, le remplacement + se fera à partir du <parameter>start</parameter>-ième caractère + de <parameter>string</parameter>. + </para> + <para> + Si <parameter>start</parameter> est négatif, le remplacement + se fera à partir du <parameter>start</parameter>-ième caractère + en partant de la fin de la chaîne <parameter>string</parameter>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>length</parameter></term> + <listitem> + <para> + Si <parameter>length</parameter> est fourni et positif, il + représentera la longueur du segment de code remplacé dans la + chaîne <parameter>string</parameter>. S'il est négatif, il + représentera la longueur du segment remplacé, mais compté + dans l'ordre inverse de la chaîne <parameter>string</parameter>. + S'il est omis, il prendra la valeur par défaut de la taille + de la chaîne, et remplacera tout jusqu'à la fin de la chaîne + <parameter>string</parameter>. Bien sûr, si + <parameter>length</parameter> vaut 0, alors, cette fonction + aura comme effet d'insérer <parameter>replacement</parameter> dans + <parameter>string</parameter> à la position + <parameter>start</parameter> donnée. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + La chaîne résultante est retournée. Si le paramètre + <parameter>string</parameter> est un tableau, alors un + tableau sera retourné. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>substr_replace</function></title> + <programlisting role="php"> <![CDATA[ <?php $var = 'ABCDEFGH:/MNRPQR/'; -echo "Original : $var<hr>\n"; +echo "Original : $var<hr />\n"; // Remplace toute la chaîne $var par 'bob'. echo substr_replace($var, 'bob', 0) . "<br />\n"; @@ -74,19 +120,27 @@ echo substr_replace($var, '', 10, -1) . "<br />\n"; ?> ]]> - </programlisting> - </example> - </para> - - ¬e.bin-safe; - - <para> - Voir aussi - <function>str_replace</function> et - <function>substr</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + ¬e.bin-safe; + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>str_replace</function></member> + <member><function>substr</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/trim.xml?r1=1.21&r2=1.22&diff_format=u Index: phpdoc-fr/reference/strings/functions/trim.xml diff -u phpdoc-fr/reference/strings/functions/trim.xml:1.21 phpdoc-fr/reference/strings/functions/trim.xml:1.22 --- phpdoc-fr/reference/strings/functions/trim.xml:1.21 Fri Mar 7 20:19:08 2008 +++ phpdoc-fr/reference/strings/functions/trim.xml Sun May 25 09:00:35 2008 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.21 $ --> -<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.22 $ --> +<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> -<refentry xml:id="function.trim" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.trim"> <refnamediv> <refname>trim</refname> <refpurpose> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/ucfirst.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc-fr/reference/strings/functions/ucfirst.xml diff -u phpdoc-fr/reference/strings/functions/ucfirst.xml:1.14 phpdoc-fr/reference/strings/functions/ucfirst.xml:1.15 --- phpdoc-fr/reference/strings/functions/ucfirst.xml:1.14 Thu Jun 21 17:04:57 2007 +++ phpdoc-fr/reference/strings/functions/ucfirst.xml Sun May 25 09:00:35 2008 @@ -1,32 +1,63 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> -<!-- EN-Revision: 1.3 Maintainer: dams Status: partial --> +<!-- $Revision: 1.15 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.ucfirst" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>ucfirst</refname> - <refpurpose>Met le premier caractère en majuscule</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>ucfirst</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - </methodsynopsis> - <para> - <methodname>ucfirst</methodname> retourne la chaîne <parameter>str</parameter> - après avoir remplacé le premier caractère par sa majuscule, si le - premier caractère est alphabétique. - </para> - <para> - Notez que la notion d'"alphabétique" est déterminée par la configuration - de localisation. Cela signifie que pour la configuration par défaut - "C", les caractères tels que les voyelles accentuées (comme - <literal>é</literal>, <literal>è</literal> ou <literal>à</literal>) - ne seront pas converties. - <example> - <title>Exemple avec <function>ucfirst</function></title> - <programlisting role="php"> + +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.ucfirst"> + <refnamediv> + <refname>ucfirst</refname> + <refpurpose>Met le premier caractère en majuscule</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>ucfirst</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + </methodsynopsis> + <para> + Retourne la chaîne <parameter>str</parameter> après avoir remplacé + le premier caractère par sa majuscule, si le premier caractère est + alphabétique. + </para> + <para> + Notez que la notion d'"alphabétique" est déterminée par la configuration + de localisation. Cela signifie que pour la configuration par défaut + "C", les caractères tels que les voyelles accentuées (comme + <literal>é</literal>, <literal>è</literal> ou <literal>à</literal>) + ne seront pas converties. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str</parameter></term> + <listitem> + <para> + La chaîne d'entrée. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne la chaîne après modification. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>ucfirst</function></title> + <programlisting role="php"> <![CDATA[ <?php $foo = 'bonjour tout le monde!'; @@ -37,17 +68,24 @@ $bar = ucfirst(strtolower($bar)); // Bonjour tout le monde! ?> ]]> - </programlisting> - </example> - </para> - <para> - Voir aussi - <function>strtolower</function>, - <function>strtoupper</function> et - <function>ucwords</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>lcfirst</function></member> + <member><function>strtolower</function></member> + <member><function>strtoupper</function></member> + <member><function>ucwords</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/ucwords.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc-fr/reference/strings/functions/ucwords.xml diff -u phpdoc-fr/reference/strings/functions/ucwords.xml:1.14 phpdoc-fr/reference/strings/functions/ucwords.xml:1.15 --- phpdoc-fr/reference/strings/functions/ucwords.xml:1.14 Thu Jun 21 17:04:57 2007 +++ phpdoc-fr/reference/strings/functions/ucwords.xml Sun May 25 09:00:35 2008 @@ -1,34 +1,61 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> -<!-- EN-Revision: 1.5 Maintainer: dams Status: partial --> +<!-- $Revision: 1.15 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.ucwords" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>ucwords</refname> - <refpurpose> - Met en majuscule la première lettre de tous les mots - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>ucwords</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - </methodsynopsis> - <para> - <methodname>ucwords</methodname> retourne la chaîne - <parameter>str</parameter> après avoir mis en majuscule la première - lettre de tous les mots, si ce caractère est alphabétique. - </para> - <simpara> - La définition d'un mot est : toute séquence de caractères - qui suit immédiatement un caractère blanc (espace, tabulation, - nouvelle ligne, retour chariot, tabulation verticale). - </simpara> - <para> - <example> - <title>Exemple avec <function>ucwords</function></title> - <programlisting role="php"> + +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.ucwords"> + <refnamediv> + <refname>ucwords</refname> + <refpurpose>Met en majuscule la première lettre de tous les mots</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>ucwords</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + </methodsynopsis> + <para> + Retourne la chaîne <parameter>str</parameter> après avoir mis en + majuscule la première lettre de tous les mots, si ce caractère est + alphabétique. + </para> + <para> + La définition d'un mot est : toute séquence de caractères + qui suit immédiatement un caractère blanc (espace, tabulation, + nouvelle ligne, retour chariot, tabulation verticale). + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str</parameter></term> + <listitem> + <para> + La chaîne d'entrée. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne la chaîne, après modification. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>ucwords</function></title> + <programlisting role="php"> <![CDATA[ <?php $foo = 'bonjour tout le monde!'; @@ -39,20 +66,29 @@ $bar = ucwords(strtolower($bar)); // Bonjour Tout Le Monde! ?> ]]> - </programlisting> - </example> - </para> - - ¬e.bin-safe; - - <para> - Voir aussi - <function>strtoupper</function>, - <function>strtolower</function> et - <function>ucfirst</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + ¬e.bin-safe; + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>strtoupper</function></member> + <member><function>strtolower</function></member> + <member><function>ucfirst</function></member> + <member><function>mb_convert_case</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/vfprintf.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-fr/reference/strings/functions/vfprintf.xml diff -u phpdoc-fr/reference/strings/functions/vfprintf.xml:1.5 phpdoc-fr/reference/strings/functions/vfprintf.xml:1.6 --- phpdoc-fr/reference/strings/functions/vfprintf.xml:1.5 Tue Apr 15 00:00:47 2008 +++ phpdoc-fr/reference/strings/functions/vfprintf.xml Sun May 25 09:00:35 2008 @@ -1,51 +1,78 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.vfprintf" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>vfprintf</refname> - <refpurpose>Écrit une chaîne formatée dans un flux</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>vfprintf</methodname> - <methodparam><type>resource</type><parameter>handle</parameter></methodparam> - <methodparam><type>string</type><parameter>format</parameter></methodparam> - <methodparam><type>array</type><parameter>args</parameter></methodparam> - </methodsynopsis> - <simpara> - <function>vfprintf</function> écrit une chaîne produite en accord avec le - paramètre <parameter>format</parameter> dans le flux - <parameter>handle</parameter>. - <parameter>format</parameter> est décrit dans la page de documentation - de la fonction <function>sprintf</function>. - </simpara> - <simpara> - Agit de la même façon que <function>fprintf</function> excepté que - <function>vfprintf</function> accepte un tableau d'arguments, plutôt qu'un - nombre variant d'arguments. - </simpara> - <simpara> - Retourne la longueur de la chaîne produite. - </simpara> - <simpara> - Voir aussi - <function>printf</function>, - <function>sprintf</function>, - <function>sscanf</function>, - <function>fscanf</function>, - <function>vsprintf</function> et - <function>number_format</function>. - </simpara> - </refsect1> - <refsect1> - &reftitle.examples; - <para> - <example> - <title><function>vfprintf</function>: zéro comme caractères d'espacements</title> - <programlisting role="php"> + +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.vfprintf"> + <refnamediv> + <refname>vfprintf</refname> + <refpurpose>Écrit une chaîne formatée dans un flux</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>vfprintf</methodname> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> + <methodparam><type>string</type><parameter>format</parameter></methodparam> + <methodparam><type>array</type><parameter>args</parameter></methodparam> + </methodsynopsis> + <para> + Écrit une chaîne produite en accord avec le paramètre + <parameter>format</parameter> dans le flux <parameter>handle</parameter>. + </para> + <para> + Agit de la même façon que <function>fprintf</function> excepté que + <function>vfprintf</function> accepte un tableau d'arguments, plutôt qu'un + nombre variant d'arguments. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>handle</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>format</parameter></term> + <listitem> + <para> + Voir la documentation de la fonction <function>sprintf</function> + pour une description complète du paramètre + <parameter>format</parameter>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>args</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne la longueur de la chaîne retournée. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>vfprintf</function> : zéro comme caractères d'espacements</title> + <programlisting role="php"> <![CDATA[ <?php if (!($fp = fopen('date.txt', 'w'))) @@ -55,11 +82,26 @@ // écrira la date formatée ISO dans date.txt ?> ]]> - </programlisting> - </example> - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>printf</function></member> + <member><function>sprintf</function></member> + <member><function>sscanf</function></member> + <member><function>fscanf</function></member> + <member><function>vsprintf</function></member> + <member><function>number_format</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/vprintf.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-fr/reference/strings/functions/vprintf.xml diff -u phpdoc-fr/reference/strings/functions/vprintf.xml:1.10 phpdoc-fr/reference/strings/functions/vprintf.xml:1.11 --- phpdoc-fr/reference/strings/functions/vprintf.xml:1.10 Thu Jun 21 17:04:57 2007 +++ phpdoc-fr/reference/strings/functions/vprintf.xml Sun May 25 09:00:35 2008 @@ -1,39 +1,76 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.vprintf" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>vprintf</refname> - <refpurpose>Affiche une chaîne formatée</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>vprintf</methodname> - <methodparam><type>string</type><parameter>format</parameter></methodparam> - <methodparam><type>array</type><parameter>args</parameter></methodparam> - </methodsynopsis> - <simpara> - <function>vprintf</function> affiche le tableau <parameter>args</parameter>, - sous forme de chaîne formatée grâce à <parameter>format</parameter> - Le format est le même que celui utilisé par <function>sprintf</function>. - </simpara> - <simpara> - <function>vprintf</function> fonctionne comme <function>printf</function> - mais accepte un tableau comme argument, au lieu d'une liste d'arguments. - </simpara> - <simpara> - Retourne la longueur de la chaîne affiché. - </simpara> - <simpara> - Voir aussi - <function>printf</function>, - <function>sprintf</function> et - <function>vsprintf</function>. - </simpara> - </refsect1> - </refentry> + +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.vprintf"> + <refnamediv> + <refname>vprintf</refname> + <refpurpose>Affiche une chaîne formatée</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>vprintf</methodname> + <methodparam><type>string</type><parameter>format</parameter></methodparam> + <methodparam><type>array</type><parameter>args</parameter></methodparam> + </methodsynopsis> + <para> + Affiche le tableau <parameter>args</parameter>, sous forme de chaîne + formatée grâce à <parameter>format</parameter>. Le format est le même + que celui utilisé par <function>sprintf</function>. + </para> + <para> + <function>vprintf</function> fonctionne comme <function>printf</function> + mais accepte un tableau comme argument, au lieu d'une liste d'arguments. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>format</parameter></term> + <listitem> + <para> + Voir la documentation de la fonction <function>sprintf</function> + pour une description détaillée du paramètre + <parameter>format</parameter>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>args</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne la longueur de la chaîne retournée. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>printf</function></member> + <member><function>sprintf</function></member> + <member><function>vsprintf</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/vsprintf.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-fr/reference/strings/functions/vsprintf.xml diff -u phpdoc-fr/reference/strings/functions/vsprintf.xml:1.8 phpdoc-fr/reference/strings/functions/vsprintf.xml:1.9 --- phpdoc-fr/reference/strings/functions/vsprintf.xml:1.8 Thu Jun 21 17:04:57 2007 +++ phpdoc-fr/reference/strings/functions/vsprintf.xml Sun May 25 09:00:35 2008 @@ -1,36 +1,73 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.vsprintf" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>vsprintf</refname> - <refpurpose>Retourne une chaîne formatée</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>vsprintf</methodname> - <methodparam><type>string</type><parameter>format</parameter></methodparam> - <methodparam><type>array</type><parameter>args</parameter></methodparam> - </methodsynopsis> - <simpara> - <function>vsprintf</function> retourne une chaîne formatée à partir - du tableau de valeurs <parameter>args</parameter>, et en utilisant - le format <parameter>format</parameter>. - Le format est le même que celui utilisé par <function>sprintf</function>. - </simpara> - <simpara> - <function>vsprintf</function> fonctionne comme <function>sprintf</function> - mais accepte un tableau comme argument, au lieu d'une liste d'arguments. - </simpara> - <simpara> - Voir aussi - <function>sprintf</function> et - <function>vprintf</function>. - </simpara> - </refsect1> - </refentry> + +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.vsprintf"> + <refnamediv> + <refname>vsprintf</refname> + <refpurpose>Retourne une chaîne formatée</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>vsprintf</methodname> + <methodparam><type>string</type><parameter>format</parameter></methodparam> + <methodparam><type>array</type><parameter>args</parameter></methodparam> + </methodsynopsis> + <para> + <function>vsprintf</function> fonctionne comme <function>sprintf</function> + mais accepte un tableau comme argument, au lieu d'une liste d'arguments. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>format</parameter></term> + <listitem> + <para> + Voir la documentation de la fonction <function>sprintf</function> + pour une description détaillée du paramètre + <parameter>format</parameter>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>args</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne une chaîne formatée à partir du tableau de valeurs + <parameter>args</parameter>, et en utilisant le format + <parameter>format</parameter>. Le format est le même que celui + utilisé par <function>sprintf</function>. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>sprintf</function></member> + <member><function>vprintf</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/wordwrap.xml?r1=1.20&r2=1.21&diff_format=u Index: phpdoc-fr/reference/strings/functions/wordwrap.xml diff -u phpdoc-fr/reference/strings/functions/wordwrap.xml:1.20 phpdoc-fr/reference/strings/functions/wordwrap.xml:1.21 --- phpdoc-fr/reference/strings/functions/wordwrap.xml:1.20 Thu Jun 21 17:04:57 2007 +++ phpdoc-fr/reference/strings/functions/wordwrap.xml Sun May 25 09:00:35 2008 @@ -1,75 +1,132 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.20 $ --> -<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.21 $ --> +<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.wordwrap" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>wordwrap</refname> - <refpurpose> - Effectue la césure d'une chaîne - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>wordwrap</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>width</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>break</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>cut</parameter></methodparam> - </methodsynopsis> - <para> - <function>wordwrap</function> retourne la chaîne - <parameter>str</parameter>, après avoir inséré - <parameter>break</parameter> tous les <parameter>width</parameter> - caractères. - </para> - <para> - Par défaut, <function>wordwrap</function> va automatiquement - insérer une nouvelle ligne en utilisant <literal>\n</literal> tous les - 75 caractères, si <parameter>width</parameter> ou - <parameter>break</parameter> ne sont pas fournis. - </para> - <para> - Si le paramètre <parameter>cut</parameter> est mis à &true;, la césure de - la chaîne sera toujours à la taille <parameter>width</parameter>. Si vous - avez un mot qui est plus long que la taille de césure, il sera - coupé en morceaux. (Voir le second exemple.) - <note> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.wordwrap"> + <refnamediv> + <refname>wordwrap</refname> + <refpurpose>Effectue la césure d'une chaîne</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>wordwrap</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>width</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>break</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>cut</parameter></methodparam> + </methodsynopsis> + <para> + Effectue la césure d'une chaîne. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str</parameter></term> + <listitem> + <para> + La chaîne d'entrée. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>width</parameter></term> + <listitem> + <para> + La largeur de la colonne. Par défaut, 75. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>break</parameter></term> + <listitem> + <para> + La ligne est rompue en utilisant ce paramètre optionnel. + Par défaut, il vaut '<literal>\n</literal>'. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>cut</parameter></term> + <listitem> <para> - Le paramètre optionnel <parameter>cut</parameter> a - été ajouté en &php; 4.0.3. + Si le paramètre <parameter>cut</parameter> vaut &true;, la césure de + la chaîne sera toujours à la taille <parameter>width</parameter>. Si vous + avez un mot qui est plus long que la taille de césure, il sera + coupé en morceaux. (Voir le second exemple.) </para> - </note> - </para> - <para> - <example> - <title>Exemple avec <function>wordwrap</function></title> - <programlisting role="php"> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne la chaîne <parameter>str</parameter>, après avoir inséré + <parameter>break</parameter> tous les <parameter>width</parameter> + caractères. + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>4.0.3</entry> + <entry> + Ajout du paramètre optionnel <parameter>cut</parameter>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>wordwrap</function></title> + <programlisting role="php"> <![CDATA[ <?php $text = "Portez ce vieux whisky au juge blond qui fume."; -$newtext = wordwrap( $text, 20 ); +$newtext = wordwrap($text, 20, "<br />\n"); -echo "$newtext\n"; +echo $newtext; ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ -Portez ce vieux -whisky au juge +Portez ce vieux<br /> +whisky au juge<br /> blond qui fume. ]]> - </screen> - </example> - </para> - <para> - <example> - <title>Exemple avec <function>wordwrap</function> avec césure</title> - <programlisting role="php"> + </screen> + </example> + <example> + <title>Exemple avec <function>wordwrap</function></title> + <programlisting role="php"> <![CDATA[ <?php $text = "Un mot très très loooooooooooooooooong."; @@ -89,16 +146,22 @@ oooooooo ooong. ]]> - </screen> - </example> - </para> - <para> - Voir aussi - <function>nl2br</function> et - <function>chunk_split</function>. - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>nl2br</function></member> + <member><function>chunk_split</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/swf/functions/swf-closefile.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-fr/reference/swf/functions/swf-closefile.xml diff -u phpdoc-fr/reference/swf/functions/swf-closefile.xml:1.12 phpdoc-fr/reference/swf/functions/swf-closefile.xml:1.13 --- phpdoc-fr/reference/swf/functions/swf-closefile.xml:1.12 Fri Apr 25 14:06:55 2008 +++ phpdoc-fr/reference/swf/functions/swf-closefile.xml Sun May 25 09:00:36 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.swf-closefile" xmlns="http://docbook.org/ns/docbook"> @@ -38,6 +38,13 @@ </para> </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.void; + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/sybase/ini.xml?r1=1.22&r2=1.23&diff_format=u Index: phpdoc-fr/reference/sybase/ini.xml diff -u phpdoc-fr/reference/sybase/ini.xml:1.22 phpdoc-fr/reference/sybase/ini.xml:1.23 --- phpdoc-fr/reference/sybase/ini.xml:1.22 Wed Apr 30 22:26:21 2008 +++ phpdoc-fr/reference/sybase/ini.xml Sun May 25 09:00:36 2008 @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.22 $ --> -<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.23 $ --> +<!-- EN-Revision: 1.21 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> + <section xml:id="sybase.configuration" xmlns="http://docbook.org/ns/docbook"> &reftitle.runtime; &extension.runtime; @@ -23,19 +24,19 @@ <entry>sybase.allow_persistent</entry> <entry>"1"</entry> <entry>PHP_INI_ALL</entry> - <entry>PHP_INI_ALL dans &php; <= 4.0.2. PHP_INI_SYSTEM dans &php; <= 4.0.3.</entry> + <entry>PHP_INI_ALL dans PHP <= 4.0.2. PHP_INI_SYSTEM dans PHP <= 4.0.3.</entry> </row> <row> <entry>sybase.max_persistent</entry> <entry>"-1"</entry> <entry>PHP_INI_ALL</entry> - <entry>PHP_INI_ALL dans &php; <= 4.0.2. PHP_INI_SYSTEM dans &php; <= 4.0.3.</entry> + <entry>PHP_INI_ALL dans PHP <= 4.0.2. PHP_INI_SYSTEM dans PHP <= 4.0.3.</entry> </row> <row> <entry>sybase.max_links</entry> <entry>"-1"</entry> <entry>PHP_INI_ALL</entry> - <entry>PHP_INI_ALL dans &php; <= 4.0.2. PHP_INI_SYSTEM dans &php; <= 4.0.3.</entry> + <entry>PHP_INI_ALL dans PHP <= 4.0.2. PHP_INI_SYSTEM dans PHP <= 4.0.3.</entry> </row> <row> <entry>sybase.interface_file </entry> @@ -65,7 +66,7 @@ <entry>magic_quotes_sybase</entry> <entry>"0"</entry> <entry>PHP_INI_ALL</entry> - <entry></entry> + <entry>Supprimé depuis PHP 6.0.0.</entry> </row> </tbody> </tgroup> @@ -137,23 +138,6 @@ </listitem> </varlistentry> - <varlistentry xml:id="ini.sybase.compatability-mode"> - <term> - <parameter>sybase.compatability_mode</parameter> - <type>booléen</type> - </term> - <listitem> - <para> - Mode de compatibilité avec les anciennes versions de &php; 3.0. Si activé (on), - cela va faire que &php; assigne automatiquement des types aux résultats, - en fonctions de leur type Sybase, au lieu de les traiter comme des - chaînes de caractères. Ce mode de compatibilité ne va pas rester des - années, alors essayez de modifier votre code, et de désactiver cette - fonctionnalité. - </para> - </listitem> - </varlistentry> - <varlistentry xml:id="ini.magic-quotes-sybase"> <term> <parameter>magic_quotes_sybase</parameter> @@ -199,43 +183,43 @@ <entry>sybct.allow_persistent</entry> <entry>"1"</entry> <entry>PHP_INI_SYSTEM</entry> - <entry>PHP_INI_ALL dans &php; <= 4.0.2. Disponible depuis &php; 4.0.2.</entry> + <entry>PHP_INI_ALL dans PHP <= 4.0.2. Disponible depuis PHP 4.0.2. Supprimé depuis PHP 4.0.3.</entry> </row> <row> <entry>sybct.max_persistent</entry> <entry>"-1"</entry> <entry>PHP_INI_SYSTEM</entry> - <entry>PHP_INI_ALL dans &php; <= 4.0.2. Disponible depuis &php; 4.0.2.</entry> + <entry>PHP_INI_ALL dans PHP <= 4.0.2. Disponible depuis PHP 4.0.2. Supprimé depuis PHP 4.0.3.</entry> </row> <row> <entry>sybct.max_links</entry> <entry>"-1"</entry> <entry>PHP_INI_SYSTEM</entry> - <entry>PHP_INI_ALL dans &php; <= 4.0.2. Disponible depuis &php; 4.0.2.</entry> + <entry>PHP_INI_ALL dans PHP <= 4.0.2. Disponible depuis PHP 4.0.2. Supprimé depuis PHP 4.0.3.</entry> </row> <row> <entry>sybct.min_server_severity</entry> <entry>"10"</entry> <entry>PHP_INI_ALL</entry> - <entry>Disponible depuis &php; 4.0.2.</entry> + <entry>Disponible depuis PHP 4.0.2. Supprimé depuis PHP 4.0.3.</entry> </row> <row> <entry>sybct.min_client_severity</entry> <entry>"10"</entry> <entry>PHP_INI_ALL</entry> - <entry>Disponible depuis &php; 4.0.2.</entry> + <entry>Disponible depuis PHP 4.0.2. Supprimé depuis PHP 4.0.3.</entry> </row> <row> <entry>sybct.hostname</entry> <entry>NULL</entry> <entry>PHP_INI_ALL</entry> - <entry>Disponible depuis &php; 4.0.2.</entry> + <entry>Disponible depuis PHP 4.0.2. Supprimé depuis PHP 4.0.3.</entry> </row> <row> <entry>sybct.deadlock_retry_count</entry> <entry>"0"</entry> <entry>PHP_INI_ALL</entry> - <entry>Disponible depuis &php; 4.3.0.</entry> + <entry>Disponible depuis PHP 4.3.0.</entry> </row> </tbody> </tgroup> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/tidy/functions/tidy-construct.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-fr/reference/tidy/functions/tidy-construct.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-construct.xml:1.7 phpdoc-fr/reference/tidy/functions/tidy-construct.xml:1.8 --- phpdoc-fr/reference/tidy/functions/tidy-construct.xml:1.7 Thu Jun 21 17:04:59 2007 +++ phpdoc-fr/reference/tidy/functions/tidy-construct.xml Sun May 25 09:00:36 2008 @@ -1,50 +1,51 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> + <refentry xml:id="function.tidy-construct" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>tidy::__construct</refname> - <refpurpose> - Construit un nouvel objet Tidy - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>tidy</type><methodname>tidy::__construct</methodname> - <methodparam choice="opt"><type>string</type><parameter>filename</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>config</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>use_include_path</parameter></methodparam> - </methodsynopsis> - <para> - <function>tidy::__construct</function> construit un nouvel objet Tidy. - </para> - <para> - Si le paramètre <parameter>filename</parameter> est fourni, cette fonction - lira également ce fichier et initialisera l'objet avec ce fichier, agissant de la même façon - que la fonction <function>tidy_parse_file</function>. - </para> - &tidy.conf-enc; - <para> - <example> - <title>Exemple avec <function>tidy::__construct</function></title> - <programlisting role="php"> + <refnamediv> + <refname>tidy::__construct</refname> + <refpurpose> + Construit un nouvel objet Tidy + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>tidy</type><methodname>tidy::__construct</methodname> + <methodparam choice="opt"><type>string</type><parameter>filename</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter>config</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>use_include_path</parameter></methodparam> + </methodsynopsis> + <para> + <function>tidy::__construct</function> construit un nouvel objet Tidy. + </para> + <para> + Si le paramètre <parameter>filename</parameter> est fourni, cette fonction + lira également ce fichier et initialisera l'objet avec ce fichier, agissant de la même façon + que la fonction <function>tidy_parse_file</function>. + </para> + &tidy.conf-enc; + <para> + <example> + <title>Exemple avec <function>tidy::__construct</function></title> + <programlisting role="php"> <![CDATA[ <?php $html = <<< HTML -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" -"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head><title>title</title></head> -<body> -<p>paragraph <bt /> -text</p> -</body></html> + <head><title>title</title></head> + <body> + <p>paragraph <bt /> + text</p> + </body></html> HTML; @@ -54,30 +55,30 @@ $tidy->CleanRepair(); if ($tidy->errorBuffer) { - echo "Les erreurs suivantes ont été détectées :\n"; - echo $tidy->errorBuffer; +echo "Les erreurs suivantes ont été détectées :\n"; +echo $tidy->errorBuffer; } ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ Les erreurs suivantes ont été détectées : line 8 column 14 - Error: <bt> is not recognized! line 8 column 14 - Warning: discarding unexpected <bt> ]]> - </screen> - </example> - </para> - <para> - Voir aussi - <function>tidy_parse_file</function> et - <function>tidy_parse_string</function>. - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + <para> + Voir aussi + <function>tidy_parse_file</function> et + <function>tidy_parse_string</function>. + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/tidy/functions/tidynode-getparent.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/tidy/functions/tidynode-getparent.xml diff -u phpdoc-fr/reference/tidy/functions/tidynode-getparent.xml:1.2 phpdoc-fr/reference/tidy/functions/tidynode-getparent.xml:1.3 --- phpdoc-fr/reference/tidy/functions/tidynode-getparent.xml:1.2 Thu Jun 21 17:04:59 2007 +++ phpdoc-fr/reference/tidy/functions/tidynode-getparent.xml Sun May 25 09:00:36 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="function.tidynode-getparent" xmlns="http://docbook.org/ns/docbook"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/tidy/functions/tidyNode-isPhp.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-fr/reference/tidy/functions/tidyNode-isPhp.xml diff -u phpdoc-fr/reference/tidy/functions/tidyNode-isPhp.xml:1.6 phpdoc-fr/reference/tidy/functions/tidyNode-isPhp.xml:1.7 --- phpdoc-fr/reference/tidy/functions/tidyNode-isPhp.xml:1.6 Thu Jun 21 17:04:59 2007 +++ phpdoc-fr/reference/tidy/functions/tidyNode-isPhp.xml Sun May 25 09:00:36 2008 @@ -1,42 +1,43 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.tidyNode-isPhp" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>tidyNode->isPhp</refname> - <refpurpose> - Retourne &true; si ce noeud est en &php; - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>tidyNode->isPhp</methodname> - <void/> - </methodsynopsis> - <para> - <function>tidyNode->isPhp</function> retourne &true; si le noeud courant - est du code &php;, &false; sinon. - </para> - <para> - <example> - <title>Récupération du code &php; depuis un document HTML</title> - <programlisting role="php"> + +<refentry xml:id="function.tidyNode-isPhp" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>tidyNode->isPhp</refname> + <refpurpose> + Retourne &true; si ce noeud est en &php; + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>tidyNode->isPhp</methodname> + <void/> + </methodsynopsis> + <para> + <function>tidyNode->isPhp</function> retourne &true; si le noeud courant + est du code &php;, &false; sinon. + </para> + <para> + <example> + <title>Récupération du code &php; depuis un document HTML</title> + <programlisting role="php"> <![CDATA[ <?php $html = <<< HTML <html><head> -<?php echo '<title>Titre</title>'; ?> -</head> -<body> - -<?php -echo 'Bonjour le monde !'; -?> + <?php echo '<title>Titre</title>'; ?> + </head> + <body> + + <?php + echo 'Bonjour le monde !'; + ?> -</body></html> + </body></html> HTML; @@ -48,45 +49,45 @@ function get_php($node) { - // vérifie si le noeud courant est du code PHP - if($node->isPHP()) { - echo "\n\n# PHP node #" . ++$GLOBALS['num'] . "\n"; - echo $node->value; - } - - // vérifie si le noeud courant a des enfants - if($node->hasChildren()) { - foreach($node->child as $child) { - get_php($child); - } - } +// vérifie si le noeud courant est du code PHP +if($node->isPHP()) { +echo "\n\n# PHP node #" . ++$GLOBALS['num'] . "\n"; +echo $node->value; +} + +// vérifie si le noeud courant a des enfants +if($node->hasChildren()) { +foreach($node->child as $child) { +get_php($child); +} +} } ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ # PHP node #1 <?php echo '<title>Titre</title>'; ?> # PHP node #2 <?php -echo 'Bonjour le monde !'; -?> + echo 'Bonjour le monde !'; + ?> ]]> - </screen> - </example> - </para> - <note> - <para> - Cette fonction était nommée <function>tidy_node->is_php</function> - en &php; 4/Tidy 1. - </para> - </note> - </refsect1> - </refentry> + </screen> + </example> + </para> + <note> + <para> + Cette fonction était nommée <function>tidy_node->is_php</function> + en &php; 4/Tidy 1. + </para> + </note> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/tidy/functions/tidy-parse-string.xml?r1=1.17&r2=1.18&diff_format=u Index: phpdoc-fr/reference/tidy/functions/tidy-parse-string.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-parse-string.xml:1.17 phpdoc-fr/reference/tidy/functions/tidy-parse-string.xml:1.18 --- phpdoc-fr/reference/tidy/functions/tidy-parse-string.xml:1.17 Sat Apr 12 17:11:34 2008 +++ phpdoc-fr/reference/tidy/functions/tidy-parse-string.xml Sun May 25 09:00:36 2008 @@ -1,58 +1,58 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17 $ --> -<!-- EN-Revision: 1.8 Maintainer: dams Status: ready --> +<!-- $Revision: 1.18 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.tidy-parse-string" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>tidy_parse_string</refname> - <refpurpose> - Analyse un document HTML contenu dans une chaîne - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <para>Style procédural :</para> - <methodsynopsis> - <type>tidy</type><methodname>tidy_parse_string</methodname> - <methodparam><type>string</type><parameter>input</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>config</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> - </methodsynopsis> - <para>Style orienté objet :</para> - <methodsynopsis> - <type>bool</type><methodname>tidy->parseString</methodname> - <methodparam><type>string</type><parameter>input</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>config</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> - </methodsynopsis> - <para> - <function>tidy_parse_string</function> analyse un document contenu dans une chaîne. - </para> - &tidy.conf-enc; - <para> - <example> - <title>Exemple avec <function>tidy_parse_string</function></title> - <programlisting role="php"> + +<refentry xml:id="function.tidy-parse-string" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>tidy_parse_string</refname> + <refpurpose> + Analyse un document HTML contenu dans une chaîne + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <para>Style procédural :</para> + <methodsynopsis> + <type>tidy</type><methodname>tidy_parse_string</methodname> + <methodparam><type>string</type><parameter>input</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter>config</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> + </methodsynopsis> + <para>Style orienté objet :</para> + <methodsynopsis> + <type>bool</type><methodname>tidy->parseString</methodname> + <methodparam><type>string</type><parameter>input</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter>config</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> + </methodsynopsis> + <para> + <function>tidy_parse_string</function> analyse un document contenu dans une chaîne. + </para> + &tidy.conf-enc; + <para> + <example> + <title>Exemple avec <function>tidy_parse_string</function></title> + <programlisting role="php"> <![CDATA[ <?php ob_start(); ?> <html> - <head> - <title>test</title> - </head> - <body> - <p>erreur<br />une autre ligne</p> - </body> + <head> + <title>test</title> + </head> + <body> + <p>erreur<br />une autre ligne</p> + </body> </html> <?php - $buffer = ob_get_clean(); $config = array('indent' => TRUE, - 'output-xhtml' => TRUE, - 'wrap', 200); + 'output-xhtml' => TRUE, + 'wrap', 200); $tidy = tidy_parse_string($buffer, $config, 'UTF8'); @@ -61,38 +61,38 @@ echo $tidy; ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <title> - test - </title> - </head> - <body> - <p> - error<br /> - another line - </p> - </body> + <head> + <title> + test + </title> + </head> + <body> + <p> + error<br /> + another line + </p> + </body> </html> ]]> - </screen> - </example> - </para> - ¬e.tidy.2only; - <para> - Voir aussi - <function>tidy_parse_file</function>, - <function>tidy_repair_file</function> et - <function>tidy_repair_string</function>. - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + ¬e.tidy.2only; + <para> + Voir aussi + <function>tidy_parse_file</function>, + <function>tidy_repair_file</function> et + <function>tidy_repair_string</function>. + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:
http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/strnatcasecmp.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc-fr/reference/strings/functions/strnatcasecmp.xml diff -u phpdoc-fr/reference/strings/functions/strnatcasecmp.xml:1.14 phpdoc-fr/reference/strings/functions/strnatcasecmp.xml:1.15 --- phpdoc-fr/reference/strings/functions/strnatcasecmp.xml:1.14 Thu Jun 21 17:04:57 2007 +++ phpdoc-fr/reference/strings/functions/strnatcasecmp.xml Sun May 25 09:00:35 2008 @@ -1,16 +1,15 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.15 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> -<refentry xml:id="function.strnatcasecmp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> +<refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="function.strnatcasecmp"> <refnamediv> <refname>strnatcasecmp</refname> - <refpurpose> - Comparaison de chaînes avec l'algorithme d'"ordre naturel" (insensible à la casse) - </refpurpose> + <refpurpose>Comparaison de chaînes avec l'algorithme d'"ordre naturel" (insensible à la casse)</refpurpose> </refnamediv> - <refsect1> + + <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>int</type><methodname>strnatcasecmp</methodname> @@ -18,33 +17,67 @@ <methodparam><type>string</type><parameter>str2</parameter></methodparam> </methodsynopsis> <para> - <function>strnatcasecmp</function> implémente l'algorithme - de comparaison qui ordonne les chaînes tel qu'un homme - le ferait. Cette fonction est similaire à la fonction - <function>strnatcmp</function>, mais la comparaison n'est pas - sensible à la casse. Pour plus de détails, reportez-vous à - <link xlink:href="&url.strnatcmp;"><literal>Natural Order String Comparison</literal></link> - de Martin Pool (en anglais). + <function>strnatcasecmp</function> implémente l'algorithme de comparaison + qui ordonne les chaînes tel qu'un homme le ferait. Cette fonction est + similaire à la fonction <function>strnatcmp</function>, mais la comparaison + n'est pas sensible à la casse. Pour plus de détails, reportez-vous à + <link xlink:href="&url.strnatcmp;"><literal>Natural Order String + Comparison</literal></link> de Martin Pool (en anglais). </para> - <simpara> - <function>strnatcasecmp</function> retourne < 0 si - <parameter>str1</parameter> est inférieure à <parameter>str2</parameter> - > 0 si <parameter>str1</parameter> est supérieure à + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str1</parameter></term> + <listitem> + <para> + La première chaîne. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>str2</parameter></term> + <listitem> + <para> + La seconde chaîne. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Tout comme les autres fonctions de comparaison de chaînes, + celle-ci retourne < 0 si <parameter>str1</parameter> + est inférieure à <parameter>str2</parameter> > 0 si + <parameter>str1</parameter> est supérieure à <parameter>str2</parameter>, et 0 si les deux chaînes sont égales. - </simpara> - <simpara> - Voir aussi - <function>preg_match</function>, - <function>strcasecmp</function>, - <function>substr</function>, - <function>stristr</function>, - <function>strcmp</function>, - <function>strncmp</function>, - <function>strncasecmp</function>, - <function>strnatcmp</function> et - <function>strstr</function>. - </simpara> + </para> </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>preg_match</function></member> + <member><function>strcmp</function></member> + <member><function>strcasecmp</function></member> + <member><function>substr</function></member> + <member><function>stristr</function></member> + <member><function>strncasecmp</function></member> + <member><function>strncmp</function></member> + <member><function>strstr</function></member> + <member><function>setlocale</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/strpbrk.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-fr/reference/strings/functions/strpbrk.xml diff -u phpdoc-fr/reference/strings/functions/strpbrk.xml:1.6 phpdoc-fr/reference/strings/functions/strpbrk.xml:1.7 --- phpdoc-fr/reference/strings/functions/strpbrk.xml:1.6 Thu Jun 21 17:04:57 2007 +++ phpdoc-fr/reference/strings/functions/strpbrk.xml Sun May 25 09:00:35 2008 @@ -1,52 +1,83 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.strpbrk" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>strpbrk</refname> - <refpurpose> - Recherche une chaîne de caractères dans un ensemble de caractères - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>strpbrk</methodname> - <methodparam><type>string</type><parameter>haystack</parameter></methodparam> - <methodparam><type>string</type><parameter>char_list</parameter></methodparam> - </methodsynopsis> - <para> - <function>strpbrk</function> recherche la chaîne <parameter>haystack</parameter> - dans l'ensemble de caractères <parameter>char_list</parameter> et - retourne une chaîne commençant au caractère trouvé (ou &false; s'il n'est pas trouvé). - </para> - <note> - <para> - Le paramètre <parameter>char_list</parameter> est sensible à la casse. - </para> - </note> - <para> - <example> - <title>Exemple avec <function>strpbrk</function></title> - <programlisting role="php"> + +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.strpbrk"> + <refnamediv> + <refname>strpbrk</refname> + <refpurpose>Recherche une chaîne de caractères dans un ensemble de caractères</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>strpbrk</methodname> + <methodparam><type>string</type><parameter>haystack</parameter></methodparam> + <methodparam><type>string</type><parameter>char_list</parameter></methodparam> + </methodsynopsis> + <para> + <function>strpbrk</function> recherche la chaîne <parameter>haystack</parameter> + dans l'ensemble de caractères <parameter>char_list</parameter>. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>haystack</parameter></term> + <listitem> + <para> + La chaîne dans laquelle on cherche <parameter>char_list</parameter>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>char_list</parameter></term> + <listitem> + <para> + Ce paramètre est sensible à la casse. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne une chaîne, commençant au premier caractère trouvé, + ou &false; s'il n'a pas été trouvé. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>strpbrk</function></title> + <programlisting role="php"> <![CDATA[ <?php -$text = 'Ceci est un texte Simple.'; +$text = 'This is a Simple text.'; -// Ceci affichera "i est un texte simple." car 'i' correspond en premier +// Ceci affichera "is is a Simple text." car 'i' correspond au premier echo strpbrk($text, 'mi'); -// Ceci affichera "Simple." car les caractères sont sensibles à la casse +// Ceci affichera "Simple text." car les caractères sont sensibles à la casse echo strpbrk($text, 'S'); ?> ]]> - </programlisting> - </example> - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/strrpos.xml?r1=1.22&r2=1.23&diff_format=u Index: phpdoc-fr/reference/strings/functions/strrpos.xml diff -u phpdoc-fr/reference/strings/functions/strrpos.xml:1.22 phpdoc-fr/reference/strings/functions/strrpos.xml:1.23 --- phpdoc-fr/reference/strings/functions/strrpos.xml:1.22 Thu Jun 21 17:04:57 2007 +++ phpdoc-fr/reference/strings/functions/strrpos.xml Sun May 25 09:00:35 2008 @@ -1,89 +1,128 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.22 $ --> -<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.23 $ --> +<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.strrpos" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>strrpos</refname> - <refpurpose> - Trouve la position de la dernière occurrence d'un caractère dans une chaîne - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>strrpos</methodname> - <methodparam><type>string</type><parameter>haystack</parameter></methodparam> - <methodparam><type>string</type><parameter>needle</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>offset</parameter></methodparam> - </methodsynopsis> - <para> - <function>strrpos</function> retourne la position numérique - de la dernière occurrence du caractère <parameter>needle</parameter> - dans la chaîne <parameter>haystack</parameter>. Notez que - <parameter>needle</parameter> doit être un caractère unique en &php; 4. - Si une chaîne est passée dans ce paramètre, seul le premier - caractère sera utilisé. - </para> - <para> - Si <parameter>needle</parameter> n'est pas trouvé, <function>strrpos</function> - retournera &false;. - </para> - <para> - Il est facile de confondre le résultat "caractère trouvé à la - position 0" et "caractère non trouvé". Voici comment faire la différence : - <example> - <title>Exemple avec <function>strrpos</function></title> - <programlisting role="php"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.strrpos"> + <refnamediv> + <refname>strrpos</refname> + <refpurpose>Trouve la position de la dernière occurrence d'un caractère dans une chaîne</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>strrpos</methodname> + <methodparam><type>string</type><parameter>haystack</parameter></methodparam> + <methodparam><type>string</type><parameter>needle</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>offset</parameter></methodparam> + </methodsynopsis> + <para> + Retourne la position numérique de la dernière occurrence du caractère + <parameter>needle</parameter> dans la chaîne <parameter>haystack</parameter>. + Notez que <parameter>needle</parameter> doit être un caractère unique + en PHP 4. Si une chaîne est passée dans ce paramètre, seul le premier + caractère sera utilisé. + </para> + <para> + Si <parameter>needle</parameter> n'est pas trouvé, <function>strrpos</function> + retournera &false;. + </para> + <para> + Il est facile de confondre le résultat "caractère trouvé à la + position 0" et "caractère non trouvé". Voici comment faire la différence : + <informalexample> + <programlisting role="php"> <![CDATA[ <?php + // À partir de PHP 4.0.0 : -$pos = strrpos($machaine, "b"); +$pos = strrpos($mystring, "b"); if ($pos === false) { // note : trois signes égal - // pas trouvé + // pas trouvé... } // en versions plus anciennes que 4.0.0 : -$pos = strrpos($machaine, "b"); +$pos = strrpos($mystring, "b"); if (is_bool($pos) && !$pos) { - // pas trouvé + // pas trouvé... } ?> ]]> - </programlisting> - </example> - </para> - <para> - Si <parameter>needle</parameter> n'est pas une chaîne, il est - converti en entier, et utilisé comme caractère de code ASCII - correspondant. - </para> - <note> - <simpara> - Depuis &php; 5.0.0, <parameter>offset</parameter> peut être spécifié - pour commencer à rechercher un nombre de caractères arbitraires dans la - chaîne. Les valeurs négatives vont stopper la recherche à partir d'un - point arbitraire avant la fin de la chaîne. - </simpara> - </note> - <note> - <simpara> - Le paramètre <parameter>needle</parameter> peut être composé de plus - d'un caractère à partir de &php; 5.0.0. - </simpara> - </note> - <para> - Voir aussi - <function>strpos</function>, - <function>strripos</function>, - <function>strrchr</function>, - <function>substr</function>, - <function>stristr</function> et - <function>strstr</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </informalexample> + </para> + <para> + Si <parameter>needle</parameter> n'est pas une chaîne, il est + converti en entier, et utilisé comme caractère de code ASCII + correspondant. + </para> + <note> + <simpara> + Depuis PHP 5.0.0, <parameter>offset</parameter> peut être spécifié + pour commencer à rechercher un nombre de caractères arbitraires dans la + chaîne. Les valeurs négatives vont stopper la recherche à partir d'un + point arbitraire avant la fin de la chaîne. + </simpara> + </note> + <note> + <simpara> + Le paramètre <parameter>needle</parameter> peut être composé de plus + d'un caractère à partir de PHP 5.0.0. + </simpara> + </note> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>haystack</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>needle</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>offset</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>strpos</function></member> + <member><function>strripos</function></member> + <member><function>strrchr</function></member> + <member><function>substr</function></member> + <member><function>stristr</function></member> + <member><function>strstr</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/substr-replace.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc-fr/reference/strings/functions/substr-replace.xml diff -u phpdoc-fr/reference/strings/functions/substr-replace.xml:1.14 phpdoc-fr/reference/strings/functions/substr-replace.xml:1.15 --- phpdoc-fr/reference/strings/functions/substr-replace.xml:1.14 Thu Jun 21 17:04:57 2007 +++ phpdoc-fr/reference/strings/functions/substr-replace.xml Sun May 25 09:00:35 2008 @@ -1,63 +1,109 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.15 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.substr-replace" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>substr_replace</refname> - <refpurpose>Remplace un segment dans une chaîne</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>mixed</type><methodname>substr_replace</methodname> - <methodparam><type>mixed</type><parameter>string</parameter></methodparam> - <methodparam><type>string</type><parameter>replacement</parameter></methodparam> - <methodparam><type>int</type><parameter>start</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam> - </methodsynopsis> - <para> - <function>substr_replace</function> remplace un segment de la - chaîne <parameter>string</parameter> par la chaîne - <parameter>replacement</parameter>. Le segment est délimité - par <parameter>start</parameter> et éventuellement par - <parameter>length</parameter>. La chaîne de résultat est retournée. - Si <parameter>string</parameter> est un tableau, alors un tableau est - retourné. - </para> - <para> - Si <parameter>start</parameter> est positif, le remplacement - se fera à partir du <parameter>start</parameter>-ième caractère - de <parameter>string</parameter>. - </para> - <para> - Si <parameter>start</parameter> est négatif, le remplacement - se fera à partir du <parameter>start</parameter>-ième caractère - en partant de la fin de la chaîne <parameter>string</parameter>. - </para> - <para> - Si <parameter>length</parameter> est fourni et positif, il - représentera la longueur du segment de code remplacé dans la - chaîne <parameter>string</parameter>. S'il est négatif, il - représentera la longueur du segment remplacé, mais compté - dans l'ordre inverse de la chaîne <parameter>string</parameter>. - S'il est omis, il prendra la valeur par défaut de la taille - de la chaîne, et remplacera tout jusqu'à la fin de la chaîne - <parameter>string</parameter>. Bien sûr, si - <parameter>length</parameter> vaut 0, alors, cette fonction - aura comme effet d'insérer <parameter>replacement</parameter> dans - <parameter>string</parameter> à la position - <parameter>start</parameter> donnée. - </para> - <para> - <example> - <title>Exemple avec <function>substr_replace</function></title> - <programlisting role="php"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.substr-replace"> + <refnamediv> + <refname>substr_replace</refname> + <refpurpose>Remplace un segment dans une chaîne</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>mixed</type><methodname>substr_replace</methodname> + <methodparam><type>mixed</type><parameter>string</parameter></methodparam> + <methodparam><type>string</type><parameter>replacement</parameter></methodparam> + <methodparam><type>int</type><parameter>start</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam> + </methodsynopsis> + <para> + <function>substr_replace</function> remplace un segment de la + chaîne <parameter>string</parameter> par la chaîne + <parameter>replacement</parameter>. Le segment est délimité + par <parameter>start</parameter> et éventuellement par + <parameter>length</parameter>. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>string</parameter></term> + <listitem> + <para> + La chaîne d'entrée. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>replacement</parameter></term> + <listitem> + <para> + La chaîne de remplacement. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>start</parameter></term> + <listitem> + <para> + Si <parameter>start</parameter> est positif, le remplacement + se fera à partir du <parameter>start</parameter>-ième caractère + de <parameter>string</parameter>. + </para> + <para> + Si <parameter>start</parameter> est négatif, le remplacement + se fera à partir du <parameter>start</parameter>-ième caractère + en partant de la fin de la chaîne <parameter>string</parameter>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>length</parameter></term> + <listitem> + <para> + Si <parameter>length</parameter> est fourni et positif, il + représentera la longueur du segment de code remplacé dans la + chaîne <parameter>string</parameter>. S'il est négatif, il + représentera la longueur du segment remplacé, mais compté + dans l'ordre inverse de la chaîne <parameter>string</parameter>. + S'il est omis, il prendra la valeur par défaut de la taille + de la chaîne, et remplacera tout jusqu'à la fin de la chaîne + <parameter>string</parameter>. Bien sûr, si + <parameter>length</parameter> vaut 0, alors, cette fonction + aura comme effet d'insérer <parameter>replacement</parameter> dans + <parameter>string</parameter> à la position + <parameter>start</parameter> donnée. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + La chaîne résultante est retournée. Si le paramètre + <parameter>string</parameter> est un tableau, alors un + tableau sera retourné. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>substr_replace</function></title> + <programlisting role="php"> <![CDATA[ <?php $var = 'ABCDEFGH:/MNRPQR/'; -echo "Original : $var<hr>\n"; +echo "Original : $var<hr />\n"; // Remplace toute la chaîne $var par 'bob'. echo substr_replace($var, 'bob', 0) . "<br />\n"; @@ -74,19 +120,27 @@ echo substr_replace($var, '', 10, -1) . "<br />\n"; ?> ]]> - </programlisting> - </example> - </para> - - ¬e.bin-safe; - - <para> - Voir aussi - <function>str_replace</function> et - <function>substr</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + ¬e.bin-safe; + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>str_replace</function></member> + <member><function>substr</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/trim.xml?r1=1.21&r2=1.22&diff_format=u Index: phpdoc-fr/reference/strings/functions/trim.xml diff -u phpdoc-fr/reference/strings/functions/trim.xml:1.21 phpdoc-fr/reference/strings/functions/trim.xml:1.22 --- phpdoc-fr/reference/strings/functions/trim.xml:1.21 Fri Mar 7 20:19:08 2008 +++ phpdoc-fr/reference/strings/functions/trim.xml Sun May 25 09:00:35 2008 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.21 $ --> -<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.22 $ --> +<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> -<refentry xml:id="function.trim" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.trim"> <refnamediv> <refname>trim</refname> <refpurpose> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/ucfirst.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc-fr/reference/strings/functions/ucfirst.xml diff -u phpdoc-fr/reference/strings/functions/ucfirst.xml:1.14 phpdoc-fr/reference/strings/functions/ucfirst.xml:1.15 --- phpdoc-fr/reference/strings/functions/ucfirst.xml:1.14 Thu Jun 21 17:04:57 2007 +++ phpdoc-fr/reference/strings/functions/ucfirst.xml Sun May 25 09:00:35 2008 @@ -1,32 +1,63 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> -<!-- EN-Revision: 1.3 Maintainer: dams Status: partial --> +<!-- $Revision: 1.15 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.ucfirst" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>ucfirst</refname> - <refpurpose>Met le premier caractère en majuscule</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>ucfirst</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - </methodsynopsis> - <para> - <methodname>ucfirst</methodname> retourne la chaîne <parameter>str</parameter> - après avoir remplacé le premier caractère par sa majuscule, si le - premier caractère est alphabétique. - </para> - <para> - Notez que la notion d'"alphabétique" est déterminée par la configuration - de localisation. Cela signifie que pour la configuration par défaut - "C", les caractères tels que les voyelles accentuées (comme - <literal>é</literal>, <literal>è</literal> ou <literal>à</literal>) - ne seront pas converties. - <example> - <title>Exemple avec <function>ucfirst</function></title> - <programlisting role="php"> + +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.ucfirst"> + <refnamediv> + <refname>ucfirst</refname> + <refpurpose>Met le premier caractère en majuscule</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>ucfirst</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + </methodsynopsis> + <para> + Retourne la chaîne <parameter>str</parameter> après avoir remplacé + le premier caractère par sa majuscule, si le premier caractère est + alphabétique. + </para> + <para> + Notez que la notion d'"alphabétique" est déterminée par la configuration + de localisation. Cela signifie que pour la configuration par défaut + "C", les caractères tels que les voyelles accentuées (comme + <literal>é</literal>, <literal>è</literal> ou <literal>à</literal>) + ne seront pas converties. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str</parameter></term> + <listitem> + <para> + La chaîne d'entrée. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne la chaîne après modification. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>ucfirst</function></title> + <programlisting role="php"> <![CDATA[ <?php $foo = 'bonjour tout le monde!'; @@ -37,17 +68,24 @@ $bar = ucfirst(strtolower($bar)); // Bonjour tout le monde! ?> ]]> - </programlisting> - </example> - </para> - <para> - Voir aussi - <function>strtolower</function>, - <function>strtoupper</function> et - <function>ucwords</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>lcfirst</function></member> + <member><function>strtolower</function></member> + <member><function>strtoupper</function></member> + <member><function>ucwords</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/ucwords.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc-fr/reference/strings/functions/ucwords.xml diff -u phpdoc-fr/reference/strings/functions/ucwords.xml:1.14 phpdoc-fr/reference/strings/functions/ucwords.xml:1.15 --- phpdoc-fr/reference/strings/functions/ucwords.xml:1.14 Thu Jun 21 17:04:57 2007 +++ phpdoc-fr/reference/strings/functions/ucwords.xml Sun May 25 09:00:35 2008 @@ -1,34 +1,61 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> -<!-- EN-Revision: 1.5 Maintainer: dams Status: partial --> +<!-- $Revision: 1.15 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.ucwords" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>ucwords</refname> - <refpurpose> - Met en majuscule la première lettre de tous les mots - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>ucwords</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - </methodsynopsis> - <para> - <methodname>ucwords</methodname> retourne la chaîne - <parameter>str</parameter> après avoir mis en majuscule la première - lettre de tous les mots, si ce caractère est alphabétique. - </para> - <simpara> - La définition d'un mot est : toute séquence de caractères - qui suit immédiatement un caractère blanc (espace, tabulation, - nouvelle ligne, retour chariot, tabulation verticale). - </simpara> - <para> - <example> - <title>Exemple avec <function>ucwords</function></title> - <programlisting role="php"> + +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.ucwords"> + <refnamediv> + <refname>ucwords</refname> + <refpurpose>Met en majuscule la première lettre de tous les mots</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>ucwords</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + </methodsynopsis> + <para> + Retourne la chaîne <parameter>str</parameter> après avoir mis en + majuscule la première lettre de tous les mots, si ce caractère est + alphabétique. + </para> + <para> + La définition d'un mot est : toute séquence de caractères + qui suit immédiatement un caractère blanc (espace, tabulation, + nouvelle ligne, retour chariot, tabulation verticale). + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str</parameter></term> + <listitem> + <para> + La chaîne d'entrée. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne la chaîne, après modification. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>ucwords</function></title> + <programlisting role="php"> <![CDATA[ <?php $foo = 'bonjour tout le monde!'; @@ -39,20 +66,29 @@ $bar = ucwords(strtolower($bar)); // Bonjour Tout Le Monde! ?> ]]> - </programlisting> - </example> - </para> - - ¬e.bin-safe; - - <para> - Voir aussi - <function>strtoupper</function>, - <function>strtolower</function> et - <function>ucfirst</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + ¬e.bin-safe; + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>strtoupper</function></member> + <member><function>strtolower</function></member> + <member><function>ucfirst</function></member> + <member><function>mb_convert_case</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/vfprintf.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-fr/reference/strings/functions/vfprintf.xml diff -u phpdoc-fr/reference/strings/functions/vfprintf.xml:1.5 phpdoc-fr/reference/strings/functions/vfprintf.xml:1.6 --- phpdoc-fr/reference/strings/functions/vfprintf.xml:1.5 Tue Apr 15 00:00:47 2008 +++ phpdoc-fr/reference/strings/functions/vfprintf.xml Sun May 25 09:00:35 2008 @@ -1,51 +1,78 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.vfprintf" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>vfprintf</refname> - <refpurpose>Écrit une chaîne formatée dans un flux</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>vfprintf</methodname> - <methodparam><type>resource</type><parameter>handle</parameter></methodparam> - <methodparam><type>string</type><parameter>format</parameter></methodparam> - <methodparam><type>array</type><parameter>args</parameter></methodparam> - </methodsynopsis> - <simpara> - <function>vfprintf</function> écrit une chaîne produite en accord avec le - paramètre <parameter>format</parameter> dans le flux - <parameter>handle</parameter>. - <parameter>format</parameter> est décrit dans la page de documentation - de la fonction <function>sprintf</function>. - </simpara> - <simpara> - Agit de la même façon que <function>fprintf</function> excepté que - <function>vfprintf</function> accepte un tableau d'arguments, plutôt qu'un - nombre variant d'arguments. - </simpara> - <simpara> - Retourne la longueur de la chaîne produite. - </simpara> - <simpara> - Voir aussi - <function>printf</function>, - <function>sprintf</function>, - <function>sscanf</function>, - <function>fscanf</function>, - <function>vsprintf</function> et - <function>number_format</function>. - </simpara> - </refsect1> - <refsect1> - &reftitle.examples; - <para> - <example> - <title><function>vfprintf</function>: zéro comme caractères d'espacements</title> - <programlisting role="php"> + +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.vfprintf"> + <refnamediv> + <refname>vfprintf</refname> + <refpurpose>Écrit une chaîne formatée dans un flux</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>vfprintf</methodname> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> + <methodparam><type>string</type><parameter>format</parameter></methodparam> + <methodparam><type>array</type><parameter>args</parameter></methodparam> + </methodsynopsis> + <para> + Écrit une chaîne produite en accord avec le paramètre + <parameter>format</parameter> dans le flux <parameter>handle</parameter>. + </para> + <para> + Agit de la même façon que <function>fprintf</function> excepté que + <function>vfprintf</function> accepte un tableau d'arguments, plutôt qu'un + nombre variant d'arguments. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>handle</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>format</parameter></term> + <listitem> + <para> + Voir la documentation de la fonction <function>sprintf</function> + pour une description complète du paramètre + <parameter>format</parameter>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>args</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne la longueur de la chaîne retournée. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>vfprintf</function> : zéro comme caractères d'espacements</title> + <programlisting role="php"> <![CDATA[ <?php if (!($fp = fopen('date.txt', 'w'))) @@ -55,11 +82,26 @@ // écrira la date formatée ISO dans date.txt ?> ]]> - </programlisting> - </example> - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>printf</function></member> + <member><function>sprintf</function></member> + <member><function>sscanf</function></member> + <member><function>fscanf</function></member> + <member><function>vsprintf</function></member> + <member><function>number_format</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/vprintf.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-fr/reference/strings/functions/vprintf.xml diff -u phpdoc-fr/reference/strings/functions/vprintf.xml:1.10 phpdoc-fr/reference/strings/functions/vprintf.xml:1.11 --- phpdoc-fr/reference/strings/functions/vprintf.xml:1.10 Thu Jun 21 17:04:57 2007 +++ phpdoc-fr/reference/strings/functions/vprintf.xml Sun May 25 09:00:35 2008 @@ -1,39 +1,76 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.vprintf" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>vprintf</refname> - <refpurpose>Affiche une chaîne formatée</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>vprintf</methodname> - <methodparam><type>string</type><parameter>format</parameter></methodparam> - <methodparam><type>array</type><parameter>args</parameter></methodparam> - </methodsynopsis> - <simpara> - <function>vprintf</function> affiche le tableau <parameter>args</parameter>, - sous forme de chaîne formatée grâce à <parameter>format</parameter> - Le format est le même que celui utilisé par <function>sprintf</function>. - </simpara> - <simpara> - <function>vprintf</function> fonctionne comme <function>printf</function> - mais accepte un tableau comme argument, au lieu d'une liste d'arguments. - </simpara> - <simpara> - Retourne la longueur de la chaîne affiché. - </simpara> - <simpara> - Voir aussi - <function>printf</function>, - <function>sprintf</function> et - <function>vsprintf</function>. - </simpara> - </refsect1> - </refentry> + +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.vprintf"> + <refnamediv> + <refname>vprintf</refname> + <refpurpose>Affiche une chaîne formatée</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>vprintf</methodname> + <methodparam><type>string</type><parameter>format</parameter></methodparam> + <methodparam><type>array</type><parameter>args</parameter></methodparam> + </methodsynopsis> + <para> + Affiche le tableau <parameter>args</parameter>, sous forme de chaîne + formatée grâce à <parameter>format</parameter>. Le format est le même + que celui utilisé par <function>sprintf</function>. + </para> + <para> + <function>vprintf</function> fonctionne comme <function>printf</function> + mais accepte un tableau comme argument, au lieu d'une liste d'arguments. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>format</parameter></term> + <listitem> + <para> + Voir la documentation de la fonction <function>sprintf</function> + pour une description détaillée du paramètre + <parameter>format</parameter>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>args</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne la longueur de la chaîne retournée. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>printf</function></member> + <member><function>sprintf</function></member> + <member><function>vsprintf</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/vsprintf.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-fr/reference/strings/functions/vsprintf.xml diff -u phpdoc-fr/reference/strings/functions/vsprintf.xml:1.8 phpdoc-fr/reference/strings/functions/vsprintf.xml:1.9 --- phpdoc-fr/reference/strings/functions/vsprintf.xml:1.8 Thu Jun 21 17:04:57 2007 +++ phpdoc-fr/reference/strings/functions/vsprintf.xml Sun May 25 09:00:35 2008 @@ -1,36 +1,73 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.vsprintf" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>vsprintf</refname> - <refpurpose>Retourne une chaîne formatée</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>vsprintf</methodname> - <methodparam><type>string</type><parameter>format</parameter></methodparam> - <methodparam><type>array</type><parameter>args</parameter></methodparam> - </methodsynopsis> - <simpara> - <function>vsprintf</function> retourne une chaîne formatée à partir - du tableau de valeurs <parameter>args</parameter>, et en utilisant - le format <parameter>format</parameter>. - Le format est le même que celui utilisé par <function>sprintf</function>. - </simpara> - <simpara> - <function>vsprintf</function> fonctionne comme <function>sprintf</function> - mais accepte un tableau comme argument, au lieu d'une liste d'arguments. - </simpara> - <simpara> - Voir aussi - <function>sprintf</function> et - <function>vprintf</function>. - </simpara> - </refsect1> - </refentry> + +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.vsprintf"> + <refnamediv> + <refname>vsprintf</refname> + <refpurpose>Retourne une chaîne formatée</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>vsprintf</methodname> + <methodparam><type>string</type><parameter>format</parameter></methodparam> + <methodparam><type>array</type><parameter>args</parameter></methodparam> + </methodsynopsis> + <para> + <function>vsprintf</function> fonctionne comme <function>sprintf</function> + mais accepte un tableau comme argument, au lieu d'une liste d'arguments. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>format</parameter></term> + <listitem> + <para> + Voir la documentation de la fonction <function>sprintf</function> + pour une description détaillée du paramètre + <parameter>format</parameter>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>args</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne une chaîne formatée à partir du tableau de valeurs + <parameter>args</parameter>, et en utilisant le format + <parameter>format</parameter>. Le format est le même que celui + utilisé par <function>sprintf</function>. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>sprintf</function></member> + <member><function>vprintf</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/wordwrap.xml?r1=1.20&r2=1.21&diff_format=u Index: phpdoc-fr/reference/strings/functions/wordwrap.xml diff -u phpdoc-fr/reference/strings/functions/wordwrap.xml:1.20 phpdoc-fr/reference/strings/functions/wordwrap.xml:1.21 --- phpdoc-fr/reference/strings/functions/wordwrap.xml:1.20 Thu Jun 21 17:04:57 2007 +++ phpdoc-fr/reference/strings/functions/wordwrap.xml Sun May 25 09:00:35 2008 @@ -1,75 +1,132 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.20 $ --> -<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.21 $ --> +<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.wordwrap" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>wordwrap</refname> - <refpurpose> - Effectue la césure d'une chaîne - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>wordwrap</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>width</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>break</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>cut</parameter></methodparam> - </methodsynopsis> - <para> - <function>wordwrap</function> retourne la chaîne - <parameter>str</parameter>, après avoir inséré - <parameter>break</parameter> tous les <parameter>width</parameter> - caractères. - </para> - <para> - Par défaut, <function>wordwrap</function> va automatiquement - insérer une nouvelle ligne en utilisant <literal>\n</literal> tous les - 75 caractères, si <parameter>width</parameter> ou - <parameter>break</parameter> ne sont pas fournis. - </para> - <para> - Si le paramètre <parameter>cut</parameter> est mis à &true;, la césure de - la chaîne sera toujours à la taille <parameter>width</parameter>. Si vous - avez un mot qui est plus long que la taille de césure, il sera - coupé en morceaux. (Voir le second exemple.) - <note> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.wordwrap"> + <refnamediv> + <refname>wordwrap</refname> + <refpurpose>Effectue la césure d'une chaîne</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>wordwrap</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>width</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>break</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>cut</parameter></methodparam> + </methodsynopsis> + <para> + Effectue la césure d'une chaîne. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str</parameter></term> + <listitem> + <para> + La chaîne d'entrée. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>width</parameter></term> + <listitem> + <para> + La largeur de la colonne. Par défaut, 75. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>break</parameter></term> + <listitem> + <para> + La ligne est rompue en utilisant ce paramètre optionnel. + Par défaut, il vaut '<literal>\n</literal>'. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>cut</parameter></term> + <listitem> <para> - Le paramètre optionnel <parameter>cut</parameter> a - été ajouté en &php; 4.0.3. + Si le paramètre <parameter>cut</parameter> vaut &true;, la césure de + la chaîne sera toujours à la taille <parameter>width</parameter>. Si vous + avez un mot qui est plus long que la taille de césure, il sera + coupé en morceaux. (Voir le second exemple.) </para> - </note> - </para> - <para> - <example> - <title>Exemple avec <function>wordwrap</function></title> - <programlisting role="php"> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne la chaîne <parameter>str</parameter>, après avoir inséré + <parameter>break</parameter> tous les <parameter>width</parameter> + caractères. + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>4.0.3</entry> + <entry> + Ajout du paramètre optionnel <parameter>cut</parameter>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>wordwrap</function></title> + <programlisting role="php"> <![CDATA[ <?php $text = "Portez ce vieux whisky au juge blond qui fume."; -$newtext = wordwrap( $text, 20 ); +$newtext = wordwrap($text, 20, "<br />\n"); -echo "$newtext\n"; +echo $newtext; ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ -Portez ce vieux -whisky au juge +Portez ce vieux<br /> +whisky au juge<br /> blond qui fume. ]]> - </screen> - </example> - </para> - <para> - <example> - <title>Exemple avec <function>wordwrap</function> avec césure</title> - <programlisting role="php"> + </screen> + </example> + <example> + <title>Exemple avec <function>wordwrap</function></title> + <programlisting role="php"> <![CDATA[ <?php $text = "Un mot très très loooooooooooooooooong."; @@ -89,16 +146,22 @@ oooooooo ooong. ]]> - </screen> - </example> - </para> - <para> - Voir aussi - <function>nl2br</function> et - <function>chunk_split</function>. - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>nl2br</function></member> + <member><function>chunk_split</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/swf/functions/swf-closefile.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-fr/reference/swf/functions/swf-closefile.xml diff -u phpdoc-fr/reference/swf/functions/swf-closefile.xml:1.12 phpdoc-fr/reference/swf/functions/swf-closefile.xml:1.13 --- phpdoc-fr/reference/swf/functions/swf-closefile.xml:1.12 Fri Apr 25 14:06:55 2008 +++ phpdoc-fr/reference/swf/functions/swf-closefile.xml Sun May 25 09:00:36 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.swf-closefile" xmlns="http://docbook.org/ns/docbook"> @@ -38,6 +38,13 @@ </para> </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.void; + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/sybase/ini.xml?r1=1.22&r2=1.23&diff_format=u Index: phpdoc-fr/reference/sybase/ini.xml diff -u phpdoc-fr/reference/sybase/ini.xml:1.22 phpdoc-fr/reference/sybase/ini.xml:1.23 --- phpdoc-fr/reference/sybase/ini.xml:1.22 Wed Apr 30 22:26:21 2008 +++ phpdoc-fr/reference/sybase/ini.xml Sun May 25 09:00:36 2008 @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.22 $ --> -<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.23 $ --> +<!-- EN-Revision: 1.21 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> + <section xml:id="sybase.configuration" xmlns="http://docbook.org/ns/docbook"> &reftitle.runtime; &extension.runtime; @@ -23,19 +24,19 @@ <entry>sybase.allow_persistent</entry> <entry>"1"</entry> <entry>PHP_INI_ALL</entry> - <entry>PHP_INI_ALL dans &php; <= 4.0.2. PHP_INI_SYSTEM dans &php; <= 4.0.3.</entry> + <entry>PHP_INI_ALL dans PHP <= 4.0.2. PHP_INI_SYSTEM dans PHP <= 4.0.3.</entry> </row> <row> <entry>sybase.max_persistent</entry> <entry>"-1"</entry> <entry>PHP_INI_ALL</entry> - <entry>PHP_INI_ALL dans &php; <= 4.0.2. PHP_INI_SYSTEM dans &php; <= 4.0.3.</entry> + <entry>PHP_INI_ALL dans PHP <= 4.0.2. PHP_INI_SYSTEM dans PHP <= 4.0.3.</entry> </row> <row> <entry>sybase.max_links</entry> <entry>"-1"</entry> <entry>PHP_INI_ALL</entry> - <entry>PHP_INI_ALL dans &php; <= 4.0.2. PHP_INI_SYSTEM dans &php; <= 4.0.3.</entry> + <entry>PHP_INI_ALL dans PHP <= 4.0.2. PHP_INI_SYSTEM dans PHP <= 4.0.3.</entry> </row> <row> <entry>sybase.interface_file </entry> @@ -65,7 +66,7 @@ <entry>magic_quotes_sybase</entry> <entry>"0"</entry> <entry>PHP_INI_ALL</entry> - <entry></entry> + <entry>Supprimé depuis PHP 6.0.0.</entry> </row> </tbody> </tgroup> @@ -137,23 +138,6 @@ </listitem> </varlistentry> - <varlistentry xml:id="ini.sybase.compatability-mode"> - <term> - <parameter>sybase.compatability_mode</parameter> - <type>booléen</type> - </term> - <listitem> - <para> - Mode de compatibilité avec les anciennes versions de &php; 3.0. Si activé (on), - cela va faire que &php; assigne automatiquement des types aux résultats, - en fonctions de leur type Sybase, au lieu de les traiter comme des - chaînes de caractères. Ce mode de compatibilité ne va pas rester des - années, alors essayez de modifier votre code, et de désactiver cette - fonctionnalité. - </para> - </listitem> - </varlistentry> - <varlistentry xml:id="ini.magic-quotes-sybase"> <term> <parameter>magic_quotes_sybase</parameter> @@ -199,43 +183,43 @@ <entry>sybct.allow_persistent</entry> <entry>"1"</entry> <entry>PHP_INI_SYSTEM</entry> - <entry>PHP_INI_ALL dans &php; <= 4.0.2. Disponible depuis &php; 4.0.2.</entry> + <entry>PHP_INI_ALL dans PHP <= 4.0.2. Disponible depuis PHP 4.0.2. Supprimé depuis PHP 4.0.3.</entry> </row> <row> <entry>sybct.max_persistent</entry> <entry>"-1"</entry> <entry>PHP_INI_SYSTEM</entry> - <entry>PHP_INI_ALL dans &php; <= 4.0.2. Disponible depuis &php; 4.0.2.</entry> + <entry>PHP_INI_ALL dans PHP <= 4.0.2. Disponible depuis PHP 4.0.2. Supprimé depuis PHP 4.0.3.</entry> </row> <row> <entry>sybct.max_links</entry> <entry>"-1"</entry> <entry>PHP_INI_SYSTEM</entry> - <entry>PHP_INI_ALL dans &php; <= 4.0.2. Disponible depuis &php; 4.0.2.</entry> + <entry>PHP_INI_ALL dans PHP <= 4.0.2. Disponible depuis PHP 4.0.2. Supprimé depuis PHP 4.0.3.</entry> </row> <row> <entry>sybct.min_server_severity</entry> <entry>"10"</entry> <entry>PHP_INI_ALL</entry> - <entry>Disponible depuis &php; 4.0.2.</entry> + <entry>Disponible depuis PHP 4.0.2. Supprimé depuis PHP 4.0.3.</entry> </row> <row> <entry>sybct.min_client_severity</entry> <entry>"10"</entry> <entry>PHP_INI_ALL</entry> - <entry>Disponible depuis &php; 4.0.2.</entry> + <entry>Disponible depuis PHP 4.0.2. Supprimé depuis PHP 4.0.3.</entry> </row> <row> <entry>sybct.hostname</entry> <entry>NULL</entry> <entry>PHP_INI_ALL</entry> - <entry>Disponible depuis &php; 4.0.2.</entry> + <entry>Disponible depuis PHP 4.0.2. Supprimé depuis PHP 4.0.3.</entry> </row> <row> <entry>sybct.deadlock_retry_count</entry> <entry>"0"</entry> <entry>PHP_INI_ALL</entry> - <entry>Disponible depuis &php; 4.3.0.</entry> + <entry>Disponible depuis PHP 4.3.0.</entry> </row> </tbody> </tgroup> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/tidy/functions/tidy-construct.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-fr/reference/tidy/functions/tidy-construct.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-construct.xml:1.7 phpdoc-fr/reference/tidy/functions/tidy-construct.xml:1.8 --- phpdoc-fr/reference/tidy/functions/tidy-construct.xml:1.7 Thu Jun 21 17:04:59 2007 +++ phpdoc-fr/reference/tidy/functions/tidy-construct.xml Sun May 25 09:00:36 2008 @@ -1,50 +1,51 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> + <refentry xml:id="function.tidy-construct" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>tidy::__construct</refname> - <refpurpose> - Construit un nouvel objet Tidy - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>tidy</type><methodname>tidy::__construct</methodname> - <methodparam choice="opt"><type>string</type><parameter>filename</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>config</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>use_include_path</parameter></methodparam> - </methodsynopsis> - <para> - <function>tidy::__construct</function> construit un nouvel objet Tidy. - </para> - <para> - Si le paramètre <parameter>filename</parameter> est fourni, cette fonction - lira également ce fichier et initialisera l'objet avec ce fichier, agissant de la même façon - que la fonction <function>tidy_parse_file</function>. - </para> - &tidy.conf-enc; - <para> - <example> - <title>Exemple avec <function>tidy::__construct</function></title> - <programlisting role="php"> + <refnamediv> + <refname>tidy::__construct</refname> + <refpurpose> + Construit un nouvel objet Tidy + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>tidy</type><methodname>tidy::__construct</methodname> + <methodparam choice="opt"><type>string</type><parameter>filename</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter>config</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>use_include_path</parameter></methodparam> + </methodsynopsis> + <para> + <function>tidy::__construct</function> construit un nouvel objet Tidy. + </para> + <para> + Si le paramètre <parameter>filename</parameter> est fourni, cette fonction + lira également ce fichier et initialisera l'objet avec ce fichier, agissant de la même façon + que la fonction <function>tidy_parse_file</function>. + </para> + &tidy.conf-enc; + <para> + <example> + <title>Exemple avec <function>tidy::__construct</function></title> + <programlisting role="php"> <![CDATA[ <?php $html = <<< HTML -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" -"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head><title>title</title></head> -<body> -<p>paragraph <bt /> -text</p> -</body></html> + <head><title>title</title></head> + <body> + <p>paragraph <bt /> + text</p> + </body></html> HTML; @@ -54,30 +55,30 @@ $tidy->CleanRepair(); if ($tidy->errorBuffer) { - echo "Les erreurs suivantes ont été détectées :\n"; - echo $tidy->errorBuffer; +echo "Les erreurs suivantes ont été détectées :\n"; +echo $tidy->errorBuffer; } ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ Les erreurs suivantes ont été détectées : line 8 column 14 - Error: <bt> is not recognized! line 8 column 14 - Warning: discarding unexpected <bt> ]]> - </screen> - </example> - </para> - <para> - Voir aussi - <function>tidy_parse_file</function> et - <function>tidy_parse_string</function>. - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + <para> + Voir aussi + <function>tidy_parse_file</function> et + <function>tidy_parse_string</function>. + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/tidy/functions/tidynode-getparent.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/tidy/functions/tidynode-getparent.xml diff -u phpdoc-fr/reference/tidy/functions/tidynode-getparent.xml:1.2 phpdoc-fr/reference/tidy/functions/tidynode-getparent.xml:1.3 --- phpdoc-fr/reference/tidy/functions/tidynode-getparent.xml:1.2 Thu Jun 21 17:04:59 2007 +++ phpdoc-fr/reference/tidy/functions/tidynode-getparent.xml Sun May 25 09:00:36 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="function.tidynode-getparent" xmlns="http://docbook.org/ns/docbook"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/tidy/functions/tidyNode-isPhp.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-fr/reference/tidy/functions/tidyNode-isPhp.xml diff -u phpdoc-fr/reference/tidy/functions/tidyNode-isPhp.xml:1.6 phpdoc-fr/reference/tidy/functions/tidyNode-isPhp.xml:1.7 --- phpdoc-fr/reference/tidy/functions/tidyNode-isPhp.xml:1.6 Thu Jun 21 17:04:59 2007 +++ phpdoc-fr/reference/tidy/functions/tidyNode-isPhp.xml Sun May 25 09:00:36 2008 @@ -1,42 +1,43 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.tidyNode-isPhp" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>tidyNode->isPhp</refname> - <refpurpose> - Retourne &true; si ce noeud est en &php; - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>tidyNode->isPhp</methodname> - <void/> - </methodsynopsis> - <para> - <function>tidyNode->isPhp</function> retourne &true; si le noeud courant - est du code &php;, &false; sinon. - </para> - <para> - <example> - <title>Récupération du code &php; depuis un document HTML</title> - <programlisting role="php"> + +<refentry xml:id="function.tidyNode-isPhp" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>tidyNode->isPhp</refname> + <refpurpose> + Retourne &true; si ce noeud est en &php; + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>tidyNode->isPhp</methodname> + <void/> + </methodsynopsis> + <para> + <function>tidyNode->isPhp</function> retourne &true; si le noeud courant + est du code &php;, &false; sinon. + </para> + <para> + <example> + <title>Récupération du code &php; depuis un document HTML</title> + <programlisting role="php"> <![CDATA[ <?php $html = <<< HTML <html><head> -<?php echo '<title>Titre</title>'; ?> -</head> -<body> - -<?php -echo 'Bonjour le monde !'; -?> + <?php echo '<title>Titre</title>'; ?> + </head> + <body> + + <?php + echo 'Bonjour le monde !'; + ?> -</body></html> + </body></html> HTML; @@ -48,45 +49,45 @@ function get_php($node) { - // vérifie si le noeud courant est du code PHP - if($node->isPHP()) { - echo "\n\n# PHP node #" . ++$GLOBALS['num'] . "\n"; - echo $node->value; - } - - // vérifie si le noeud courant a des enfants - if($node->hasChildren()) { - foreach($node->child as $child) { - get_php($child); - } - } +// vérifie si le noeud courant est du code PHP +if($node->isPHP()) { +echo "\n\n# PHP node #" . ++$GLOBALS['num'] . "\n"; +echo $node->value; +} + +// vérifie si le noeud courant a des enfants +if($node->hasChildren()) { +foreach($node->child as $child) { +get_php($child); +} +} } ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ # PHP node #1 <?php echo '<title>Titre</title>'; ?> # PHP node #2 <?php -echo 'Bonjour le monde !'; -?> + echo 'Bonjour le monde !'; + ?> ]]> - </screen> - </example> - </para> - <note> - <para> - Cette fonction était nommée <function>tidy_node->is_php</function> - en &php; 4/Tidy 1. - </para> - </note> - </refsect1> - </refentry> + </screen> + </example> + </para> + <note> + <para> + Cette fonction était nommée <function>tidy_node->is_php</function> + en &php; 4/Tidy 1. + </para> + </note> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/tidy/functions/tidy-parse-string.xml?r1=1.17&r2=1.18&diff_format=u Index: phpdoc-fr/reference/tidy/functions/tidy-parse-string.xml diff -u phpdoc-fr/reference/tidy/functions/tidy-parse-string.xml:1.17 phpdoc-fr/reference/tidy/functions/tidy-parse-string.xml:1.18 --- phpdoc-fr/reference/tidy/functions/tidy-parse-string.xml:1.17 Sat Apr 12 17:11:34 2008 +++ phpdoc-fr/reference/tidy/functions/tidy-parse-string.xml Sun May 25 09:00:36 2008 @@ -1,58 +1,58 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17 $ --> -<!-- EN-Revision: 1.8 Maintainer: dams Status: ready --> +<!-- $Revision: 1.18 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.tidy-parse-string" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>tidy_parse_string</refname> - <refpurpose> - Analyse un document HTML contenu dans une chaîne - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <para>Style procédural :</para> - <methodsynopsis> - <type>tidy</type><methodname>tidy_parse_string</methodname> - <methodparam><type>string</type><parameter>input</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>config</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> - </methodsynopsis> - <para>Style orienté objet :</para> - <methodsynopsis> - <type>bool</type><methodname>tidy->parseString</methodname> - <methodparam><type>string</type><parameter>input</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>config</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> - </methodsynopsis> - <para> - <function>tidy_parse_string</function> analyse un document contenu dans une chaîne. - </para> - &tidy.conf-enc; - <para> - <example> - <title>Exemple avec <function>tidy_parse_string</function></title> - <programlisting role="php"> + +<refentry xml:id="function.tidy-parse-string" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>tidy_parse_string</refname> + <refpurpose> + Analyse un document HTML contenu dans une chaîne + </refpurpose> + </refnamediv> + <refsect1> + &reftitle.description; + <para>Style procédural :</para> + <methodsynopsis> + <type>tidy</type><methodname>tidy_parse_string</methodname> + <methodparam><type>string</type><parameter>input</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter>config</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> + </methodsynopsis> + <para>Style orienté objet :</para> + <methodsynopsis> + <type>bool</type><methodname>tidy->parseString</methodname> + <methodparam><type>string</type><parameter>input</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter>config</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> + </methodsynopsis> + <para> + <function>tidy_parse_string</function> analyse un document contenu dans une chaîne. + </para> + &tidy.conf-enc; + <para> + <example> + <title>Exemple avec <function>tidy_parse_string</function></title> + <programlisting role="php"> <![CDATA[ <?php ob_start(); ?> <html> - <head> - <title>test</title> - </head> - <body> - <p>erreur<br />une autre ligne</p> - </body> + <head> + <title>test</title> + </head> + <body> + <p>erreur<br />une autre ligne</p> + </body> </html> <?php - $buffer = ob_get_clean(); $config = array('indent' => TRUE, - 'output-xhtml' => TRUE, - 'wrap', 200); + 'output-xhtml' => TRUE, + 'wrap', 200); $tidy = tidy_parse_string($buffer, $config, 'UTF8'); @@ -61,38 +61,38 @@ echo $tidy; ?> ]]> - </programlisting> - &example.outputs; - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <title> - test - </title> - </head> - <body> - <p> - error<br /> - another line - </p> - </body> + <head> + <title> + test + </title> + </head> + <body> + <p> + error<br /> + another line + </p> + </body> </html> ]]> - </screen> - </example> - </para> - ¬e.tidy.2only; - <para> - Voir aussi - <function>tidy_parse_file</function>, - <function>tidy_repair_file</function> et - <function>tidy_repair_string</function>. - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + ¬e.tidy.2only; + <para> + Voir aussi + <function>tidy_parse_file</function>, + <function>tidy_repair_file</function> et + <function>tidy_repair_string</function>. + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: