<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.intlchar.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'intlchar.enumcharnames.php',
    1 => 'IntlChar::enumCharNames',
    2 => 'Enum&egrave;re tous les caract&egrave;res Unicode assign&eacute;s dans une plage',
  ),
  'up' => 
  array (
    0 => 'class.intlchar.php',
    1 => 'IntlChar',
  ),
  'prev' => 
  array (
    0 => 'intlchar.digit.php',
    1 => 'IntlChar::digit',
  ),
  'next' => 
  array (
    0 => 'intlchar.enumchartypes.php',
    1 => 'IntlChar::enumCharTypes',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/intl/intlchar/enumcharnames.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="intlchar.enumcharnames" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlChar::enumCharNames</h1>
  <p class="verinfo">(PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">IntlChar::enumCharNames</span> &mdash; <span class="dc-title">Enumère tous les caractères Unicode assignés dans une plage</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intlchar.enumcharnames-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>IntlChar::enumCharNames</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$start</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$end</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span> <code class="parameter">$callback</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$type</code><span class="initializer"> = IntlChar::UNICODE_CHAR_NAME</span></span><br>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Enumère tous les caractères Unicode assignés entre les points de code de début et de fin (inclusivement le début, exclusivement la fin)
   et appelle une fonction pour chacun, passant la valeur du point de code et le nom du caractère.
  </p>
  <p class="para">
   Pour les noms Unicode 1.0, seuls ceux qui diffèrent des noms modernes sont énumérés.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-intlchar.enumcharnames-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <dl>
   
    <dt><code class="parameter">start</code></dt>
    <dd>
     <p class="para">
      Le premier point de code dans la plage d&#039;énumération.
     </p>
    </dd>
   
   
    <dt><code class="parameter">end</code></dt>
    <dd>
     <p class="para">
      Un ou plusieurs points de code de plus que le dernier point de code dans la plage d&#039;énumération (le premier après la plage).
     </p>
    </dd>
   
   
    <dt><code class="parameter">callback</code></dt>
    <dd>
     <p class="para">
      La fonction qui doit être appelée pour chaque nom de caractère. Les trois arguments suivants lui seront passés :
      <ul class="simplelist">
       <li><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="literal">$codepoint</code> - La valeur numérique du point de code</li>
         <li><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="literal">$nameChoice</code> - La même valeur que le paramètre <code class="parameter">type</code> ci-dessous</li>
         <li><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="literal">$name</code> - Le nom du caractère</li>
      </ul>
     </p>
    </dd>
   
   
    <dt><code class="parameter">type</code></dt>
    <dd>
     <p class="para">
      Un sélecteur pour le type de noms à énumérer. Peut être une des constantes suivantes :
      <ul class="simplelist">
       <li><strong><code><a href="class.intlchar.php#intlchar.constants.unicode-char-name">IntlChar::UNICODE_CHAR_NAME</a></code></strong> (défaut)</li>
       <li><strong><code><a href="class.intlchar.php#intlchar.constants.unicode-10-char-name">IntlChar::UNICODE_10_CHAR_NAME</a></code></strong></li>
       <li><strong><code><a href="class.intlchar.php#intlchar.constants.extended-char-name">IntlChar::EXTENDED_CHAR_NAME</a></code></strong></li>
       <li><strong><code><a href="class.intlchar.php#intlchar.constants.char-name-alias">IntlChar::CHAR_NAME_ALIAS</a></code></strong></li>
       <li><strong><code><a href="class.intlchar.php#intlchar.constants.char-name-choice-count">IntlChar::CHAR_NAME_CHOICE_COUNT</a></code></strong></li>
      </ul>
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-intlchar.enumcharnames-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Cette fonction retourne <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> en cas de succès ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si une erreur survient.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-intlchar.enumcharnames-changelog">
  <h3 class="title">Historique</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Version</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.3.0</td>
       <td>
        Cette méthode retourne maintenant <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> en cas d&#039;échec ; précédemment elle retournait <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-intlchar.enumcharnames-examples">
  <h3 class="title">Exemples</h3>
  <div class="example" id="example-1">
   <p><strong>Exemple #1 Enumère une plage d&#039;exemples de points de code</strong></p>
   <div class="example-contents">
    <div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />IntlChar</span><span style="color: #007700">::</span><span style="color: #0000BB">enumCharNames</span><span style="color: #007700">(</span><span style="color: #0000BB">0x2600</span><span style="color: #007700">, </span><span style="color: #0000BB">0x2610</span><span style="color: #007700">, function(</span><span style="color: #0000BB">$codepoint</span><span style="color: #007700">, </span><span style="color: #0000BB">$nameChoice</span><span style="color: #007700">, </span><span style="color: #0000BB">$name</span><span style="color: #007700">) {<br />    </span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"U+%04x %s\n"</span><span style="color: #007700">, </span><span style="color: #0000BB">$codepoint</span><span style="color: #007700">, </span><span style="color: #0000BB">$name</span><span style="color: #007700">);<br />});<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>L&#039;exemple ci-dessus va afficher :</p></div>
   <div class="example-contents screen">
    <div class="examplescode"><pre class="examplescode">U+2600 BLACK SUN WITH RAYS
U+2601 CLOUD
U+2602 UMBRELLA
U+2603 SNOWMAN
U+2604 COMET
U+2605 BLACK STAR
U+2606 WHITE STAR
U+2607 LIGHTNING
U+2608 THUNDERSTORM
U+2609 SUN
U+260a ASCENDING NODE
U+260b DESCENDING NODE
U+260c CONJUNCTION
U+260d OPPOSITION
U+260e BLACK TELEPHONE
U+260f WHITE TELEPHONE</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-intlchar.enumcharnames-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="intlchar.charname.php" class="function" rel="rdfs-seeAlso">IntlChar::charName()</a> - Renvoie le nom d'un caract&egrave;re Unicode</span></li>
    <li><span class="function"><a href="intlchar.charfromname.php" class="function" rel="rdfs-seeAlso">IntlChar::charFromName()</a> - Trouve un caract&egrave;re Unicode par son nom et renvoie sa valeur de point de code</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>