File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: 51779f7c42f39934403805a42b83cef7126a5fc1 Maintainer: takagi Status: ready -->
3+ <!-- EN-Revision: 53208f9bd0a035a4e1409ba700106540474c9ef1 Maintainer: takagi Status: ready -->
44<!-- CREDITS: hirokawa -->
5-
6- <book xml : id =" book.readline" xmlns =" http://docbook.org/ns/docbook" xmlns : xlink =" http://www.w3.org/1999/xlink" >
5+ <book xmlns =" http://docbook.org/ns/docbook" xmlns : xlink =" http://www.w3.org/1999/xlink" xml : id =" book.readline" >
76 <?phpdoc extension-membership =" bundledexternal" ?>
87 <title >GNU Readline</title >
98 <titleabbrev >Readline</titleabbrev >
10-
9+
1110 <!-- {{{ preface -->
1211 <preface xml : id =" intro.readline" >
1312 &reftitle.intro;
14- <para >
13+ <simpara >
1514 readline 関数群は、GNU Readline ライブラリへの
1615 インターフェイスを実装したものです。これらの関数は、コマンドラインの
1716 編集機能を提供します。一例をあげると、Bash において文字を挿入したり
2120 使用されることはほとんどないでしょう。しかし、
2221 <link linkend =" features.commandline" >コマンドライン</link >
2322 から PHP を使用するスクリプトを書く際には有用です。
24- </para >
25- <para >
23+ </simpara >
24+ <simpara >
2625 PHP 7.1.0 以降、この拡張モジュールは Windows でサポートされます。
27- </para >
26+ </simpara >
2827 <caution >
29- <para >
28+ <simpara >
3029 readline 拡張モジュールはスレッドセーフではありません!
3130 (Apache の mod_winnt のような) 本物のスレッドセーフな
3231 SAPI と使わないことを強くお勧めします。
33- </para >
32+ </simpara >
3433 </caution >
3534 </preface >
3635 <!-- }}} -->
37-
36+
3837 &reference.readline.setup;
3938 &reference.readline.constants;
4039 &reference.readline.reference;
4140
4241</book >
43-
4442<!-- Keep this comment at the end of the file
4543Local variables:
4644mode: sgml
@@ -61,4 +59,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
6159vim: et tw=78 syn=sgml
6260vi: ts=1 sw=1
6361-->
64-
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: 51779f7c42f39934403805a42b83cef7126a5fc1 Maintainer: hirokawa Status: ready -->
4- <section xml : id = " readline.installation " xmlns =" http://docbook.org/ns/docbook" >
3+ <!-- EN-Revision: 53208f9bd0a035a4e1409ba700106540474c9ef1 Maintainer: hirokawa Status: ready -->
4+ <section xmlns =" http://docbook.org/ns/docbook" xml : id = " readline.installation " >
55 &reftitle.install;
6- <para >
6+ <simpara >
77 この関数を使用するには、readline サポートを有効にして CGI 版または CLI 版の
88 PHP をコンパイルする必要があります。PHP の configure に
99 <option role =" configure" >--with-readline[=DIR]</option > を指定する必要があります。
1010 readline の代替となる libedit を使う場合は、PHP の configure に
1111 <option role =" configure" >--with-libedit[=DIR]</option > を指定する必要があります。
12- </para >
13- <para >
12+ </simpara >
13+ <simpara >
1414 Windowsでは、この拡張モジュールは PHP 7.1.0 からデフォルトで利用可能です。
15- </para >
15+ </simpara >
1616</section >
17-
1817<!-- Keep this comment at the end of the file
1918Local variables:
2019mode: sgml
@@ -35,4 +34,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
3534vim: et tw=78 syn=sgml
3635vi: ts=1 sw=1
3736-->
38-
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: 3c4eb41f4747d9f6e8ae17574177d92a2d1d5810 Maintainer: hirokawa Status: ready -->
3+ <!-- EN-Revision: 53208f9bd0a035a4e1409ba700106540474c9ef1 Maintainer: hirokawa Status: ready -->
44<!-- CREDITS: takagi -->
55<refentry xmlns =" http://docbook.org/ns/docbook" xml : id =" function.readline-add-history" >
66 <refnamediv >
1414 <type >true</type ><methodname >readline_add_history</methodname >
1515 <methodparam ><type >string</type ><parameter >prompt</parameter ></methodparam >
1616 </methodsynopsis >
17- <para >
17+ <simpara >
1818 この関数は、コマンドラインヒストリに 1 行追加します。
19- </para >
19+ </simpara >
2020 </refsect1 >
2121
2222 <refsect1 role =" parameters" >
2525 <varlistentry >
2626 <term ><parameter >prompt</parameter ></term >
2727 <listitem >
28- <para >
28+ <simpara >
2929 ヒストリに追加する行。
30- </para >
30+ </simpara >
3131 </listitem >
3232 </varlistentry >
3333 </variablelist >
3434 </refsect1 >
3535
3636 <refsect1 role =" returnvalues" >
3737 &reftitle.returnvalues;
38- <para >
38+ <simpara >
3939 &return.true.always;
40- </para >
40+ </simpara >
4141 </refsect1 >
4242</refentry >
4343<!-- Keep this comment at the end of the file
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: 3c4eb41f4747d9f6e8ae17574177d92a2d1d5810 Maintainer: takagi Status: ready -->
3+ <!-- EN-Revision: 53208f9bd0a035a4e1409ba700106540474c9ef1 Maintainer: takagi Status: ready -->
44<refentry xmlns =" http://docbook.org/ns/docbook" xml : id =" function.readline-callback-handler-install" >
55 <refnamediv >
66 <refname >readline_callback_handler_install</refname >
1717 <methodparam ><type >string</type ><parameter >prompt</parameter ></methodparam >
1818 <methodparam ><type >callable</type ><parameter >callback</parameter ></methodparam >
1919 </methodsynopsis >
20- <para >
20+ <simpara >
2121 readline コールバックインターフェイスを設定し、プロンプト
2222 <parameter >prompt</parameter > を表示して入力を受け取ります。
2323 コールバック関数 <parameter >callback</parameter > はひとつのパラメータを
2424 とり、そこにはユーザーの入力内容が格納されます。一度登録したコールバック
2525 インターフェイスを削除せずもういちどこの関数をコールした場合、もとの
2626 インターフェイスは自動的に上書きされます。
27- </para >
28- <para >
27+ </simpara >
28+ <simpara >
2929 コールバック機能は <function >stream_select</function > と組み合わせると
3030 有用です。これは <function >readline</function > とは異なり、
3131 IO とユーザーの入力を交互に取り扱います。
32- </para >
32+ </simpara >
3333 </refsect1 >
3434
3535 <refsect1 role =" parameters" >
3838 <varlistentry >
3939 <term ><parameter >prompt</parameter ></term >
4040 <listitem >
41- <para >
41+ <simpara >
4242 確認メッセージ。
43- </para >
43+ </simpara >
4444 </listitem >
4545 </varlistentry >
4646 <varlistentry >
4747 <term ><parameter >callback</parameter ></term >
4848 <listitem >
49- <para >
49+ <simpara >
5050 <parameter >callback</parameter > 関数が受け取るパラメータはひとつで、
5151 ユーザーから返された入力です。
52- </para >
52+ </simpara >
5353 </listitem >
5454 </varlistentry >
5555 </variablelist >
5656 </refsect1 >
5757
5858 <refsect1 role =" returnvalues" >
5959 &reftitle.returnvalues;
60- <para >
60+ <simpara >
6161 &return.true.always;
62- </para >
62+ </simpara >
6363 </refsect1 >
6464
6565 <refsect1 role =" examples" >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: 3c4eb41f4747d9f6e8ae17574177d92a2d1d5810 Maintainer: takagi Status: ready -->
3+ <!-- EN-Revision: 53208f9bd0a035a4e1409ba700106540474c9ef1 Maintainer: takagi Status: ready -->
44<refentry xmlns =" http://docbook.org/ns/docbook" xml : id =" function.readline-callback-handler-remove" >
55 <refnamediv >
66 <refname >readline_callback_handler_remove</refname >
1313 <type >bool</type ><methodname >readline_callback_handler_remove</methodname >
1414 <void />
1515 </methodsynopsis >
16- <para >
16+ <simpara >
1717 インストールされたハンドラを削除し、端末の設定をもとに戻します。
18- </para >
18+ </simpara >
1919 </refsect1 >
2020
2121 <refsect1 role =" parameters" >
2525
2626 <refsect1 role =" returnvalues" >
2727 &reftitle.returnvalues;
28- <para >
28+ <simpara >
2929 インストールされたコールバックが削除できた場合に &true; 、
3030 削除するハンドラが見つからなかった場合に &false; を返します。
31- </para >
31+ </simpara >
3232 </refsect1 >
3333
3434 <refsect1 role =" examples" >
3535 &reftitle.examples;
36- <para >
36+ <simpara >
3737 readline コールバックインターフェイスの使用方法についての例は
3838 <function >readline_callback_handler_install</function > を参照ください。
39- </para >
39+ </simpara >
4040 </refsect1 >
4141
4242 <refsect1 role =" seealso" >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: 3c4eb41f4747d9f6e8ae17574177d92a2d1d5810 Maintainer: takagi Status: ready -->
3+ <!-- EN-Revision: 53208f9bd0a035a4e1409ba700106540474c9ef1 Maintainer: takagi Status: ready -->
44<refentry xmlns =" http://docbook.org/ns/docbook" xml : id =" function.readline-callback-read-char" >
55 <refnamediv >
66 <refname >readline_callback_read_char</refname >
1313 <type >void</type ><methodname >readline_callback_read_char</methodname >
1414 <void />
1515 </methodsynopsis >
16- <para >
16+ <simpara >
1717 ユーザーが入力した文字を読み込みます。改行を受け取ると、この関数は
1818 <function >readline_callback_handler_install</function > で
1919 インストールされた readline コールバックインターフェイスに対して
2020 入力待ちを通知します。
21- </para >
21+ </simpara >
2222 </refsect1 >
2323
2424 <refsect1 role =" parameters" >
2828
2929 <refsect1 role =" returnvalues" >
3030 &reftitle.returnvalues;
31- <para >
31+ <simpara >
3232 &return.void;
33- </para >
33+ </simpara >
3434 </refsect1 >
3535
3636 <refsect1 role =" examples" >
3737 &reftitle.examples;
38- <para >
38+ <simpara >
3939 readline コールバックインターフェイスの使用方法についての例は
4040 <function >readline_callback_handler_install</function > を参照ください。
41- </para >
41+ </simpara >
4242 </refsect1 >
4343
4444 <refsect1 role =" seealso" >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: 2ab6e3ff1677d26786a443fa370719bfb4eba9cb Maintainer: hirokawa Status: ready -->
3+ <!-- EN-Revision: 53208f9bd0a035a4e1409ba700106540474c9ef1 Maintainer: hirokawa Status: ready -->
44<!-- CREDITS: takagi -->
5- <refentry xml : id = " function.readline-clear-history " xmlns =" http://docbook.org/ns/docbook" >
5+ <refentry xmlns =" http://docbook.org/ns/docbook" xml : id = " function.readline-clear-history " >
66 <refnamediv >
77 <refname >readline_clear_history</refname >
88 <refpurpose >ヒストリをクリアする</refpurpose >
99 </refnamediv >
10-
10+
1111 <refsect1 role =" description" >
1212 &reftitle.description;
1313 <methodsynopsis >
1414 <type >true</type ><methodname >readline_clear_history</methodname >
1515 <void />
1616 </methodsynopsis >
17- <para >
17+ <simpara >
1818 この関数はコマンドラインヒストリ全体をクリアします。
19- </para >
19+ </simpara >
2020 </refsect1 >
2121
2222 <refsect1 role =" parameters" >
2626
2727 <refsect1 role =" returnvalues" >
2828 &reftitle.returnvalues;
29- <para >
29+ <simpara >
3030 &return.true.always;
31- </para >
31+ </simpara >
3232 </refsect1 >
3333</refentry >
3434<!-- Keep this comment at the end of the file
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: 3c4eb41f4747d9f6e8ae17574177d92a2d1d5810 Maintainer: takagi Status: ready -->
3+ <!-- EN-Revision: 53208f9bd0a035a4e1409ba700106540474c9ef1 Maintainer: takagi Status: ready -->
44<!-- CREDITS: hirokawa -->
55<refentry xmlns =" http://docbook.org/ns/docbook" xml : id =" function.readline-completion-function" >
66 <refnamediv >
1414 <type >bool</type ><methodname >readline_completion_function</methodname >
1515 <methodparam ><type >callable</type ><parameter >callback</parameter ></methodparam >
1616 </methodsynopsis >
17- <para >
17+ <simpara >
1818 この関数は補完用の関数を登録します。
1919 これは、Bash を使用している際に、タブキーを
2020 押して得られるのと同様の機能です。
21- </para >
21+ </simpara >
2222 </refsect1 >
2323
2424 <refsect1 role =" parameters" >
2727 <varlistentry >
2828 <term ><parameter >callback</parameter ></term >
2929 <listitem >
30- <para >
30+ <simpara >
3131 コマンドラインの一部を入力とし、
3232 マッチする可能性がある文字列の配列を返す
3333 既存の関数の名前を指定する必要があります。
34- </para >
34+ </simpara >
3535 </listitem >
3636 </varlistentry >
3737 </variablelist >
3838 </refsect1 >
3939
4040 <refsect1 role =" returnvalues" >
4141 &reftitle.returnvalues;
42- <para >
42+ <simpara >
4343 &return.success;
44- </para >
44+ </simpara >
4545 </refsect1 >
4646</refentry >
4747<!-- Keep this comment at the end of the file
You can’t perform that action at this time.
0 commit comments