cvs: phpdoc-fr /reference/ctype configure.xml reference.xml /reference/ctype/functions ctype-alnum.xml ctype-alpha.xml ctype-cntrl.xml
ctype-digit.xml ctype-graph.xml ctype-lower.xml ctype-print.xml ctype-punct.xml ctype-space.xml ctype-upper.xml ctype-xdigit.xml

From: Date: Wed, 28 Apr 2004 22:55:54 +0000
Subject: cvs: phpdoc-fr /reference/ctype configure.xml reference.xml /reference/ctype/functions ctype-alnum.xml ctype-alpha.xml ctype-cntrl.xml
ctype-digit.xml ctype-graph.xml ctype-lower.xml ctype-print.xml ctype-punct.xml ctype-space.xml ctype-upper.xml ctype-xdigit.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-2365@lists.php.net to get a copy of this message
yannick Wed Apr 28 18:55:54 2004 EDT Modified files: /phpdoc-fr/reference/ctype/functions ctype-alnum.xml ctype-alpha.xml ctype-cntrl.xml ctype-digit.xml ctype-graph.xml ctype-lower.xml ctype-print.xml ctype-punct.xml ctype-space.xml ctype-upper.xml ctype-xdigit.xml /phpdoc-fr/reference/ctype configure.xml reference.xml Log: synch with EN Revision

