mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-26 01:42:09 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@352057 c90b9560-bf6c-de11-be94-00142212c4b1
147 lines
4.4 KiB
XML
147 lines
4.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 92f1b8b177eb5730382abf9f27bae868f1bb636f Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
<refentry xml:id="function.mb-substitute-character" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>mb_substitute_character</refname>
|
|
<refpurpose>Définit/Récupère les caractères de substitution</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type class="union"><type>string</type><type>int</type><type>bool</type></type><methodname>mb_substitute_character</methodname>
|
|
<methodparam choice="opt"><type class="union"><type>string</type><type>int</type><type>null</type></type><parameter>substitute_character</parameter><initializer>&null;</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Spécifie le caractère de substitution des caractères invalides, ou
|
|
des encodages invalides. Les caractères invalides peuvent être
|
|
remplacés par <literal>"none"</literal> (pas d'affichage, ils sont supprimés), une
|
|
&string; ou une valeur &integer; (valeur d'un code de caractère Unicode).
|
|
</para>
|
|
<para>
|
|
Ce paramétrage affecte <function>mb_convert_encoding</function>,
|
|
<function>mb_convert_variables</function>,
|
|
<function>mb_output_handler</function>,
|
|
et <function>mb_send_mail</function>.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>substitute_character</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Spécifie une valeur Unicode sous la forme d'un &integer;,
|
|
ou bien une &string; sous ces formes :
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
<literal>"none"</literal> : pas d'affichage
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<literal>"long"</literal> : affiche la valeur hexadécimale (Exemple :
|
|
<literal>U+3000</literal>, <literal>JIS+7E7E</literal>)
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
<literal>"entity"</literal> : affiche l'entité du caractère (Exemple :
|
|
<literal>&#x200;</literal>)
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Si <parameter>substitute_character</parameter> est fourni,
|
|
<function>mb_substitute_character</function> retourne
|
|
&true; en cas de succès, et &false; en
|
|
cas d'erreur. Si <parameter>substitute_character</parameter> est omis,
|
|
<function>mb_substitute_character</function> retourne une valeur Unicode,
|
|
ou bien "<literal>none</literal>"/"<literal>long</literal>".
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog">
|
|
&reftitle.changelog;
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>8.0.0</entry>
|
|
<entry>
|
|
Passer une chaîne vide à <parameter>substitute_character</parameter>
|
|
n'est plus supporté; <literal>"none"</literal> devrait être fourni à la place.
|
|
</entry>
|
|
</row>
|
|
&mbstring.changelog.encoding-nullable;
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Exemple avec <function>mb_substitute_character</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
/* Configure le caractère de substitution avec U+3013 (GETA MARK) */
|
|
mb_substitute_character(0x3013);
|
|
|
|
/* Configure le caractère de substitution avec un format hexadécimal */
|
|
mb_substitute_character("long");
|
|
|
|
/* Affiche la configuration courante */
|
|
echo mb_substitute_character();
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</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:"~/.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
|
|
-->
|