Skip to content

Commit 114a8ee

Browse files
author
Yoshinari Takaoka
committed
Fix #64651: Values for first argument of transliterator_create()
git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@350591 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent cf9bfbc commit 114a8ee

File tree

3 files changed

+45
-10
lines changed

3 files changed

+45
-10
lines changed

reference/intl/transliterator/construct.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 3379a5403818033142bcf389d6ef30a203458a22 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: fa127017c20892558c0b455335c2a25341fa16fc Maintainer: takagi Status: ready -->
4+
<!-- Credits: mumumu -->
45

56
<refentry xml:id="transliterator.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
67
<refnamediv>
@@ -11,7 +12,7 @@
1112
<refsect1 role="description">
1213
&reftitle.description;
1314
<constructorsynopsis>
14-
<methodname>Transliterator::__construct</methodname>
15+
<modifier>private</modifier> <methodname>Transliterator::__construct</methodname>
1516
<void />
1617
</constructorsynopsis>
1718
<para>

reference/intl/transliterator/create.xml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 181d35a2f3e8603108637504bb693d19c6deb1f9 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: fa127017c20892558c0b455335c2a25341fa16fc Maintainer: takagi Status: ready -->
4+
<!-- Credits: mumumu -->
45

56
<refentry xml:id="transliterator.create" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
67
<refnamediv>
@@ -24,7 +25,7 @@
2425
<methodparam choice="opt"><type>int</type><parameter>direction</parameter></methodparam>
2526
</methodsynopsis>
2627
<para>
27-
id を指定して Transliterator をオープンします。
28+
ID を指定して Transliterator をオープンします。
2829
</para>
2930

3031
&warn.undocumented.func;
@@ -38,7 +39,9 @@
3839
<term><parameter>id</parameter></term>
3940
<listitem>
4041
<para>
41-
id。
42+
ID を指定します。
43+
全ての登録済みの transliterator ID は、
44+
<methodname>Transliterator::listIDs</methodname> を使って取得できます。
4245
</para>
4346
</listitem>
4447
</varlistentry>
@@ -47,7 +50,7 @@
4750
<listitem>
4851
<para>
4952
方向。デフォルトは
50-
<link linkend="transliterator.constants.forward">>Transliterator::FORWARD</link> です。
53+
<link linkend="transliterator.constants.forward">Transliterator::FORWARD</link> です。
5154
<link linkend="transliterator.constants.reverse">Transliterator::REVERSE</link> も指定できます。
5255
</para>
5356
</listitem>

reference/intl/transliterator/listids.xml

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: bb07a3195b898ce2b47c2dfc072b5d92c7e499ee Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: fa127017c20892558c0b455335c2a25341fa16fc Maintainer: takagi Status: ready -->
4+
<!-- Credits: mumumu -->
45

56
<refentry xml:id="transliterator.listids" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
67
<refnamediv>
@@ -24,9 +25,6 @@
2425
<para>
2526
登録されている Transliterator ID の配列を返します。
2627
</para>
27-
28-
&warn.undocumented.func;
29-
3028
</refsect1>
3129

3230
<refsect1 role="parameters">
@@ -42,6 +40,39 @@
4240
</para>
4341
</refsect1>
4442

43+
<refsect1 role="examples">
44+
&reftitle.examples;
45+
<example xml:id="transliterator.listids.example.basic">
46+
<title>登録済みの transliterator ID を取得する</title>
47+
<programlisting role="php">
48+
<![CDATA[
49+
<?php
50+
print_r(Transliterator::listIDs());
51+
?>
52+
]]>
53+
</programlisting>
54+
&example.outputs.similar;
55+
<screen>
56+
<![CDATA[
57+
Array
58+
(
59+
[0] => ASCII-Latin
60+
[1] => Accents-Any
61+
[2] => Amharic-Latin/BGN
62+
[3] => Any-Accents
63+
[4] => Any-Publishing
64+
...
65+
[650] => Any-ps_Latn/BGN
66+
[651] => Any-tk/BGN
67+
[652] => Any-ch_FONIPA
68+
[653] => Any-cs_FONIPA
69+
[654] => Any-cy_FONIPA
70+
)
71+
]]>
72+
</screen>
73+
</example>
74+
</refsect1>
75+
4576
<refsect1 role="seealso">
4677
&reftitle.seealso;
4778
<para>

0 commit comments

Comments
 (0)