[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/reference/chdb/_chdb/construct.xml_chdb/get.xml_functions/
From: Yoshinari_Takaoka <mumumu () php ! net>
Date: 2012-12-30 20:41:49
Message-ID: svn-mumumu-1356900109-328926-458518317 () svn ! php ! net
[Download RAW message or body]
mumumu Sun, 30 Dec 2012 20:41:49 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=328926
Log:
- reverted all commits on 328924,328923, because I overwrite not ja-translation but \
original english file.
Changed paths:
U phpdoc/en/trunk/reference/chdb/chdb/construct.xml
U phpdoc/en/trunk/reference/chdb/chdb/get.xml
U phpdoc/en/trunk/reference/chdb/functions/chdb-create.xml
["svn-diffs-328926.txt" (text/x-diff)]
Modified: phpdoc/en/trunk/reference/chdb/chdb/construct.xml
===================================================================
--- phpdoc/en/trunk/reference/chdb/chdb/construct.xml 2012-12-30 20:34:51 UTC (rev \
328925)
+++ phpdoc/en/trunk/reference/chdb/chdb/construct.xml 2012-12-30 20:41:49 UTC (rev \
328926) @@ -1,11 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 321901 Maintainer: mumumu Status: ready -->
<refentry xml:id="chdb.construct" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv>
<refname>chdb::__construct</refname>
- <refpurpose><classname>chdb</classname> \
のインスタンスを生成します。</refpurpose> + <refpurpose>Creates a \
<classname>chdb</classname> instance</refpurpose> </refnamediv>
<refsect1 role="description">
@@ -15,10 +14,15 @@
<methodparam><type>string</type><parameter>pathname</parameter></methodparam>
</methodsynopsis>
<para>
- メモリにマップすることで読み込む chdb のファイル。
+ Loads a chdb file, by mapping it into memory.
<note>
<para>
- 指定されたファイルに対して中身が正しいかがチェックされます。これはありがちな間違い(たとえば、chdb \
でないファイルを読み込ん り、どういうわけか今動いている \
chdb と互換性がなかったりする \
合)を起こす可能性を避けるためのものです。悪意があるユーザーが細工した \
chdb ファイルを読み込むと危険な 合があるため、chdb \
ファイルは PHP の共有ライブラリに対して用いられるセキュリティ設定と同程度にしか信 \
してはいけませんし、そのように扱うべきです。 + While some \
validity checks are performed on the specified file, they are + mostly there to \
avoid the possibility of common mistakes (for example, + loading a file which is \
not a chdb database, or that is somehow + incompatible with the current system). \
A maliciously crafted chdb file can + thus be dangerous if loaded, so chdb files \
should be trusted and treated + with the same security protections used for PHP \
shared libraries. </para>
</note>
</para>
@@ -31,7 +35,7 @@
<term><parameter>pathname</parameter></term>
<listitem>
<para>
- 読み込むファイル名
+ The name of the file to load.
</para>
</listitem>
</varlistentry>
@@ -41,11 +45,15 @@
<refsect1 role="errors">
&reftitle.errors;
<para>
- chdb ファイルの読み込みに失敗した \
合は例外がスローされます。 + Throws an exception in case the chdb \
file hasn't been successfully loaded. </para>
<note>
<para>
- 正しい chdb ファイルであっても、異なったエンディアンを採 \
用するアーキテクチャ上で作成したり、異なるバージョンの \
chdb で作成したものは読み込みに失敗する \
合があります。また、chdb \
ファイルが巨大すぎてメモリにマップできない \
合(ほとんどの 合は、32bit \
アーキテクチャと巨大なファイルの組み合わせです)も同様です。これらの \
合は、例外をスローして読み込みが失敗するでしょう。それ以外の \
合でも、不正な操作を行った 合は例外がスローされます。 + \
A valid chdb file might fail to load in case it was created on an + architecture \
with a different endianness, with a different version of chdb, + or if the file is \
too big to be mapped into memory (mostly in case of huge + files and 32-bit \
architectures). In these cases the load will fail by + throwing an exception, but \
otherwise not performing any illegal operation. </para>
</note>
</refsect1>
Modified: phpdoc/en/trunk/reference/chdb/chdb/get.xml
===================================================================
--- phpdoc/en/trunk/reference/chdb/chdb/get.xml 2012-12-30 20:34:51 UTC (rev 328925)
+++ phpdoc/en/trunk/reference/chdb/chdb/get.xml 2012-12-30 20:41:49 UTC (rev 328926)
@@ -1,11 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 317663 Maintainer: mumumu Status: ready -->
<refentry xml:id="chdb.get" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv>
<refname>chdb::get</refname>
- <refpurpose>キーに対応した値を取得する</refpurpose>
+ <refpurpose>Gets the value associated with a key</refpurpose>
</refnamediv>
<refsect1 role="description">
@@ -15,7 +14,7 @@
<methodparam><type>string</type><parameter>key</parameter></methodparam>
</methodsynopsis>
<para>
- chdb データベースから、キーに対応した値を取得します。
+ Gets the value associated with a key from a chdb database.
</para>
</refsect1>
@@ -26,7 +25,7 @@
<term><parameter>key</parameter></term>
<listitem>
<para>
- 値を取得するためのキー
+ The key for which to get the value.
</para>
</listitem>
</varlistentry>
@@ -36,14 +35,15 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- 与えられた <parameter>key</parameter> \
に対応した値を含む文字列を返します。対応する値が見つからなかった \
合は &null; を返します。 + Returns a string containing the value \
associated with the given + <parameter>key</parameter>, or &null; if not found.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>
- <title><function>chdb::get</function> の例</title>
+ <title><function>chdb::get</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
Modified: phpdoc/en/trunk/reference/chdb/functions/chdb-create.xml
===================================================================
--- phpdoc/en/trunk/reference/chdb/functions/chdb-create.xml 2012-12-30 20:34:51 UTC \
(rev 328925)
+++ phpdoc/en/trunk/reference/chdb/functions/chdb-create.xml 2012-12-30 20:41:49 UTC \
(rev 328926) @@ -4,7 +4,7 @@
<refentry xml:id="function.chdb-create" xmlns="http://docbook.org/ns/docbook" \
xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv>
<refname>chdb_create</refname>
- <refpurpose>chdb ファイルを作成する</refpurpose>
+ <refpurpose>Creates a chdb file</refpurpose>
</refnamediv>
<refsect1 role="description">
@@ -15,11 +15,15 @@
<methodparam><type>array</type><parameter>data</parameter></methodparam>
</methodsynopsis>
<para>
- <function>chdb_create</function> \
関数は、特定のキーと値のペアを含む chdb \
ファイルを作成します。 + <function>chdb_create</function> creates a chdb \
file containing the + specified key-value pairs.
</para>
<note>
<para>
- エンディアンが異なる環境で作られた chdb \
ファイルは移植性がありません。それを除けば、異なるアーキ \
クチャ上であっても移植性があります。また、バージョンが異なる \
chdb 間の互換性は保証されません。 + chdb files are not portable \
across little-endian and big-endian + environments. Except for that, they are \
portable across different + architectures. Also compatibility across different \
versions of chdb is not + guaranteed.
</para>
</note>
</refsect1>
@@ -31,10 +35,10 @@
<term><parameter>pathname</parameter></term>
<listitem>
<para>
- 作成する chdb のファイルパス名
+ The name of the file to create.
</para>
<para>
- 指定されたパスと同じファイルが既にある \
合は上書きされます。 + If a file with the same name already exists, \
it is overwritten. </para>
</listitem>
</varlistentry>
@@ -42,10 +46,12 @@
<term><parameter>data</parameter></term>
<listitem>
<para>
- chdb ファイルに 納するキーと値のペアを含ん 配列
+ An array containing the key-value pairs to store in the chdb file.
</para>
<para>
- キーと値はファイルに書き出される前に文字列に変換されます。これは \
chdb が文字列型しかサポートしていないからです。キーにも値にも、バイナリ文字列を使えることに注意してく \
さい。 + Keys and values are converted to strings before being written to the \
file, + as chdb only support the string type. Note that binary strings are
+ supported as well, both as keys and values.
</para>
</listitem>
</varlistentry>
@@ -62,14 +68,14 @@
<refsect1 role="errors">
&reftitle.errors;
<para>
- chdb ファイルの作成に失敗した 合は例外がスローされます
+ Throws an exception in case the chdb file hasn't been successfully created.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>
- <title><function>chdb_create</function> の例</title>
+ <title><function>chdb_create</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
@@ -85,7 +91,9 @@
]]>
</programlisting>
<para>
- 上の例は <literal>data.chdb</literal> という名前の chdb \
ファイルを生成します。このファイルには <varname>$data</varname> \
に定義されたキーと値のペアが含まれています。 + The above \
example will generate a chdb file named + <literal>data.chdb</literal> and \
containing the key-value pairs defined in + <varname>$data</varname>.
</para>
</example>
</refsect1>
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic