hirokawa Sat May 5 22:22:49 2001 EDT Modified files: /phpdoc/en/functions math.xml /phpdoc/ja/functions imap.xml math.xml oci8.xml pcre.xml pgsql.xml Log: fixed a typo and update translations.
Index: phpdoc/en/functions/math.xml diff -u phpdoc/en/functions/math.xml:1.24 phpdoc/en/functions/math.xml:1.25 --- phpdoc/en/functions/math.xml:1.24 Tue May 1 09:20:51 2001 +++ phpdoc/en/functions/math.xml Sat May 5 22:22:48 2001 @@ -491,7 +491,7 @@ <simpara> Returns the next lowest integer value by rounding down <parameter>value</parameter> if neccessary. - The return value of <function>ceil</function> is still of type + The return value of <function>floor</function> is still of type <type>float</type> as the value range of <type>float</type> is usually bigger than that of <type>int</type>. </simpara> Index: phpdoc/ja/functions/imap.xml diff -u phpdoc/ja/functions/imap.xml:1.19 phpdoc/ja/functions/imap.xml:1.20 --- phpdoc/ja/functions/imap.xml:1.19 Fri Apr 27 19:20:55 2001 +++ phpdoc/ja/functions/imap.xml Sat May 5 22:22:49 2001 @@ -1760,7 +1760,7 @@ <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>array <function>imap_header_decode</function></funcdef> + <funcdef>array <function>imap_mime_header_decode</function></funcdef> <paramdef>string <parameter>text</parameter></paramdef> </funcprototype> </funcsynopsis> Index: phpdoc/ja/functions/math.xml diff -u phpdoc/ja/functions/math.xml:1.16 phpdoc/ja/functions/math.xml:1.17 --- phpdoc/ja/functions/math.xml:1.16 Sun Jan 7 17:39:30 2001 +++ phpdoc/ja/functions/math.xml Sat May 5 22:22:49 2001 @@ -138,8 +138,10 @@ </funcprototype> </funcsynopsis> <para> - numberの絶対値を返します。引数numberがfloatの場合はfloat、その他 - の場合はintを返します。 + numberの絶対値を返します。引数numberが<type>float</type>の場合は + 帰り値も<type>float</type>となり、その他の場合は、 + <type>int</type>を返します。(これは、<type>float</type>の範囲は、 + <type>int</type>よりも広いためです。) </para> </refsect1> </refentry> @@ -311,27 +313,16 @@ <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>int <function>ceil</function></funcdef> - <paramdef>float <parameter>number</parameter></paramdef> + <funcdef>float <function>ceil</function></funcdef> + <paramdef>float <parameter>value</parameter></paramdef> </funcprototype> </funcsynopsis> - <para> - <parameter>number</parameter> の次に大きい整数を返します。整数に - <function>ceil</function> を使うことは全くの時間の無駄です。 - <informalexample> - <programlisting role="php"> -$x = ceil(4.25); -// which would make $x=5 - </programlisting> - </informalexample> - </para> - <note> - <para> - PHP/FI 2 での <function>ceil</function> は浮動小数 (float) を返 - しました。<literal>$new = (double)ceil($number);</literal>とする - ことで従来と同じ結果を得ることが出来ます。 - </para> - </note> + <simpara> + <parameter>value</parameter>の次に大きい整数値を返します。 + <function>ceil</function>の返り値は、<type>float</type>型となりま + す。これは、<type>float</type>値の範囲は通常<type>int</type>より + も広いためです。 + </simpara> <simpara> <function>floor</function> と <function>round</function> も参照 下さい。 @@ -456,7 +447,7 @@ <refentry id="function.exp"> <refnamediv> - <refname>Exp</refname> + <refname>exp</refname> <refpurpose>自然対数 e の累乗を計算します</refpurpose> </refnamediv> <refsect1> @@ -478,29 +469,23 @@ <refentry id="function.floor"> <refnamediv> - <refname>Floor</refname> + <refname>floor</refname> <refpurpose>切捨て</refpurpose> </refnamediv> <refsect1> <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>int <function>floor</function></funcdef> - <paramdef>float <parameter>number</parameter></paramdef> + <funcdef>float <function>floor</function></funcdef> + <paramdef>float <parameter>value</parameter></paramdef> </funcprototype> </funcsynopsis> <simpara> - <parameter>number</parameter> から最も近い最小の整数の値を返しま - す。整数値に <function>floor</function> を使うことは全くの時間の - 無駄です。 + +<parameter>value</parameter>から最も近い最小の整数の値を返します。 + <function>floor</function>の返り値は、<type>float</type>型のまま + となります。これは、<type>float</type>の範囲は<type>int</type>よ + りも広いためです。 </simpara> - <note> - <para> - PHP/FI 2 での <function>floor</function>は浮動点整数値を返します。 - <literal>$new = (double)floor($number);</literal> のようにするこ - とで従来と同じ結果を得られます。 - </para> - </note> <simpara> <function>ceil</function> と <function>round</function> も参照下 さい。 Index: phpdoc/ja/functions/oci8.xml diff -u phpdoc/ja/functions/oci8.xml:1.12 phpdoc/ja/functions/oci8.xml:1.13 --- phpdoc/ja/functions/oci8.xml:1.12 Fri Mar 9 07:33:03 2001 +++ phpdoc/ja/functions/oci8.xml Sat May 5 22:22:49 2001 @@ -1558,16 +1558,16 @@ </example> </para> <simpara> - <function>OCINumCols</function>, <function>OCIColumnName</function>, + <function>OCINumCols</function>, <function>OCIColumnName</function>, <function>OCIColumnSize</function> も参照下さい。 </simpara> </refsect1> </refentry> - + <refentry id="function.ociparse"> <refnamediv> <refname>OCIParse</refname> - <refpurpose>クエリーを処理し、文を返す</refpurpose> + +<refpurpose>クエリーをパースし、ステートメントを返す</refpurpose> </refnamediv> <refsect1> <title>説明</title> @@ -1575,18 +1575,18 @@ <funcprototype> <funcdef>int <function>OCIParse</function></funcdef> <paramdef>int <parameter>conn</parameter></paramdef> - <paramdef>strint <parameter>query</parameter></paramdef> + <paramdef>string <parameter>query</parameter></paramdef> </funcprototype> </funcsynopsis> <simpara> <function>OCIParse</function>は、<parameter>conn</parameter>を - 使用して<parameter>query</parameter>を処理します。クエリーが有効 - な場合にステートメントID、無効な場合にfalseを返します。 + +使用して<parameter>query</parameter>をパースします。クエリーが有 + +効な場合にステートメントID、無効な場合にfalseを返します。 <parameter>query</parameter>は、有効なSQL文である必要があります。 </simpara> - </refsect1> - </refentry> - + </refsect1> + </refentry> + <refentry id="function.ocierror"> <refnamediv> <refname>OCIError</refname> Index: phpdoc/ja/functions/pcre.xml diff -u phpdoc/ja/functions/pcre.xml:1.20 phpdoc/ja/functions/pcre.xml:1.21 --- phpdoc/ja/functions/pcre.xml:1.20 Thu Mar 15 04:22:10 2001 +++ phpdoc/ja/functions/pcre.xml Sat May 5 22:22:49 2001 @@ -714,7 +714,7 @@ 場合でも)単一の行からなるとして処理します。 "行頭"メタ文字 (^) は文字列の最初にしかマッチしません。 一方、"行の終端"メタ文字 ($) は文字列の終わりまたは - (<emphasis>E</emphasis> 修飾子が設定されていない場合、) + (<emphasis>D</emphasis> 修飾子が設定されていない場合、) 終端を表す改行記号の前のみにしかマッチしません。 この動作は Perl と同じです。 </simpara> Index: phpdoc/ja/functions/pgsql.xml diff -u phpdoc/ja/functions/pgsql.xml:1.22 phpdoc/ja/functions/pgsql.xml:1.23 --- phpdoc/ja/functions/pgsql.xml:1.22 Sat May 5 21:54:00 2001 +++ phpdoc/ja/functions/pgsql.xml Sat May 5 22:22:49 2001 @@ -36,12 +36,13 @@ </thead> <tbody> <row> - <entry>postmaster &</entry> + <entry>postmaster &</entry> <entry>pg_connect("dbname=MyDbName");</entry> <entry>OK</entry> </row> <row> - <entry>postmaster -i &</entry> + <entry>postmaster -i &</entry> +<!-- <entry>pg_connect("", "", "", "", "dbname");</entry> --> <entry>pg_connect("dbname=MyDbName");</entry> <entry>OK</entry> </row> @@ -174,11 +175,32 @@ <refentry id="function.pg-connect"> <refnamediv> <refname>pg_connect</refname> - <refpurpose>コネクションを開く</refpurpose> + <refpurpose>PostgreSQLコネクションを開く</refpurpose> </refnamediv> <refsect1> <title>説明</title> <funcsynopsis> + <funcprototype> + <funcdef>int <function>pg_connect</function></funcdef> + <paramdef>string <parameter>host</parameter></paramdef> + <paramdef>string <parameter>port</parameter></paramdef> + <paramdef>string <parameter>dbname</parameter></paramdef> + </funcprototype> + <funcprototype> + <funcdef>int <function>pg_connect</function></funcdef> + <paramdef>string <parameter>host</parameter></paramdef> + <paramdef>string <parameter>port</parameter></paramdef> + <paramdef>string <parameter>options</parameter></paramdef> + <paramdef>string <parameter>dbname</parameter></paramdef> + </funcprototype> + <funcprototype> + <funcdef>int <function>pg_connect</function></funcdef> + <paramdef>string <parameter>host</parameter></paramdef> + <paramdef>string <parameter>port</parameter></paramdef> + <paramdef>string <parameter>options</parameter></paramdef> + <paramdef>string <parameter>tty</parameter></paramdef> + <paramdef>string <parameter>dbname</parameter></paramdef> + </funcprototype> <funcprototype> <funcdef>int <function>pg_connect</function></funcdef> <paramdef>string <parameter>conn_string</parameter></paramdef>