cvs: phpdoc-ja /reference/strings/functions substr-count.xml /reference/xml reference.xml /reference/zlib ini.xml
| From: | Hideyuki Shimooka | Date: | Sun, 24 Jul 2005 04:30:23 +0000 |
| Subject: | cvs: phpdoc-ja /reference/strings/functions substr-count.xml /reference/xml reference.xml /reference/zlib ini.xml | ||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-1061@lists.php.net to get a copy of this message | ||
shimooka Sun Jul 24 00:30:23 2005 EDT
Modified files:
/phpdoc-ja/reference/strings/functions substr-count.xml
/phpdoc-ja/reference/xml reference.xml
/phpdoc-ja/reference/zlib ini.xml
Log:
translation updated
http://cvs.php.net/diff.php/phpdoc-ja/reference/strings/functions/substr-count.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/strings/functions/substr-count.xml diff -u phpdoc-ja/reference/strings/functions/substr-count.xml:1.4 phpdoc-ja/reference/strings/functions/substr-count.xml:1.5 --- phpdoc-ja/reference/strings/functions/substr-count.xml:1.4 Tue May 31 03:36:37 2005 +++ phpdoc-ja/reference/strings/functions/substr-count.xml Sun Jul 24 00:30:21 2005 @@ -1,46 +1,155 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/strings.xml, last change in rev 1.10 --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/strings.xml, last change in rev 1.27 --> -<!-- CREDITS: elf --> - <refentry id="function.substr-count"> - <refnamediv> - <refname>substr_count</refname> - <refpurpose>坿ååã®åºç¾åæ°ãæ°ãã</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>int</type><methodname>substr_count</methodname> - <methodparam><type>string</type><parameter>haystrack</parameter></methodparam> - <methodparam><type>string</type><parameter>needle</parameter></methodparam> - </methodsynopsis> - <para> - <function>substr_count</function> ã¯ãæåå - <parameter>haystack</parameter> ã®ä¸ã§ã®å¯æåå - <parameter>needle</parameter> ã®åºç¾åæ°ãè¿ãã¾ãã - <parameter>needle</parameter> - ã¯è±å¤§å°æåãåºå¥ãããã¨ã«æ³¨æãã¦ãã ããã - </para> - <para> - <example> - <title><function>substr_count</function> ã®ä¾</title> - <programlisting role="php"> +<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: elf, shimooka --> +<refentry id="function.substr-count"> + <refnamediv> + <refname>substr_count</refname> + <refpurpose>坿ååã®åºç¾åæ°ãæ°ãã</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>substr_count</methodname> + <methodparam><type>string</type><parameter>haystack</parameter></methodparam> + <methodparam><type>string</type><parameter>needle</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>offset</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam> + </methodsynopsis> + <para> + <function>substr_count</function> ã¯ãæåå + <parameter>haystack</parameter> ã®ä¸ã§ã®å¯æåå + <parameter>needle</parameter> ã®åºç¾åæ°ãè¿ãã¾ãã + <parameter>needle</parameter> + ã¯è±å¤§å°æåãåºå¥ãããã¨ã«æ³¨æãã¦ãã ããã + </para> + <note> + <para> + ãã®é¢æ°ã¯éãªãåã坿ååãã«ã¦ã³ããã¾ããã以ä¸ã®ä¾ãè¦ã¦ãã ãã ! + </para> + </note> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>haystack</parameter></term> + <listitem> + <para> + æ¤ç´¢å¯¾è±¡ã®æåå + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>needle</parameter></term> + <listitem> + <para> + æ¤ç´¢ãã坿åå + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>offset</parameter></term> + <listitem> + <para> + éå§ä½ç½®ã®ãªãã»ãã + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>length</parameter></term> + <listitem> + <para> + æå®ãããªãã»ãã以éã«å¯æååã§æ¤ç´¢ããæå¤§é·ã + ãªãã»ããã¨é·ãã®ç·åã <parameter>haystack</parameter> + ã®é·ããããé·ãå ´åãè¦åãçºçãã¾ãã + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + ãã®é¢æ°ã¯ <type>æ´æ°</type> ãè¿ãã¾ãã + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.1.0</entry> + <entry> + <parameter>offset</parameter> 㨠<parameter>length</parameter> + ãã©ã¡ã¼ã¿ã追å ããã¾ããã + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>substr_count</function> ã®ä¾</title> + <programlisting role="php"> <![CDATA[ <?php -echo substr_count("This is a test", "is"); // 2 ãåºåãã +$text = 'This is a test'; +echo strlen($text); // 14 + +echo substr_count($text, 'is'); // 2 + +// æåå㯠's is a test' ã«ãªã£ã¦ããã®ã§, 1 ã表示ããã +echo substr_count($text, 'is', 3); + +// ããã¹ã㯠's i' ã«ãªã£ã¦ããã®ã§, 0 ã表示ããã +echo substr_count($text, 'is', 3, 3); + +// 5+10 > 14 ãªã®ã§ãè¦åãçºçãã +echo substr_count($text, 'is', 5, 10); + + +// éãªã£ã¦ãã坿ååã¯ã«ã¦ã³ããããªãã®ã§ã1 ã表示ããã +$text2 = 'gcdgcdgcd'; +echo substr_count($text2, 'gcdgcd'); ?> ]]> - </programlisting> - </example> - </para> - <simpara> - <function>count_chars</function>ã - <function>strpos</function>ã<function>substr</function>ã - 㨠<function>strstr</function> ãåç §ãã¦ãã ããã - </simpara> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>count_chars</function></member> + <member><function>strpos</function></member> + <member><function>substr</function></member> + <member><function>strstr</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/xml/reference.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/xml/reference.xml diff -u phpdoc-ja/reference/xml/reference.xml:1.5 phpdoc-ja/reference/xml/reference.xml:1.6 --- phpdoc-ja/reference/xml/reference.xml:1.5 Tue Jan 4 10:08:38 2005 +++ phpdoc-ja/reference/xml/reference.xml Sun Jul 24 00:30:22 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.17 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.18 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <reference id="ref.xml"> <title>XML ãã¼ãµé¢æ°</title> <titleabbrev>XML</titleabbrev> @@ -32,7 +33,7 @@ linkend="function.xml-parser-create">XML ãã¼ãµã®ä½æ</link> ãè¡ããç°ãªã£ã XML ã¤ãã³ãã«é¢ãã¦<emphasis>ãã³ãã© </emphasis> ãå®ç¾©ãã¾ããåXMLãã¼ãµã¼ã«ã¯ãè¨å®å¯è½ãªå°æ°ã® - <link linkend="function.xml-parser-set-option">ãã©ã¡ã¼ã¿</link> + <link linkend="function.xml-parser-set-option">ãã©ã¡ã¼ã¿</link> ãããã¾ãã </para> </section> @@ -51,7 +52,7 @@ ranlib $@ ]]> </programlisting> - expat ã®ã½ã¼ã¹ RPM ããã±ã¼ã¸ã + expat ã®ã½ã¼ã¹ RPM ããã±ã¼ã¸ã <ulink url="&url.expat.rpm;">&url.expat.rpm;</ulink> ã«ããã¾ãã </para> </section> @@ -157,7 +158,7 @@ ã¸ã®åç §ãè¦ã¤ããéã«ã³ã¼ã«ããã¾ããããã¯ãä¾ãã°ããã¡ ã¤ã«ã¾ã㯠URL ã¸ã®åç §ã¨ãããã¨ãå¯è½ã§ããä¾ã¨ãã¦ã¯ã <link linkend="example.xml-external-entity">å¤é¨ã¨ã³ãã£ã㣠- ã®ä¾</link> ãåç §ãã ããã + ã®ä¾</link> ãåç §ãã ããã </entry> </row> </tbody> @@ -183,7 +184,7 @@ æ¯ã«ããããåãåãããå¶å¾¡ãããã¨ãå¯è½ã§ãã </para> </section> - + <section id="xml.error-codes"> <title>ã¨ã©ã¼ã³ã¼ã</title> <para> @@ -215,12 +216,12 @@ </simplelist> </para> </section> - + <section id="xml.encoding"> <title>æåã¨ã³ã³ã¼ãã£ã³ã°</title> <para> PHPã®XMLæ¡å¼µæ©è½ã¯ãç°ãªã£ã<glossterm>æåã¨ã³ã³ã¼ãã£ã³ã° - </glossterm>ãéãã¦<ulink url="&url.unicode;">Unicode</ulink> + </glossterm>ãéãã¦<ulink url="&url.unicode;">Unicode</ulink> æåã»ããããµãã¼ããã¾ãã<glossterm>ã½ã¼ã¹ã¨ã³ã³ã¼ãã£ã³ã° </glossterm>ããã³<glossterm>ã¿ã¼ã²ããã¨ã³ã³ã¼ãã£ã³ã° </glossterm>ã¨ãã2種é¡ã®æåã¨ã³ã³ã¼ãã£ã³ã°ãããã¾ãã @@ -228,7 +229,7 @@ <literal>UTF-8</literal>ã§ã¨ã³ã³ã¼ãããã¾ãã </para> <para> - ã½ã¼ã¹ã¨ã³ã³ã¼ãã£ã³ã°ã¯ãXMLããã¥ã¡ã³ãã + ã½ã¼ã¹ã¨ã³ã³ã¼ãã£ã³ã°ã¯ãXMLããã¥ã¡ã³ãã <link linkend="function.xml-parse">æ§æè§£æ</link>ãããéã«è¡ã ãã¾ãã<link linkend="function.xml-parser-create">XML ãã¼ãµã® 使</link>ãè¡ãéã«ãã½ã¼ã¹ã¨ã³ã³ã¼ããæå®ãããã¨ãã§ãã¾ãã @@ -321,12 +322,12 @@ <example> <title>XMLãHTMLã«ããããã</title> <para> - ãã®ä¾ã¯ãXMLããã¥ã¡ã³ãã®ã¿ã°ãç´æ¥HTMLã¿ã°ã«ããããã¾ãã - "map array" ã«ãªãã¨ã¬ã¡ã³ãã¯ç¡è¦ããã¾ãããã¡ããããã®ä¾ã¯ã - ç¹å®ã® XML ããã¥ã¡ã³ãåãæããå ´åã®ã¿åä½ãã¾ãã + ãã®ä¾ã¯ãXMLããã¥ã¡ã³ãã®ã¿ã°ãç´æ¥HTMLã¿ã°ã«ããããã¾ãã + "map array" ã«ãªãã¨ã¬ã¡ã³ãã¯ç¡è¦ããã¾ãããã¡ããããã®ä¾ã¯ã + ç¹å®ã® XML ããã¥ã¡ã³ãåãæããå ´åã®ã¿åä½ãã¾ãã </para> <para> - <programlisting role="php"> + <programlisting role="php"> <![CDATA[ <?php $file = "data.xml"; @@ -336,7 +337,7 @@ "LITERAL" => "TT" ); -function startElement($parser, $name, $attrs) +function startElement($parser, $name, $attrs) { global $map_array; if (isset($map_array[$name])) { @@ -344,7 +345,7 @@ } } -function endElement($parser, $name) +function endElement($parser, $name) { global $map_array; if (isset($map_array[$name])) { @@ -352,7 +353,7 @@ } } -function characterData($parser, $data) +function characterData($parser, $data) { echo $data; } @@ -376,7 +377,7 @@ xml_parser_free($xml_parser); ?> ]]> - </programlisting> + </programlisting> </para> </example> </para> @@ -403,39 +404,39 @@ <?php $file = "xmltest.xml"; -function trustedFile($file) +function trustedFile($file) { // only trust local files owned by ourselves - if (!eregi("^([a-z]+)://", $file) + if (!eregi("^([a-z]+)://", $file) && fileowner($file) == getmyuid()) { return true; } return false; } -function startElement($parser, $name, $attribs) +function startElement($parser, $name, $attribs) { echo "<<font color=\"#0000cc\">$name</font>"; - if (sizeof($attribs)) { - while (list($k, $v) = each($attribs)) { - echo " <font color=\"#009900\">$k</font>=\"<font + if (count($attribs)) { + foreach ($attribs as $k => $v) { + echo " <font color=\"#009900\">$k</font>=\"<font color=\"#990000\">$v</font>\""; } } echo ">"; } -function endElement($parser, $name) +function endElement($parser, $name) { echo "</<font color=\"#0000cc\">$name</font>>"; } -function characterData($parser, $data) +function characterData($parser, $data) { echo "<b>$data</b>"; } -function PIHandler($parser, $target, $data) +function PIHandler($parser, $target, $data) { switch (strtolower($target)) { case "php": @@ -446,20 +447,20 @@ if (trustedFile($parser_file[$parser])) { eval($data); } else { - printf("Untrusted PHP code: <i>%s</i>", + printf("Untrusted PHP code: <i>%s</i>", htmlspecialchars($data)); } break; } } -function defaultHandler($parser, $data) +function defaultHandler($parser, $data) { if (substr($data, 0, 1) == "&" && substr($data, -1, 1) == ";") { - printf('<font color="#aa00aa">%s</font>', + printf('<font color="#aa00aa">%s</font>', htmlspecialchars($data)); } else { - printf('<font size="-1">%s</font>', + printf('<font size="-1">%s</font>', htmlspecialchars($data)); } } @@ -487,7 +488,7 @@ return false; } -function new_xml_parser($file) +function new_xml_parser($file) { global $parser_file; @@ -498,7 +499,7 @@ xml_set_processing_instruction_handler($xml_parser, "PIHandler"); xml_set_default_handler($xml_parser, "defaultHandler"); xml_set_external_entity_ref_handler($xml_parser, "externalEntityRefHandler"); - + if (!($fp = @fopen($file, "r"))) { return false; } http://cvs.php.net/diff.php/phpdoc-ja/reference/zlib/ini.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/zlib/ini.xml diff -u phpdoc-ja/reference/zlib/ini.xml:1.3 phpdoc-ja/reference/zlib/ini.xml:1.4 --- phpdoc-ja/reference/zlib/ini.xml:1.3 Sat Jun 18 11:53:19 2005 +++ phpdoc-ja/reference/zlib/ini.xml Sun Jul 24 00:30:23 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.10 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <section id="zlib.configuration"> &reftitle.runtime; @@ -64,6 +64,7 @@ ããããéä¿¡ããå ´åã«ããã¼ã¸ã¯å§ç¸®ããã¾ãã "Content-Encoding: gzip" (ããã³ "deflate") 㨠"Vary: Accept-Encoding" ããããåºåã«è¿½å ããã¾ãã + å®è¡æãä½ããã®ãã¼ã¿ãéåºããåã«ã®ã¿è¨å®ãããã¨ãå¯è½ã§ãã </para> <para> ãã®ãªãã·ã§ã³ãè«çå¤ "On"/"Off" ã®ãããã«æ´æ°å¤ãã¨ããã¨ãã§ãã
http://cvs.php.net/diff.php/phpdoc-ja/reference/strings/functions/substr-count.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/strings/functions/substr-count.xml diff -u phpdoc-ja/reference/strings/functions/substr-count.xml:1.4 phpdoc-ja/reference/strings/functions/substr-count.xml:1.5 --- phpdoc-ja/reference/strings/functions/substr-count.xml:1.4 Tue May 31 03:36:37 2005 +++ phpdoc-ja/reference/strings/functions/substr-count.xml Sun Jul 24 00:30:21 2005 @@ -1,46 +1,155 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/strings.xml, last change in rev 1.10 --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/strings.xml, last change in rev 1.27 --> -<!-- CREDITS: elf --> - <refentry id="function.substr-count"> - <refnamediv> - <refname>substr_count</refname> - <refpurpose>坿ååã®åºç¾åæ°ãæ°ãã</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>int</type><methodname>substr_count</methodname> - <methodparam><type>string</type><parameter>haystrack</parameter></methodparam> - <methodparam><type>string</type><parameter>needle</parameter></methodparam> - </methodsynopsis> - <para> - <function>substr_count</function> ã¯ãæåå - <parameter>haystack</parameter> ã®ä¸ã§ã®å¯æåå - <parameter>needle</parameter> ã®åºç¾åæ°ãè¿ãã¾ãã - <parameter>needle</parameter> - ã¯è±å¤§å°æåãåºå¥ãããã¨ã«æ³¨æãã¦ãã ããã - </para> - <para> - <example> - <title><function>substr_count</function> ã®ä¾</title> - <programlisting role="php"> +<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: elf, shimooka --> +<refentry id="function.substr-count"> + <refnamediv> + <refname>substr_count</refname> + <refpurpose>坿ååã®åºç¾åæ°ãæ°ãã</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>substr_count</methodname> + <methodparam><type>string</type><parameter>haystack</parameter></methodparam> + <methodparam><type>string</type><parameter>needle</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>offset</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam> + </methodsynopsis> + <para> + <function>substr_count</function> ã¯ãæåå + <parameter>haystack</parameter> ã®ä¸ã§ã®å¯æåå + <parameter>needle</parameter> ã®åºç¾åæ°ãè¿ãã¾ãã + <parameter>needle</parameter> + ã¯è±å¤§å°æåãåºå¥ãããã¨ã«æ³¨æãã¦ãã ããã + </para> + <note> + <para> + ãã®é¢æ°ã¯éãªãåã坿ååãã«ã¦ã³ããã¾ããã以ä¸ã®ä¾ãè¦ã¦ãã ãã ! + </para> + </note> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>haystack</parameter></term> + <listitem> + <para> + æ¤ç´¢å¯¾è±¡ã®æåå + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>needle</parameter></term> + <listitem> + <para> + æ¤ç´¢ãã坿åå + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>offset</parameter></term> + <listitem> + <para> + éå§ä½ç½®ã®ãªãã»ãã + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>length</parameter></term> + <listitem> + <para> + æå®ãããªãã»ãã以éã«å¯æååã§æ¤ç´¢ããæå¤§é·ã + ãªãã»ããã¨é·ãã®ç·åã <parameter>haystack</parameter> + ã®é·ããããé·ãå ´åãè¦åãçºçãã¾ãã + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + ãã®é¢æ°ã¯ <type>æ´æ°</type> ãè¿ãã¾ãã + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.1.0</entry> + <entry> + <parameter>offset</parameter> 㨠<parameter>length</parameter> + ãã©ã¡ã¼ã¿ã追å ããã¾ããã + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>substr_count</function> ã®ä¾</title> + <programlisting role="php"> <![CDATA[ <?php -echo substr_count("This is a test", "is"); // 2 ãåºåãã +$text = 'This is a test'; +echo strlen($text); // 14 + +echo substr_count($text, 'is'); // 2 + +// æåå㯠's is a test' ã«ãªã£ã¦ããã®ã§, 1 ã表示ããã +echo substr_count($text, 'is', 3); + +// ããã¹ã㯠's i' ã«ãªã£ã¦ããã®ã§, 0 ã表示ããã +echo substr_count($text, 'is', 3, 3); + +// 5+10 > 14 ãªã®ã§ãè¦åãçºçãã +echo substr_count($text, 'is', 5, 10); + + +// éãªã£ã¦ãã坿ååã¯ã«ã¦ã³ããããªãã®ã§ã1 ã表示ããã +$text2 = 'gcdgcdgcd'; +echo substr_count($text2, 'gcdgcd'); ?> ]]> - </programlisting> - </example> - </para> - <simpara> - <function>count_chars</function>ã - <function>strpos</function>ã<function>substr</function>ã - 㨠<function>strstr</function> ãåç §ãã¦ãã ããã - </simpara> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>count_chars</function></member> + <member><function>strpos</function></member> + <member><function>substr</function></member> + <member><function>strstr</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/xml/reference.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/xml/reference.xml diff -u phpdoc-ja/reference/xml/reference.xml:1.5 phpdoc-ja/reference/xml/reference.xml:1.6 --- phpdoc-ja/reference/xml/reference.xml:1.5 Tue Jan 4 10:08:38 2005 +++ phpdoc-ja/reference/xml/reference.xml Sun Jul 24 00:30:22 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.17 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.18 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <reference id="ref.xml"> <title>XML ãã¼ãµé¢æ°</title> <titleabbrev>XML</titleabbrev> @@ -32,7 +33,7 @@ linkend="function.xml-parser-create">XML ãã¼ãµã®ä½æ</link> ãè¡ããç°ãªã£ã XML ã¤ãã³ãã«é¢ãã¦<emphasis>ãã³ãã© </emphasis> ãå®ç¾©ãã¾ããåXMLãã¼ãµã¼ã«ã¯ãè¨å®å¯è½ãªå°æ°ã® - <link linkend="function.xml-parser-set-option">ãã©ã¡ã¼ã¿</link> + <link linkend="function.xml-parser-set-option">ãã©ã¡ã¼ã¿</link> ãããã¾ãã </para> </section> @@ -51,7 +52,7 @@ ranlib $@ ]]> </programlisting> - expat ã®ã½ã¼ã¹ RPM ããã±ã¼ã¸ã + expat ã®ã½ã¼ã¹ RPM ããã±ã¼ã¸ã <ulink url="&url.expat.rpm;">&url.expat.rpm;</ulink> ã«ããã¾ãã </para> </section> @@ -157,7 +158,7 @@ ã¸ã®åç §ãè¦ã¤ããéã«ã³ã¼ã«ããã¾ããããã¯ãä¾ãã°ããã¡ ã¤ã«ã¾ã㯠URL ã¸ã®åç §ã¨ãããã¨ãå¯è½ã§ããä¾ã¨ãã¦ã¯ã <link linkend="example.xml-external-entity">å¤é¨ã¨ã³ãã£ã㣠- ã®ä¾</link> ãåç §ãã ããã + ã®ä¾</link> ãåç §ãã ããã </entry> </row> </tbody> @@ -183,7 +184,7 @@ æ¯ã«ããããåãåãããå¶å¾¡ãããã¨ãå¯è½ã§ãã </para> </section> - + <section id="xml.error-codes"> <title>ã¨ã©ã¼ã³ã¼ã</title> <para> @@ -215,12 +216,12 @@ </simplelist> </para> </section> - + <section id="xml.encoding"> <title>æåã¨ã³ã³ã¼ãã£ã³ã°</title> <para> PHPã®XMLæ¡å¼µæ©è½ã¯ãç°ãªã£ã<glossterm>æåã¨ã³ã³ã¼ãã£ã³ã° - </glossterm>ãéãã¦<ulink url="&url.unicode;">Unicode</ulink> + </glossterm>ãéãã¦<ulink url="&url.unicode;">Unicode</ulink> æåã»ããããµãã¼ããã¾ãã<glossterm>ã½ã¼ã¹ã¨ã³ã³ã¼ãã£ã³ã° </glossterm>ããã³<glossterm>ã¿ã¼ã²ããã¨ã³ã³ã¼ãã£ã³ã° </glossterm>ã¨ãã2種é¡ã®æåã¨ã³ã³ã¼ãã£ã³ã°ãããã¾ãã @@ -228,7 +229,7 @@ <literal>UTF-8</literal>ã§ã¨ã³ã³ã¼ãããã¾ãã </para> <para> - ã½ã¼ã¹ã¨ã³ã³ã¼ãã£ã³ã°ã¯ãXMLããã¥ã¡ã³ãã + ã½ã¼ã¹ã¨ã³ã³ã¼ãã£ã³ã°ã¯ãXMLããã¥ã¡ã³ãã <link linkend="function.xml-parse">æ§æè§£æ</link>ãããéã«è¡ã ãã¾ãã<link linkend="function.xml-parser-create">XML ãã¼ãµã® 使</link>ãè¡ãéã«ãã½ã¼ã¹ã¨ã³ã³ã¼ããæå®ãããã¨ãã§ãã¾ãã @@ -321,12 +322,12 @@ <example> <title>XMLãHTMLã«ããããã</title> <para> - ãã®ä¾ã¯ãXMLããã¥ã¡ã³ãã®ã¿ã°ãç´æ¥HTMLã¿ã°ã«ããããã¾ãã - "map array" ã«ãªãã¨ã¬ã¡ã³ãã¯ç¡è¦ããã¾ãããã¡ããããã®ä¾ã¯ã - ç¹å®ã® XML ããã¥ã¡ã³ãåãæããå ´åã®ã¿åä½ãã¾ãã + ãã®ä¾ã¯ãXMLããã¥ã¡ã³ãã®ã¿ã°ãç´æ¥HTMLã¿ã°ã«ããããã¾ãã + "map array" ã«ãªãã¨ã¬ã¡ã³ãã¯ç¡è¦ããã¾ãããã¡ããããã®ä¾ã¯ã + ç¹å®ã® XML ããã¥ã¡ã³ãåãæããå ´åã®ã¿åä½ãã¾ãã </para> <para> - <programlisting role="php"> + <programlisting role="php"> <![CDATA[ <?php $file = "data.xml"; @@ -336,7 +337,7 @@ "LITERAL" => "TT" ); -function startElement($parser, $name, $attrs) +function startElement($parser, $name, $attrs) { global $map_array; if (isset($map_array[$name])) { @@ -344,7 +345,7 @@ } } -function endElement($parser, $name) +function endElement($parser, $name) { global $map_array; if (isset($map_array[$name])) { @@ -352,7 +353,7 @@ } } -function characterData($parser, $data) +function characterData($parser, $data) { echo $data; } @@ -376,7 +377,7 @@ xml_parser_free($xml_parser); ?> ]]> - </programlisting> + </programlisting> </para> </example> </para> @@ -403,39 +404,39 @@ <?php $file = "xmltest.xml"; -function trustedFile($file) +function trustedFile($file) { // only trust local files owned by ourselves - if (!eregi("^([a-z]+)://", $file) + if (!eregi("^([a-z]+)://", $file) && fileowner($file) == getmyuid()) { return true; } return false; } -function startElement($parser, $name, $attribs) +function startElement($parser, $name, $attribs) { echo "<<font color=\"#0000cc\">$name</font>"; - if (sizeof($attribs)) { - while (list($k, $v) = each($attribs)) { - echo " <font color=\"#009900\">$k</font>=\"<font + if (count($attribs)) { + foreach ($attribs as $k => $v) { + echo " <font color=\"#009900\">$k</font>=\"<font color=\"#990000\">$v</font>\""; } } echo ">"; } -function endElement($parser, $name) +function endElement($parser, $name) { echo "</<font color=\"#0000cc\">$name</font>>"; } -function characterData($parser, $data) +function characterData($parser, $data) { echo "<b>$data</b>"; } -function PIHandler($parser, $target, $data) +function PIHandler($parser, $target, $data) { switch (strtolower($target)) { case "php": @@ -446,20 +447,20 @@ if (trustedFile($parser_file[$parser])) { eval($data); } else { - printf("Untrusted PHP code: <i>%s</i>", + printf("Untrusted PHP code: <i>%s</i>", htmlspecialchars($data)); } break; } } -function defaultHandler($parser, $data) +function defaultHandler($parser, $data) { if (substr($data, 0, 1) == "&" && substr($data, -1, 1) == ";") { - printf('<font color="#aa00aa">%s</font>', + printf('<font color="#aa00aa">%s</font>', htmlspecialchars($data)); } else { - printf('<font size="-1">%s</font>', + printf('<font size="-1">%s</font>', htmlspecialchars($data)); } } @@ -487,7 +488,7 @@ return false; } -function new_xml_parser($file) +function new_xml_parser($file) { global $parser_file; @@ -498,7 +499,7 @@ xml_set_processing_instruction_handler($xml_parser, "PIHandler"); xml_set_default_handler($xml_parser, "defaultHandler"); xml_set_external_entity_ref_handler($xml_parser, "externalEntityRefHandler"); - + if (!($fp = @fopen($file, "r"))) { return false; } http://cvs.php.net/diff.php/phpdoc-ja/reference/zlib/ini.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/zlib/ini.xml diff -u phpdoc-ja/reference/zlib/ini.xml:1.3 phpdoc-ja/reference/zlib/ini.xml:1.4 --- phpdoc-ja/reference/zlib/ini.xml:1.3 Sat Jun 18 11:53:19 2005 +++ phpdoc-ja/reference/zlib/ini.xml Sun Jul 24 00:30:23 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.10 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <section id="zlib.configuration"> &reftitle.runtime; @@ -64,6 +64,7 @@ ããããéä¿¡ããå ´åã«ããã¼ã¸ã¯å§ç¸®ããã¾ãã "Content-Encoding: gzip" (ããã³ "deflate") 㨠"Vary: Accept-Encoding" ããããåºåã«è¿½å ããã¾ãã + å®è¡æãä½ããã®ãã¼ã¿ãéåºããåã«ã®ã¿è¨å®ãããã¨ãå¯è½ã§ãã </para> <para> ãã®ãªãã·ã§ã³ãè«çå¤ "On"/"Off" ã®ãããã«æ´æ°å¤ãã¨ããã¨ãã§ãã