Files
doc-fr/reference/strings/functions/strcoll.xml
Yannick Torres 9c7ff392b9 syn with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@260266 c90b9560-bf6c-de11-be94-00142212c4b1
2008-05-25 07:25:00 +00:00

128 lines
3.3 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.13 $ -->
<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready -->
<!-- Reviewed: yes -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.strcoll">
<refnamediv>
<refname>strcoll</refname>
<refpurpose>Comparaison de chaînes localisées</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>int</type><methodname>strcoll</methodname>
<methodparam><type>string</type><parameter>str1</parameter></methodparam>
<methodparam><type>string</type><parameter>str2</parameter></methodparam>
</methodsynopsis>
<para>
Notez que cette comparaison est sensible à la casse, et que,
contrairement à <function>strcmp</function>, elle n'est pas
compatible avec les chaînes binaires.
</para>
<para>
<function>strcoll</function> utilise les locales courantes pour
effectuer la comparaison. Si la locale courante est
C ou POSIX, cette fonction est alors équivalente à la fonction
<function>strcmp</function>.
</para>
</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>
Retourne &lt; 0 si <parameter>str1</parameter>
est inférieure à <parameter>str2</parameter>; &gt; 0 si <parameter>str1</parameter>
est supérieure à <parameter>str2</parameter>, et 0 si les deux chaînes
sont égales.
</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.2.3</entry>
<entry>
Fonctionne désormais sous les systèmes Win32.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</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
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
-->