1
0
mirror of https://github.com/php/doc-ja.git synced 2026-03-31 11:32:18 +02:00
Files
archived-doc-ja/reference/mbstring/functions/mb-decode-numericentity.xml
TAKAGI Masahiro 97d4b3b8bf sync with en.
git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@193050 c90b9560-bf6c-de11-be94-00142212c4b1
2005-08-11 12:42:03 +00:00

78 lines
2.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.7 $ -->
<!-- splitted from ./ja/functions/mbstring.xml, last change in rev 1.1 -->
<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready -->
<!-- CREDITS: takagi -->
<refentry id="function.mb-decode-numericentity">
<refnamediv>
<refname>mb_decode_numericentity</refname>
<refpurpose>
HTML 数値エンティティを文字にデコードする
</refpurpose>
</refnamediv>
<refsect1>
<title>説明</title>
<methodsynopsis>
<type>string</type><methodname>mb_decode_numericentity</methodname>
<methodparam><type>string</type><parameter>str</parameter></methodparam>
<methodparam><type>array</type><parameter>convmap</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam>
</methodsynopsis>
<para>
文字列 <parameter>str</parameter>
において指定した文字領域にある数値エンティティを変換し、
変換後の文字列を返します。
</para>
<para>
<parameter>convmap</parameter>
は変換するコード領域を指定する配列です。
</para>
<para>
<parameter>encoding</parameter>
は文字エンコーディングで、
省略された場合は内部文字エンコーディングが使用されます。
</para>
<para>
<example>
<title><parameter>convmap</parameter> の例</title>
<programlisting role="php">
<![CDATA[
$convmap = array (
int start_code1, int end_code1, int offset1, int mask1,
int start_code2, int end_code2, int offset2, int mask2,
........
int start_codeN, int end_codeN, int offsetN, int maskN );
// start_codeN および end_codeN に Unicode値を指定
// 値にoffsetNを追加、マスクmaskNを指定してビット毎の'AND'をとり、
// 数値エンティティに値を変換します。
]]>
</programlisting>
</example>
</para>
<para>
<function>mb_encode_numericentity</function> も参照ください。
</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
-->