cvs: phpdoc-fr /reference/com/functions variant-cat.xml variant-cmp.xml variant-date-to-timestamp.xml variant-div.xml variant-eqv.xml variant-fix.xml
variant-get-type.xml variant-idiv.xml variant-set.xml variant-sub.xml

From: Date: Sat, 22 May 2004 16:14:40 +0000
Subject: cvs: phpdoc-fr /reference/com/functions variant-cat.xml variant-cmp.xml variant-date-to-timestamp.xml variant-div.xml variant-eqv.xml variant-fix.xml
variant-get-type.xml variant-idiv.xml variant-set.xml variant-sub.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-2709@lists.php.net to get a copy of this message
didou Sat May 22 12:14:40 2004 EDT Added files: /phpdoc-fr/reference/com/functions variant-cat.xml variant-cmp.xml variant-date-to-timestamp.xml variant-div.xml variant-eqv.xml variant-fix.xml variant-get-type.xml variant-idiv.xml variant-set.xml variant-sub.xml Log: sync with en

http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-cat.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-cat.xml +++ phpdoc-fr/reference/com/functions/variant-cat.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-cat"> <refnamediv> <refname>variant_cat</refname> <refpurpose> Concatène deux valeurs variantes ensemble et retourne le résultat </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_cat</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Concatène <parameter>left</parameter> avec <parameter>right</parameter> et retourne le résultat. </para> <para> Voir aussi <xref linkend="language.operators.string"/> pour l'opérateur de concaténation des chaînes; cette fonction est équivalente à <parameter>$left</parameter> <literal>.</literal> <parameter>$right</parameter>. </para> &reference.com.variant-arith; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-cmp.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-cmp.xml +++ phpdoc-fr/reference/com/functions/variant-cmp.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-cmp"> <refnamediv> <refname>variant_cmp</refname> <refpurpose> Compare deux variants </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>variant_cmp</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>lcid</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam> </methodsynopsis> <para> Compare <parameter>left</parameter> avec <parameter>right</parameter> et retourne une des valeurs suivantes : <table> <title>Résultats des comparaisons sur variants</title> <tgroup cols="2"> <thead> <row> <entry>Valeur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry><constant>VARCMP_LT</constant></entry> <entry><parameter>left</parameter> est plus petit que <parameter>right</parameter> </entry> </row> <row> <entry><constant>VARCMP_EQ</constant></entry> <entry><parameter>left</parameter> est égal à <parameter>right</parameter> </entry> </row> <row> <entry><constant>VARCMP_GT</constant></entry> <entry><parameter>left</parameter> est plus grand que <parameter>right</parameter> </entry> </row> <row> <entry><constant>VARCMP_NULL</constant></entry> <entry><parameter>left</parameter>, <parameter>right</parameter> ou les deux sont &null; </entry> </row> </tbody> </tgroup> </table> </para> <para> Cette fonction ne comparera que des valeurs scalaires, pas de tableaux ni d'enregistrements variants. </para> <para> <parameter>lcid</parameter> est un Locale Identifier valide à utiliser lors des comparaisons des chaînes (celà affecte la collation de la chaîne). <parameter>flags</parameter> peut être une ou plusieurs des valeurs suivantes, jointes avec des OR, et affecte les comparaisons de chaînes : <table> <title>Options de comparaison Variant</title> <tgroup cols="2"> <thead> <row> <entry>Valeur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry><constant>NORM_IGNORECASE</constant></entry> <entry>Compare avec sensibilité à la casse</entry> </row> <row> <entry><constant>NORM_IGNORENONSPACE</constant></entry> <entry>Ignore les caractères non-espaceants</entry> </row> <row> <entry><constant>NORM_IGNORESYMBOLS</constant></entry> <entry>Ignore les symboles</entry> </row> <row> <entry><constant>NORM_IGNOREWIDTH</constant></entry> <entry>Ignore la taille de la chaîne</entry> </row> <row> <entry><constant>NORM_IGNOREKANATYPE</constant></entry> <entry>Ignore le type de Kana</entry> </row> <row> <entry><constant>NORM_IGNOREKASHIDA</constant></entry> <entry>Ignore les caractères arabes kashida</entry> </row> </tbody> </tgroup> </table> </para> &reference.com.variant-arith; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-date-to-timestamp.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-date-to-timestamp.xml +++ phpdoc-fr/reference/com/functions/variant-date-to-timestamp.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-date-to-timestamp"> <refnamediv> <refname>variant_date_to_timestamp</refname> <refpurpose> Convertit une valeur date/temps variante en un timestamp unix </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>variant_date_to_timestamp</methodname> <methodparam><type>object</type><parameter>variant</parameter></methodparam> </methodsynopsis> <para> Convertit <parameter>variant</parameter> d'une valeur <constant>VT_DATE</constant> (ou similaire) en un timestamp unix. Cela permet une interopabilité plus facile entre les parties unix de &php; et COM. </para> <para> Voir aussi <function>variant_date_from_timestamp</function> pour l'inverse de cette opération <function>date</function> et <function>strftime</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-div.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-div.xml +++ phpdoc-fr/reference/com/functions/variant-div.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready -->--> <refentry id="function.variant-div"> <refnamediv> <refname>variant_div</refname> <refpurpose> Retourne le résultat de la division de deux variants </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_div</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Divise <parameter>left</parameter> par <parameter>right</parameter> et retourne le résultat, qui applique les règles suivantes : <table> <title>Règle de division des variants</title> <tgroup cols="2"> <thead> <row> <entry>Si</entry> <entry>Alors</entry> </row> </thead> <tbody> <row> <entry>Les deux expressions sont des chaînes, dates, caractères, booléens</entry> <entry>Double est retourné</entry> </row> <row> <entry>Une expression est une chaîne et l'autre est un caractère</entry> <entry>Division et double retournés</entry> </row> <row> <entry>Une expression est numérique et l'autre est une chaîne</entry> <entry>Division et double retournés</entry> </row> <row> <entry>Les deux expressions sont numériques</entry> <entry>Division et double retournés</entry> </row> <row> <entry>Une des expressions est NULL</entry> <entry>NULL est retourné</entry> </row> <row> <entry><parameter>right</parameter> est vide et <parameter>left</parameter> est tout mais non vide</entry> <entry>Un code com_exception <constant>DISP_E_DIVBYZERO</constant> est lancé</entry> </row> <row> <entry><parameter>left</parameter> est vide et <parameter>right</parameter> est tout mais non vide.</entry> <entry>0 en tant que double est retourné</entry> </row> <row> <entry>Les deux expressions sont vides</entry> <entry>Un code com_exception <constant>DISP_E_OVERFLOW</constant> est lancé</entry> </row> </tbody> </tgroup> </table> </para> &reference.com.variant-arith; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-eqv.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-eqv.xml +++ phpdoc-fr/reference/com/functions/variant-eqv.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-eqv"> <refnamediv> <refname>variant_eqv</refname> <refpurpose> Performe une équivalence de bits de deux variants </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_eqv</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Si chaque bit dans <parameter>left</parameter> est égal au bit correspondant dans <parameter>right</parameter> alors la fonction retourne &true;, sinon elle retourne &false;. </para> &reference.com.variant-arith; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-fix.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-fix.xml +++ phpdoc-fr/reference/com/functions/variant-fix.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-fix"> <refnamediv> <refname>variant_fix</refname> <refpurpose> Retourne la portion entière d'un variant </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_fix</methodname> <methodparam><type>mixed</type><parameter>variant</parameter></methodparam> </methodsynopsis> <para> Si <parameter>variant</parameter> est négatif, le premier entier négatif plus grand ou égal au variant est retourné, sinon cette fonction retourne la portion entière de la valeur de <parameter>variant</parameter>. </para> <warning> <simpara> Cette documentation est basée sur la documentation MSDN; il apparait que cette fonction est la même que <function>variant_int</function>, ou alors, il y'a une erreur dans la documentation de MSDN. </simpara> </warning> <para> Voir aussi <function>variant_int</function>, <function>variant_round</function>, <function>floor</function>, <function>ceil</function>, <function>round</function>. </para> &reference.com.variant-arith; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-get-type.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-get-type.xml +++ phpdoc-fr/reference/com/functions/variant-get-type.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-get-type"> <refnamediv> <refname>variant_get_type</refname> <refpurpose>Retourne le type d'un objet variant</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>variant_get_type</methodname> <methodparam><type>object</type><parameter>variant</parameter></methodparam> </methodsynopsis> <para> Cette fonction retourne une valeur entière qui indique le type de <parameter>variant</parameter>, qui peut être une instance de <xref linkend="class.com"/>, <xref linkend="class.dotnet"/> ou de <xref linkend="class.variant"/>. La valeur de retour peut être comparée à l'une des constantes <constant>VT_XXX</constant>. </para> <para> La valeur de retour pour les objets COM et DOTNET sera la plupart du temps <constant>VT_DISPATCH</constant>; la seule raison qui fait que cette fonction marche avec ces classes est que COM et DOTNET sont de déscendants de VARIANT. </para> <para> Avant &php; 5, vous pouvez obtenir cette information en lisant une fausse propriété <parameter>type</parameter>. Voyez la classe <xref linkend="class.variant"/> pour plus d'informations. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-idiv.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-idiv.xml +++ phpdoc-fr/reference/com/functions/variant-idiv.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-idiv"> <refnamediv> <refname>variant_idiv</refname> <refpurpose> Convertit des variants en valeurs entières, et performe alors une division </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_idiv</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Convertit <parameter>left</parameter> et <parameter>right</parameter> en valeurs entières, et performe alors une division entière selon les règles suivantes : <table> <title>Règles de divisions internes des variants</title> <tgroup cols="2"> <thead> <row> <entry>Si</entry> <entry>Alors</entry> </row> </thead> <tbody> <row> <entry>Les deux expressions sont des chaînes, dates, caractères, booléens</entry> <entry>Division et entier retournés</entry> </row> <row> <entry>Une expression est une chaîne et l'autre est un caractère</entry> <entry>Division</entry> </row> <row> <entry>Une expression est numérique et l'autre est une chaîne</entry> <entry>Division</entry> </row> <row> <entry>Les deux expressions sont numériques</entry> <entry>Division</entry> </row> <row> <entry>Une des expressions est NULL</entry> <entry>NULL est retourné</entry> </row> <row> <entry>Les deux expressions sont vides</entry> <entry>Un code com_exception <constant>DISP_E_DIVBYZERO</constant> est lancé</entry> </row> </tbody> </tgroup> </table> </para> <para> Voir aussi <function>variant_div</function>. </para> &reference.com.variant-arith; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-set.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-set.xml +++ phpdoc-fr/reference/com/functions/variant-set.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-set"> <refnamediv> <refname>variant_set</refname> <refpurpose> Assigne une nouvelle valeur pour un objet variant </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>variant_set</methodname> <methodparam><type>object</type><parameter>variant</parameter></methodparam> <methodparam><type>mixed</type><parameter>value</parameter></methodparam> </methodsynopsis> <para> Convertit <parameter>value</parameter> en un variant et l'assigne à l'objet <parameter>variant</parameter>. Aucun nouvel objet n'est créé et l'ancienne valeur de <parameter>variant</parameter> est libérée. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/com/functions/variant-sub.xml?r=1.1&p=1 Index: phpdoc-fr/reference/com/functions/variant-sub.xml +++ phpdoc-fr/reference/com/functions/variant-sub.xml <?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.variant-sub"> <refnamediv> <refname>variant_sub</refname> <refpurpose> Soustrait la valeur du variant de droite de la valeur de celui de gauche et retourne le résultat </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>variant_sub</methodname> <methodparam><type>mixed</type><parameter>left</parameter></methodparam> <methodparam><type>mixed</type><parameter>right</parameter></methodparam> </methodsynopsis> <para> Soustrait <parameter>right</parameter> de <parameter>left</parameter> en utilisant les règles suivantes : <table> <title>Règles de soustraction des variants</title> <tgroup cols="2"> <thead> <row> <entry>Si</entry> <entry>Alors</entry> </row> </thead> <tbody> <row> <entry>Les deux expressions sont des chaînes</entry> <entry>Soustraction</entry> </row> <row> <entry>Une expression est une chaîne et l'autre est un caractère</entry> <entry>Soustraction</entry> </row> <row> <entry>Une expression est numérique et l'autre est une chaîne</entry> <entry>Soustraction.</entry> </row> <row> <entry>Les deux expressions sont numériques</entry> <entry>Soustraction</entry> </row> <row> <entry>Une des expressions est NULL</entry> <entry>NULL est retourné</entry> </row> <row> <entry>Les deux expressions sont vides</entry> <entry>Une chaîne vide est retournée</entry> </row> </tbody> </tgroup> </table> </para> <para> Voir aussi <function>variant_add</function>. </para> &reference.com.variant-arith; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.doc.fr (#2709) next »