1
0
mirror of https://github.com/php/doc-fr.git synced 2026-03-24 07:02:06 +01:00
Files
Louis-Arnaud 85c08658ec Fix grammar and spelling in ds/, radius/, rar/ and quickhash/ documentation (#2652)
* Fix grammar and spelling in ds/, radius/, rar/ and quickhash/ documentation

* Apply suggestion from @lacatoire
2026-03-11 21:24:13 +01:00

96 lines
3.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: bfe06c36ec1c0a37909704b292a204195b0bc14f Maintainer: Fan2Shrek Status: ready -->
<!-- Reviewed: yes -->
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="quickhashstringinthash.construct">
<refnamediv>
<refname>QuickHashStringIntHash::__construct</refname>
<refpurpose>Créer un nouvel objet QuickHashStringIntHash</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <methodname>QuickHashStringIntHash::__construct</methodname>
<methodparam><type>int</type><parameter>size</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
<simpara>
Ce constructeur crée un nouvel objet <classname>QuickHashStringIntHash</classname>. La taille est le nombre de
listes de seaux à créer. Plus il y a de listes, moins il y aura de collisions.
Les options sont également prises en charge.
</simpara>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<variablelist>
<varlistentry>
<term><parameter>size</parameter></term>
<listitem>
<simpara>
La quantité de listes de seaux à configurer. Le nombre que l'on passe sera
automatiquement arrondi à la puissance de deux suivante. Il est également
automatiquement limité de <literal>64</literal> à <literal>4194304</literal>.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>options</parameter></term>
<listitem>
<simpara>
Les options qu'il est possible de passer sont :
<constant>QuickHashStringIntHash::CHECK_FOR_DUPES</constant>, qui vérifie qu'aucune entrée dupliquée
n'est ajoutée au hachage et
<constant>QuickHashStringIntHash::DO_NOT_USE_ZEND_ALLOC</constant> pour ne pas utiliser le gestionnaire de mémoire
interne de PHP.
</simpara>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<simpara>
Renvoie un nouvel objet <classname>QuickHashStringIntHash</classname>.
</simpara>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>
<title>Exemple de <function>QuickHashStringIntHash::__construct</function></title>
<programlisting role="php">
<![CDATA[
<?php
var_dump( new QuickHashStringIntHash( 1024 ) );
var_dump( new QuickHashStringIntHash( 1024, QuickHashStringIntHash::CHECK_FOR_DUPES ) );
?>
]]>
</programlisting>
</example>
</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:"~/.phpdoc/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
-->