Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 8971

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Perform case folding on a code point</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="intlchar.enumchartypes.html">IntlChar::enumCharTypes</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intlchar.fordigit.html">IntlChar::forDigit</a></div>
 <div class="up"><a href="class.intlchar.html">IntlChar</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="intlchar.foldcase" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlChar::foldCase</h1>
  <p class="verinfo">(PHP 7)</p><p class="refpurpose"><span class="refname">IntlChar::foldCase</span> &mdash; <span class="dc-title">Perform case folding on a code point</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intlchar.foldcase-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><strong>IntlChar::foldCase</strong></span>
    ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$codepoint</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$options</code><span class="initializer"> = <strong><code>IntlChar::FOLD_CASE_DEFAULT</code></strong></span></span>
  ] )</div>

  <p class="para rdfs-comment">
   The given character is mapped to its case folding equivalent; if the character has no case folding equivalent,
   the character itself is returned.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-intlchar.foldcase-parameters">
  <h3 class="title">Parameters</h3>
  <dl>

   
    <dt>
<code class="parameter">codepoint</code></dt>

    <dd>

     <p class="para">The <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span> codepoint value (e.g. <em>0x2603</em> for <em class="emphasis">U+2603 SNOWMAN</em>), or the character encoded as a UTF-8 <span class="type"><a href="language.types.string.html" class="type string">string</a></span> (e.g. <em>&quot;\u{2603}&quot;</em>)</p>
    </dd>

   
   
    <dt>
<code class="parameter">options</code></dt>

    <dd>

     <p class="para">
      Either <strong><code>IntlChar::FOLD_CASE_DEFAULT</code></strong> (default)
      or <strong><code>IntlChar::FOLD_CASE_EXCLUDE_SPECIAL_I</code></strong>.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-intlchar.foldcase-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns the <em class="emphasis">Simple_Case_Folding</em> of the code point, if any; otherwise the code point itself.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="intlchar.enumchartypes.html">IntlChar::enumCharTypes</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intlchar.fordigit.html">IntlChar::forDigit</a></div>
 <div class="up"><a href="class.intlchar.html">IntlChar</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>