mirror of
https://github.com/php/doc-ja.git
synced 2026-03-28 00:52:12 +01:00
Although class names are case-insensitive, we better document the proper case. git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@351805 c90b9560-bf6c-de11-be94-00142212c4b1
154 lines
4.8 KiB
XML
154 lines
4.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 3db49ee0a331a657dd97b539a749f53d3965b593 Maintainer: hirokawa Status: ready -->
|
|
<refentry xml:id="function.xml-parser-set-option" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>xml_parser_set_option</refname>
|
|
<refpurpose>XML パーサのオプションを設定する</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>xml_parser_set_option</methodname>
|
|
<methodparam><type>XMLParser</type><parameter>parser</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>option</parameter></methodparam>
|
|
<methodparam><type class="union"><type>string</type><type>int</type></type><parameter>value</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
XML パーサのオプションを設定します。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>parser</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
オプションを設定する XML パーサへのリファレンス。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>option</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
設定するオプション。以下を参照してください。
|
|
</para>
|
|
<para>
|
|
次のオプションが利用可能です。
|
|
<table>
|
|
<title>XML パーサオプション</title>
|
|
<tgroup cols="3">
|
|
<thead>
|
|
<row>
|
|
<entry>オプション定数</entry>
|
|
<entry>データ型</entry>
|
|
<entry>説明</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry><constant>XML_OPTION_CASE_FOLDING</constant></entry>
|
|
<entry>integer</entry>
|
|
<entry>
|
|
XMLパーサの<link linkend="xml.case-folding">大文字変換
|
|
</link> を有効にするかどうかを制御する。デフォルトで有効。
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>XML_OPTION_SKIP_TAGSTART</constant></entry>
|
|
<entry>integer</entry>
|
|
<entry>
|
|
タグ名の最初の何文字を読み飛ばすかどうかを設定する。
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>XML_OPTION_SKIP_WHITE</constant></entry>
|
|
<entry>integer</entry>
|
|
<entry>
|
|
空白文字からなる値を読み飛ばすかどうかを設定する。
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry><constant>XML_OPTION_TARGET_ENCODING</constant></entry>
|
|
<entry>string</entry>
|
|
<entry>
|
|
XML パーサについてどの <link linkend="xml.encoding">ターゲット
|
|
エンコーディング</link> を使用するかを設定する。デフォルトでは、
|
|
<function>xml_parser_create</function> により使用されたソース
|
|
エンコーディングと同じエンコーディングが設定されます。
|
|
サポートされるターゲットエンコーディングは、
|
|
<literal>ISO-8859-1</literal>, <literal>US-ASCII</literal>,
|
|
<literal>UTF-8</literal> です。
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>value</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
そのオプションの新しい設定値。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
この関数は、<parameter>parser</parameter> が有効なパーサを参照しないか、
|
|
オプションが設定出来なかった場合に &false; を返します。
|
|
それ以外の場合、そのオプションが設定され、&true; が返されます。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog">
|
|
&reftitle.changelog;
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
&xml.changelog.parser-param;
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</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
|
|
-->
|