http://cvs.php.net/diff.php/phpdoc-fr/reference/ctype/functions/ctype-alnum.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ctype/functions/ctype-alnum.xml diff -u phpdoc-fr/reference/ctype/functions/ctype-alnum.xml:1.6 phpdoc-fr/reference/ctype/functions/ctype-alnum.xml:1.7 --- phpdoc-fr/reference/ctype/functions/ctype-alnum.xml:1.6 Tue Feb 24 13:08:49 2004 +++ phpdoc-fr/reference/ctype/functions/ctype-alnum.xml Wed Apr 28 18:55:53 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/ctype.xml, last change in rev 1.6 --> -<!-- last change to 'ctype-alnum' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.ctype-alnum"> <refnamediv> <refname>ctype_alnum</refname> @@ -25,6 +22,36 @@ <literal>preg_match('/^[a-z0-9]*$/i', $text)</literal>. </para> <para> + <example> + <title>Exemple avec <function>ctype_alnum</function> en utilisant les locales + par défaut</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('AbCd1zyZ9', 'foo!#$bar'); +foreach ($strings as $testcase) { + if (ctype_alnum($testcase)) { + echo "La chaîne $testcase est constituée de caractères alphanumériques.\n"; + } else { + echo "La chaîne $testcase n'est pas constituée uniquement de + caractères alphanumériques.\n"; + } +} +?> +]]> + </programlisting> + <para> + Cette exemple affichera : + </para> + <screen> +<![CDATA[ +La chaîne AbCd1zyZ9 est constituée de caractères alphanumériques. +La chaîne foo!#$bar n'est pas constituée uniquement de caractères alphanumériques. +]]> + </screen> + </example> + </para> + <para> Voir aussi <function>ctype_alpha</function>, <function>ctype_digit</function> et http://cvs.php.net/diff.php/phpdoc-fr/reference/ctype/functions/ctype-alpha.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/ctype/functions/ctype-alpha.xml diff -u phpdoc-fr/reference/ctype/functions/ctype-alpha.xml:1.7 phpdoc-fr/reference/ctype/functions/ctype-alpha.xml:1.8 --- phpdoc-fr/reference/ctype/functions/ctype-alpha.xml:1.7 Tue Feb 24 13:08:49 2004 +++ phpdoc-fr/reference/ctype/functions/ctype-alpha.xml Wed Apr 28 18:55:53 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/ctype.xml, last change in rev 1.6 --> -<!-- last change to 'ctype-alpha' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.ctype-alpha"> <refnamediv> <refname>ctype_alpha</refname> @@ -27,6 +24,36 @@ qui ne sont ni des majuscules, ni des minuscules. </para> <para> + <example> + <title>Exemple avec <function>ctype_alpha</function> en utilisant les locales + par défaut</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('KjgWZC', 'arf12'); +foreach ($strings as $testcase) { + if (ctype_alpha($testcase)) { + echo "La chaîne $testcase est constituée de caractères alphabétiques.\n"; + } else { + echo "La chaîne $testcase n'est pas constituée uniquement de + caractères alphabétiques.\n"; + } +} +?> +]]> + </programlisting> + <para> + Cette exemple affichera : + </para> + <screen> +<![CDATA[ +La chaîne KjgWZC est constituée de caractères alphabétiques. +La chaîne arf12 n'est pas constituée uniquement de caractères alphabétiques. +]]> + </screen> + </example> + </para> + <para> Voir aussi <function>ctype_upper</function>, <function>ctype_lower</function> et http://cvs.php.net/diff.php/phpdoc-fr/reference/ctype/functions/ctype-cntrl.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ctype/functions/ctype-cntrl.xml diff -u phpdoc-fr/reference/ctype/functions/ctype-cntrl.xml:1.6 phpdoc-fr/reference/ctype/functions/ctype-cntrl.xml:1.7 --- phpdoc-fr/reference/ctype/functions/ctype-cntrl.xml:1.6 Tue Feb 24 13:08:49 2004 +++ phpdoc-fr/reference/ctype/functions/ctype-cntrl.xml Wed Apr 28 18:55:53 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/ctype.xml, last change in rev 1.6 --> -<!-- last change to 'ctype-cntrl' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ctype-cntrl"> <refnamediv> <refname>ctype_cntrl</refname> @@ -23,6 +20,34 @@ de contrôle spéciaux. Ces caractères sont les nouvelles lignes, les tabulations, etc. </para> + <para> + <example> + <title>Exemple avec <function>ctype_cntrl</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('string1' => "\n\r\t", 'string2' => 'arf12'); +foreach ($strings as $name => $testcase) { + if (ctype_cntrl($testcase)) { + echo "La chaîne '$name' est constituée de caractères de contrôle.\n"; + } else { + echo "La chaîne '$name' n'est pas consituée uniquement de caractères de contrôle.\n"; + } +} +?> +]]> + </programlisting> + <para> + Cette exemple affichera : + </para> + <screen> +<![CDATA[ +La chaîne 'string1' est constituée de caractères de contrôle. +La chaîne 'string2' n'est pas consituée uniquement de caractères de contrôle. +]]> + </screen> + </example> + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/ctype/functions/ctype-digit.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ctype/functions/ctype-digit.xml diff -u phpdoc-fr/reference/ctype/functions/ctype-digit.xml:1.5 phpdoc-fr/reference/ctype/functions/ctype-digit.xml:1.6 --- phpdoc-fr/reference/ctype/functions/ctype-digit.xml:1.5 Tue Feb 24 13:08:49 2004 +++ phpdoc-fr/reference/ctype/functions/ctype-digit.xml Wed Apr 28 18:55:53 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/ctype.xml, last change in rev 1.6 --> -<!-- last change to 'ctype-digit' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ctype-digit"> <refnamediv> <refname>ctype_digit</refname> @@ -21,6 +18,35 @@ &false; sinon. </para> <para> + <example> + <title>Exemple avec <function>ctype_digit</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('1820.20', '10002', 'wsl!12'); +foreach ($strings as $testcase) { + if (ctype_digit($testcase)) { + echo "La chaîne $testcase est un entier.\n"; + } else { + echo "La chaîne $testcase n'est pas un entier.\n"; + } +} +?> +]]> + </programlisting> + <para> + This example will output : + </para> + <screen> +<![CDATA[ +La chaîne 1820.20 n'est pas un entier. +La chaîne 10002 est un entier. +La chaîne wsl!12 n'est pas un entier. +]]> + </screen> + </example> + </para> + <para> Voir aussi <function>ctype_alnum</function> et <function>ctype_xdigit</function>. http://cvs.php.net/diff.php/phpdoc-fr/reference/ctype/functions/ctype-graph.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ctype/functions/ctype-graph.xml diff -u phpdoc-fr/reference/ctype/functions/ctype-graph.xml:1.5 phpdoc-fr/reference/ctype/functions/ctype-graph.xml:1.6 --- phpdoc-fr/reference/ctype/functions/ctype-graph.xml:1.5 Tue Feb 24 13:08:49 2004 +++ phpdoc-fr/reference/ctype/functions/ctype-graph.xml Wed Apr 28 18:55:53 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/ctype.xml, last change in rev 1.6 --> -<!-- last change to 'ctype-graph' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ctype-graph"> <refnamediv> <refname>ctype_graph</refname> @@ -24,6 +21,35 @@ n'en font pas partie). </para> <para> + <example> + <title>Exemple avec <function>ctype_graph</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('string1' => "asdf\n\r\t", 'string2' => 'arf12', 'string3' => 'LKA#@%.54'); +foreach ($strings as $name => $testcase) { + if (ctype_graph($testcase)) { + echo "La chaîne '$name' est constitué de caractères imprimables.\n"; + } else { + echo "La chaîne '$name' n'est pas constituée uniquement de caractères imprimables.\n"; + } +} +?> +]]> + </programlisting> + <para> + Cette exemple affichera : + </para> + <screen> +<![CDATA[ +La chaîne 'string1' n'est pas constituée uniquement de caractères imprimables. +La chaîne 'string2' est constitué de caractères imprimables. +La chaîne 'string3' est constitué de caractères imprimables. +]]> + </screen> + </example> + </para> + <para> Voir aussi <function>ctype_alnum</function>, <function>ctype_print</function> et http://cvs.php.net/diff.php/phpdoc-fr/reference/ctype/functions/ctype-lower.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ctype/functions/ctype-lower.xml diff -u phpdoc-fr/reference/ctype/functions/ctype-lower.xml:1.5 phpdoc-fr/reference/ctype/functions/ctype-lower.xml:1.6 --- phpdoc-fr/reference/ctype/functions/ctype-lower.xml:1.5 Tue Feb 24 13:08:49 2004 +++ phpdoc-fr/reference/ctype/functions/ctype-lower.xml Wed Apr 28 18:55:53 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/ctype.xml, last change in rev 1.6 --> -<!-- last change to 'ctype-lower' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ctype-lower"> <refnamediv> <refname>ctype_lower</refname> @@ -20,9 +17,40 @@ de la chaîne <parameter>text</parameter> sont des minuscules. </para> <para> + <example> + <title>Exemple avec <function>ctype_lower</function> en utilisant les locales + par défaut</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('aac123', 'qiutoas', 'QASsdks'); +foreach ($strings as $testcase) { + if (ctype_lower($testcase)) { + echo "La chaîne $testcase est en minuscule.\n"; + } else { + echo "La chaîne $testcase n'est pas qu'en minuscule.\n"; + } +} +?> +]]> + </programlisting> + <para> + This example will output : + </para> + <screen> +<![CDATA[ +La chaîne aac123 n'est pas qu'en minuscule. +La chaîne qiutoas est en minuscule. +La chaîne QASsdks n'est pas qu'en minuscule. +]]> + </screen> + </example> + </para> + <para> Voir aussi - <function>ctype_alpha</function> et - <function>ctype_upper</function>. + <function>ctype_alpha</function>, + <function>ctype_upper</function> et + <function>setlocale</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/ctype/functions/ctype-print.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ctype/functions/ctype-print.xml diff -u phpdoc-fr/reference/ctype/functions/ctype-print.xml:1.6 phpdoc-fr/reference/ctype/functions/ctype-print.xml:1.7 --- phpdoc-fr/reference/ctype/functions/ctype-print.xml:1.6 Tue Feb 24 13:08:49 2004 +++ phpdoc-fr/reference/ctype/functions/ctype-print.xml Wed Apr 28 18:55:53 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/ctype.xml, last change in rev 1.6 --> -<!-- last change to 'ctype-print' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ctype-print"> <refnamediv> <refname>ctype_print</refname> @@ -21,6 +18,35 @@ l'écran (y compris les espaces blancs). </para> <para> + <example> + <title>Exemple avec <function>ctype_print</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('string1' => "asdf\n\r\t", 'string2' => 'arf12', 'string3' => 'LKA#@%.54'); +foreach ($strings as $name => $testcase) { + if (ctype_print($testcase)) { + echo "La chaîne '$name' est constituée de caractères imprimables.\n"; + } else { + echo "La chaîne '$name' n'est pas uniquement constituée de caractères imprimbles.\n"; + } +} +?> +]]> + </programlisting> + <para> + Cette exemple affichera : + </para> + <screen> +<![CDATA[ +La chaîne 'string1' n'est pas uniquement constituée de caractères imprimbles. +La chaîne 'string2' est constituée de caractères imprimables. +La chaîne 'string3' est constituée de caractères imprimables. +]]> + </screen> + </example> + </para> + <para> Voir aussi <function>ctype_cntrl</function>, <function>ctype_graph</function> et http://cvs.php.net/diff.php/phpdoc-fr/reference/ctype/functions/ctype-punct.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ctype/functions/ctype-punct.xml diff -u phpdoc-fr/reference/ctype/functions/ctype-punct.xml:1.6 phpdoc-fr/reference/ctype/functions/ctype-punct.xml:1.7 --- phpdoc-fr/reference/ctype/functions/ctype-punct.xml:1.6 Tue Feb 24 13:08:49 2004 +++ phpdoc-fr/reference/ctype/functions/ctype-punct.xml Wed Apr 28 18:55:53 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/ctype.xml, last change in rev 1.6 --> -<!-- last change to 'ctype-punct' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ctype-punct"> <refnamediv> <refname>ctype_punct</refname> @@ -23,6 +20,35 @@ ne sont ni des lettres, ni des chiffres, ni des espaces. </para> <para> + <example> + <title>Exemple avec <function>ctype_punct</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('ABasdk!@!$#', '!@ # $', '*&$()'); +foreach ($strings as $testcase) { + if (ctype_punct($testcase)) { + echo "La chaîne $testcase est constituée de ponctuation.\n"; + } else { + echo "La chaîne $testcase n'est pas constituée que de ponctuation.\n"; + } +} +?> +]]> + </programlisting> + <para> + Cette exemple affichera : + </para> + <screen> +<![CDATA[ +La chaîne ABasdk!@!$# n'est pas constituée que de ponctuation. +La chaîne !@ # $ n'est pas constituée que de ponctuation. +La chaîne *&$() est constituée de ponctuation. +]]> + </screen> + </example> + </para> + <para> Voir aussi <function>ctype_cntrl</function>, <function>ctype_graph</function> et http://cvs.php.net/diff.php/phpdoc-fr/reference/ctype/functions/ctype-space.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ctype/functions/ctype-space.xml diff -u phpdoc-fr/reference/ctype/functions/ctype-space.xml:1.6 phpdoc-fr/reference/ctype/functions/ctype-space.xml:1.7 --- phpdoc-fr/reference/ctype/functions/ctype-space.xml:1.6 Tue Feb 24 13:08:49 2004 +++ phpdoc-fr/reference/ctype/functions/ctype-space.xml Wed Apr 28 18:55:53 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/ctype.xml, last change in rev 1.6 --> -<!-- last change to 'ctype-space' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ctype-space"> <refnamediv> <refname>ctype_space</refname> @@ -24,6 +21,41 @@ couvre les tabulations (verticales et horizontales), les nouvelles lignes, les retours chariots et les retours à la ligne. </para> + <para> + <example> + <title>Exemple avec <function>ctype_space</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('string1' => "\n\r\t", 'string2' => "\narf12", 'string3' => '\n\r\t'); +foreach ($strings as $name => $testcase) { + if (ctype_space($testcase)) { + echo "La chaîne '$name' est constituée de caractères blancs.\n"; + } else { + echo "La chaîne '$name' n'est pas uniquement constituée de caractères blancs.\n"; + } +} +?> +]]> + </programlisting> + <para> + Cette exemple affichera : + </para> + <screen> +<![CDATA[ +La chaîne 'string1' est constituée de caractères blancs. +La chaîne 'string2' n'est pas uniquement constituée de caractères blancs. +La chaîne 'string3' n'est pas uniquement constituée de caractères blancs. +]]> + </screen> + </example> + </para> + <para> + Voir aussi + <function>ctype_cntrl</function>, + <function>ctype_graph</function> et + <function>ctype_punct</function>. + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/ctype/functions/ctype-upper.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ctype/functions/ctype-upper.xml diff -u phpdoc-fr/reference/ctype/functions/ctype-upper.xml:1.5 phpdoc-fr/reference/ctype/functions/ctype-upper.xml:1.6 --- phpdoc-fr/reference/ctype/functions/ctype-upper.xml:1.5 Tue Feb 24 13:08:49 2004 +++ phpdoc-fr/reference/ctype/functions/ctype-upper.xml Wed Apr 28 18:55:53 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/ctype.xml, last change in rev 1.6 --> -<!-- last change to 'ctype-upper' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.ctype-upper"> <refnamediv> <refname>ctype_upper</refname> @@ -20,9 +17,40 @@ de la chaîne <parameter>text</parameter> sont des majuscules. </para> <para> + <example> + <title>Exemple avec <function>ctype_upper</function> en utilisant les locales + par défaut</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('AKLWC139', 'LMNSDO', 'akwSKWsm'); +foreach ($strings as $testcase) { + if (ctype_upper($testcase)) { + echo "La chaîne $testcase est constituée de majuscules.\n"; + } else { + echo "La chaîne $testcase n'est pas uniquement constituée de majuscules.\n"; + } +} +?> +]]> + </programlisting> + <para> + Cette exemple affichera : + </para> + <screen> +<![CDATA[ +La chaîne AKLWC139 n'est pas uniquement constituée de majuscules. +La chaîne LMNSDO est constituée de majuscules. +La chaîne akwSKWsm n'est pas uniquement constituée de majuscules. +]]> + </screen> + </example> + </para> + <para> Voir aussi - <function>ctype_alpha</function> et - <function>ctype_lower</function>. + <function>ctype_alpha</function>, + <function>ctype_lower</function> et + <function>setlocale</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/ctype/functions/ctype-xdigit.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/reference/ctype/functions/ctype-xdigit.xml diff -u phpdoc-fr/reference/ctype/functions/ctype-xdigit.xml:1.8 phpdoc-fr/reference/ctype/functions/ctype-xdigit.xml:1.9 --- phpdoc-fr/reference/ctype/functions/ctype-xdigit.xml:1.8 Tue Feb 24 13:08:49 2004 +++ phpdoc-fr/reference/ctype/functions/ctype-xdigit.xml Wed Apr 28 18:55:53 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/ctype.xml, last change in rev 1.6 --> -<!-- last change to 'ctype-xdigit' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ctype-xdigit"> <refnamediv> <refname>ctype_xdigit</refname> @@ -25,6 +22,35 @@ <literal>[A-Fa-f]</literal>, sinon, elle renvoie &false;. </para> <para> + <example> + <title>Exemple avec <function>ctype_xdigit</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('AB10BC99', 'AR1012', 'ab12bc99'); +foreach ($strings as $testcase) { + if (ctype_xdigit($testcase)) { + echo "La chaîne $testcase est constituée de chiffres hexadécimaux.\n"; + } else { + echo "La chaîne $testcase n'est pas uniquement constituée de chiffres hexadécimaux.\n"; + } +} +?> +]]> + </programlisting> + <para> + Cette exemple affichera : + </para> + <screen> +<![CDATA[ +La chaîne AB10BC99 est constituée de chiffres hexadécimaux. +La chaîne AR1012 n'est pas uniquement constituée de chiffres hexadécimaux. +La chaîne ab12bc99 est constituée de chiffres hexadécimaux. +]]> + </screen> + </example> + </para> + <para> Voir aussi <function>ctype_digit</function>. </para> http://cvs.php.net/diff.php/phpdoc-fr/reference/ctype/configure.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/ctype/configure.xml diff -u phpdoc-fr/reference/ctype/configure.xml:1.3 phpdoc-fr/reference/ctype/configure.xml:1.4 --- phpdoc-fr/reference/ctype/configure.xml:1.3 Wed Feb 25 07:34:35 2004 +++ phpdoc-fr/reference/ctype/configure.xml Wed Apr 28 18:55:54 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <section id="ctype.installation"> &reftitle.install; @@ -12,6 +12,9 @@ l'option de compilation <option role="configure">--disable-ctype</option>. </para> &windows.builtin; + <simpara> + Cette librairie fait partie intégrante de &php; depuis la version 4.3.0. + </simpara> </section> http://cvs.php.net/diff.php/phpdoc-fr/reference/ctype/reference.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/reference/ctype/reference.xml diff -u phpdoc-fr/reference/ctype/reference.xml:1.8 phpdoc-fr/reference/ctype/reference.xml:1.9 --- phpdoc-fr/reference/ctype/reference.xml:1.8 Wed Feb 25 07:34:35 2004 +++ phpdoc-fr/reference/ctype/reference.xml Wed Apr 28 18:55:54 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <reference id="ref.ctype"> <title>Caractères</title> <titleabbrev>ctype</titleabbrev> @@ -10,7 +10,8 @@ <para> Ces fonctions vérifient si un caractère ou une chaîne de caractères font partie d'une certaine classe de - caractères, en fonction de la configuration locale. + caractères, en fonction de la configuration locale + (voir aussi <function>setlocale</function>). </para> <para> Appelées avec un argument de type entier, ces fonctions @@ -20,6 +21,7 @@ Appelées avec un argument de type chaîne, elles vérifieront chaque caractère de la chaîne, et ne retourneront &true; que si chacun satisfait les critères requis. + Appelées avec un argument vide, le résultat sera toujours &true;. </para> <para> Tout autre type d'argument (autre que chaîne ou entier)
« previous php.doc.fr (#2365) next »