cvs: phpdoc-ja / language-defs.ent language-snippets.ent /reference/ctype reference.xml /reference/ctype/functions ctype-alnum.xml ctype-alpha.xml
ctype-cntrl.xml ctype-digit.xml ctype-graph.xml ctype-lower.xml ctype-print.xml ctype-punct.xml ctype-space.xml ctype-upper.xml ctype-xdigit.xml
| From: | Rui Hirokawa | Date: | Sun, 22 Aug 2004 12:18:20 +0000 |
| Subject: | cvs: phpdoc-ja / language-defs.ent language-snippets.ent /reference/ctype reference.xml /reference/ctype/functions ctype-alnum.xml ctype-alpha.xml ctype-cntrl.xml ctype-digit.xml ctype-graph.xml ctype-lower.xml ctype-print.xml ctype-punct.xml ctype-space.xml ctype-upper.xml ctype-xdigit.xml |
||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-719@lists.php.net to get a copy of this message | ||
hirokawa Sun Aug 22 08:18:20 2004 EDT
Modified files:
/phpdoc-ja language-defs.ent language-snippets.ent
/phpdoc-ja/reference/ctype reference.xml
/phpdoc-ja/reference/ctype/functions ctype-alnum.xml
ctype-alpha.xml
ctype-cntrl.xml
ctype-digit.xml
ctype-graph.xml
ctype-lower.xml
ctype-print.xml
ctype-punct.xml
ctype-space.xml
ctype-upper.xml
ctype-xdigit.xml
Log:
sync with en.
http://cvs.php.net/diff.php/phpdoc-ja/language-defs.ent?r1=1.19&r2=1.20&ty=u Index: phpdoc-ja/language-defs.ent diff -u phpdoc-ja/language-defs.ent:1.19 phpdoc-ja/language-defs.ent:1.20 --- phpdoc-ja/language-defs.ent:1.19 Wed Aug 11 19:20:45 2004 +++ phpdoc-ja/language-defs.ent Sun Aug 22 08:18:20 2004 @@ -1,6 +1,5 @@ -<!-- $Revision: 1.19 $ --> -<!-- EN-Revision: 1.19 Maintainer: hirokawa Status: ready --> - +<!-- $Revision: 1.20 $ --> +<!-- EN-Revision: 1.21 Maintainer: hirokawa Status: ready --> <!-- Part titles used mostly in manual.xml itself --> <!ENTITY PHPManual "PHP ããã¥ã¢ã«"> <!ENTITY Date "æ¥ä»:"> @@ -12,7 +11,6 @@ <!ENTITY Security "ã»ãã¥ãªãã£"> <!ENTITY FunctionReference "颿°ãªãã¡ã¬ã³ã¹"> <!ENTITY Appendixes "ä»é²"> -<!ENTITY Editedby "ç·¨é"> <!ENTITY PEAR "PEAR: the PHP Extension and Application Repository"> <!ENTITY FAQ "FAQ: ãããã質å"> <!ENTITY FAQabbrev "FAQ"> @@ -23,6 +21,8 @@ <!ENTITY ReservedConstants "å®ç¾©æ¸ã¿ã®å®æ°"> <!ENTITY MissingStuff "æªå®ç¾©ã®ãã®"> <!ENTITY AndSeveralOthers "ãã®ä»"> +<!ENTITY Version "ãã¼ã¸ã§ã³"> +<!ENTITY Description "説æ"> <!-- These are using in reference/$extname/reference.xml and other supplemental files to mark section titles --> @@ -39,6 +39,8 @@ <!ENTITY reftitle.description '<title>説æ</title>'> <!ENTITY reftitle.returnvalues '<title>æ»ãå¤</title>'> <!ENTITY reftitle.examples '<title>ä¾</title>'> -<!ENTITY reftitle.seealso '<title>以ä¸ãåç §ä¸ãã: </title>'> +<!ENTITY reftitle.seealso '<title>以ä¸ãåç §ä¸ãã</title>'> +<!ENTITY reftitle.changelog '<title>夿´å±¥æ´</title>'> +<!ENTITY reftitle.parameters '<title>ãã©ã¡ã¼ã¿ãªã¹ã</title>'> http://cvs.php.net/diff.php/phpdoc-ja/language-snippets.ent?r1=1.33&r2=1.34&ty=u Index: phpdoc-ja/language-snippets.ent diff -u phpdoc-ja/language-snippets.ent:1.33 phpdoc-ja/language-snippets.ent:1.34 --- phpdoc-ja/language-snippets.ent:1.33 Wed Aug 11 19:20:45 2004 +++ phpdoc-ja/language-snippets.ent Sun Aug 22 08:18:20 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.33 $ --> +<!-- $Revision: 1.34 $ --> <!-- EN-Revision: 1.118 Maintainer: hirokawa Status: ready --> <!-- Notes --> @@ -419,19 +419,18 @@ <!ENTITY Credit.Authors.and.Editors 'èè ã¨ç·¨éè '> -<!ENTITY Credit.Past.Authors.Text 'ç¾å¨ã¢ã¯ãã£ãã§ã¯ããã¾ãããã -以ä¸ã®è²¢ç®è ã¯æ¬ããã¥ã¢ã«ã«ã¤ãã¦éå»ã«ã³ã³ãã³ããæä¾ãããã¨ã§å¤§ããªè²¢ç®ããã¦ãã¾ã:'> +<!ENTITY Credit.Past.Authors.Text '以ä¸ã®è²¢ç®è ã¯æ¬ããã¥ã¢ã«ã« +ã¤ãã¦ã³ã³ãã³ããæä¾ãããã¨ã§å¤§ããªè²¢ç®ããã¦ãã¾ã:'> <!ENTITY Credit.Past.Editors.Text ' -ç¾å¨ã¢ã¯ãã£ãã§ã¯ããã¾ãããã -以ä¸ã®è²¢ç®è ã¯æ¬ããã¥ã¢ã«ã«ã¤ãã¦éå»ã«å¤ãã®ç·¨é使¥ãè¡ã£ããã¨ã§å¤§ããªè²¢ç®ã +以ä¸ã®è²¢ç®è ã¯æ¬ããã¥ã¢ã«ã«ã¤ãã¦å¤ãã®ç·¨é使¥ãè¡ã£ããã¨ã§å¤§ããªè²¢ç®ã ãã¦ãã¾ã:'> <!ENTITY Credit.Note.Editors.Title 'ã¦ã¼ã¶ã¼æ³¨è¨ã®ç®¡çè '> -<!ENTITY Credit.Note.Editors.Active 'ç¾å¨ã¢ã¯ãã£ããªç®¡çè :'> +<!ENTITY Credit.Note.Editors.Active 'ç¾å¨æãã¢ã¯ãã£ããªç®¡çè :'> <!ENTITY Credit.Note.Editors.Inactive ' -以ä¸ã®äººã ãéå»ã«ã¦ã¼ã¶ã¼æ³¨è¨ã®ç®¡çã«æ³¨åãã¦ããã¾ãã:'> +以ä¸ã®äººã ãã¦ã¼ã¶ã¼æ³¨è¨ã®ç®¡çã«æ³¨åãã¦ããã¾ãã:'> <!ENTITY listendand ', ããã¦'> http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/reference.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/ctype/reference.xml diff -u phpdoc-ja/reference/ctype/reference.xml:1.3 phpdoc-ja/reference/ctype/reference.xml:1.4 --- phpdoc-ja/reference/ctype/reference.xml:1.3 Sun Dec 1 02:26:43 2002 +++ phpdoc-ja/reference/ctype/reference.xml Sun Aug 22 08:18:20 2004 @@ -1,4 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.11 Maintainer: hirokawa Status: ready --> + <reference id="ref.ctype"> <title>æåå(ctype)颿°</title> <titleabbrev>ctype</titleabbrev> @@ -8,8 +11,7 @@ &reftitle.intro; <para> 以ä¸ã®é¢æ°ã¯ãç¾å¨ã®ãã±ã¼ã«(<function>setlocale</function>ãåç §) - ã«åºã¥ãæåã¾ãã¯æååãããæåã¯ã©ã¹ã«å«ã¾ãããã©ããã調㹠- ã¾ãã + ã«åºã¥ãæåã¾ãã¯æååãããæåã¯ã©ã¹ã«å«ã¾ãããã©ããã調ã¹ã¾ãã </para> <para> æ´æ°ã®å¼æ°ãæå®ãã¦ã³ã¼ã«ããå ´åããããã®é¢æ°ã¯ãCã®ååã®é¢æ° @@ -21,8 +23,14 @@ åã«ã®ã¿&true;ãè¿ãã¾ãã </para> <para> - æååã¾ãã¯æ´æ°ä»¥å¤ã®ãã®ãæå®ããå ´åã¯ãç´ã¡ã«&false;ãè¿ãã - ã¾ãã + æååã¾ãã¯æ´æ°ä»¥å¤ã®ãã®ãæå®ããå ´åã¯ãç´ã¡ã« &false; ã + è¿ããã¾ãã + </para> + <para> + ctype颿°ã¯ãæ£è¦è¡¨ç¾ãããã¤ãã«å¥½ã¾ãããããã« str_* ããã³ is_*ã®ãã㪠+ ããã¤ãã®ç価ãªé¢æ°ããã好ã¾ãããã¨ã«æ³¨æãã¦ä¸ããã + ããã¯ãctype颿°ããã¼ãã£ããªCã©ã¤ãã©ãªã使ç¨ãã¦ãããå¦çãèãã + é«éã§ããããã§ãã </para> </section> http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-alnum.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-alnum.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-alnum.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-alnum.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-alnum.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-alnum.xml Sun Aug 22 08:18:20 2004 @@ -1,23 +1,59 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-alnum"> - <refnamediv> - <refname>ctype_alnum</refname> - <refpurpose>è±æ°åãã©ããã確èª</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_alnum</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-alnum"> + <refnamediv> + <refname>ctype_alnum</refname> + <refpurpose>è±æ°åãã©ããã調ã¹ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_alnum</methodname> + <methodparam><type>string</type><parameter>text</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter>ã®å ¨ã¦ã®æåãæåã¾ãã¯æ°åã§ãã + å ´åã« &true; ããã以å¤ã®å ´åã« &false; ãè¿ãã¾ãã + æ¨æºã® <literal>C</literal> ãã±ã¼ã«ã®å ´åãæå㯠<literal>[A-Za-z]</literal> + ã§ããã®é¢æ°ã¯ <literal>preg_match('/^[a-z0-9]*$/i', $text)</literal> 㨠+ ç価ã§ãã + </para> + <para> + <example> + <title>A <function>ctype_alnum</function> ã®ä¾ (ããã©ã«ãã®ãã±ã¼ã«ã使ç¨)</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('AbCd1zyZ9', 'foo!#$bar'); +foreach ($strings as $testcase) { + if (ctype_alnum($testcase)) { + echo "The string $testcase consists of all letters or digits.\n"; + } else { + echo "The string $testcase does not consist of all letters or digits.\n"; + } +} +?> +]]> + </programlisting> <para> - <function>setlocale</function>ãåç §ä¸ããã + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string AbCd1zyZ9 consists of all letters or digits. +The string foo!#$bar does not consists of all letters or digits. +]]> + </screen> + </example> + </para> + <para> + <function>ctype_alpha</function>, <function>ctype_digit</function>, + <function>setlocale</function>ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-alpha.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-alpha.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-alpha.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-alpha.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-alpha.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-alpha.xml Sun Aug 22 08:18:20 2004 @@ -1,22 +1,61 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-alpha"> - <refnamediv> - <refname>ctype_alpha</refname> - <refpurpose>è±åãã©ããã確èª</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_alpha</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-alpha"> + <refnamediv> + <refname>ctype_alpha</refname> + <refpurpose>è±åãã©ããã調ã¹ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_alpha</methodname> + <methodparam><type>string</type><parameter>c</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter>ã®å ¨ã¦ã®æåãã«ã¬ã³ããã±ã¼ã«ã«ãããæåã§ãã + å ´åã« &true; ããã以å¤ã®å ´åã« &false; ãè¿ãã¾ãã + æ¨æºã® <literal>C</literal> ãã±ã¼ã«ã®å ´åãæåã¯ã<literal>[A-Za-z]</literal> + ã§ã<function>ctype_alpha</function> 㯠$text ã䏿åã®ã¿ã®å ´åã® + <literal>(ctype_upper($text) || ctype_lower($text))</literal> ã¨ç価ã§ãã + ããããä»ã®è¨èªã«ã¯å¤§æåã§ãå°æåã§ããªãæåãå«ã¾ãã¦ãã¾ãã + </para> + <para> + <example> + <title><function>ctype_alpha</function>ã®ä¾ (ããã©ã«ãã®ãã±ã¼ã«ã使ç¨)</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('KjgWZC', 'arf12'); +foreach ($strings as $testcase) { + if (ctype_alpha($testcase)) { + echo "æåå $testcase ã¯å ¨ã¦æåãããªãã¾ãã\n"; + } else { + echo "æåå $testcase ã¯å ¨ã¦ãæåããæ§æããã¦ããããã§ã¯ããã¾ããã\n"; + } +} +?> +]]> + </programlisting> <para> + ãã®ä¾ã¯ä»¥ä¸ã®åºåãè¡ãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +æåå KjqWZC ã¯å ¨ã¦æåãããªãã¾ãã +æåå arf12 ã¯å ¨ã¦ãæåããæ§æããã¦ããããã§ã¯ããã¾ããã +]]> + </screen> + </example> + </para> + <para> + <function>ctype_upper</function>, + <function>ctype_lower</function>, + <function>setlocale</function> ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-cntrl.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-cntrl.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-cntrl.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-cntrl.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-cntrl.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-cntrl.xml Sun Aug 22 08:18:20 2004 @@ -1,22 +1,52 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-cntrl"> - <refnamediv> - <refname>ctype_cntrl</refname> - <refpurpose>å¶å¾¡æåãã©ããã確èª</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_cntrl</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-cntrl"> + <refnamediv> + <refname>ctype_cntrl</refname> + <refpurpose>å¶å¾¡æåãã©ããã調ã¹ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_cntrl</methodname> + <methodparam><type>string</type><parameter>text</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter> ã®ä¸ã®å ¨ã¦ã®æåãç¹æ®ãªå¶å¾¡æ©è½ãæããå ´åã« &true;ã + ãã以å¤ã®å ´åã« &false; ãè¿ãã¾ããå¶å¾¡æåã¯ãä¾ãã°ãã©ã¤ã³ãã£ã¼ããã¿ããªã©ã§ãã + </para> + <para> + <example> + <title><function>ctype_cntrl</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('string1' => "\n\r\t", 'string2' => 'arf12'); +foreach ($strings as $name => $testcase) { + if (ctype_cntrl($testcase)) { + echo "The string '$name' consists of all control characters.\n"; + } else { + echo "The string '$name' does not consist of all control characters.\n"; + } +} +?> +]]> + </programlisting> <para> + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string 'string1' consists of all control characters. +The string 'string2' does not consists of all control characters. +]]> + </screen> + </example> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-digit.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-digit.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-digit.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-digit.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-digit.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-digit.xml Sun Aug 22 08:18:20 2004 @@ -1,22 +1,57 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-digit"> - <refnamediv> - <refname>ctype_digit</refname> - <refpurpose>æ°åãã©ããã確èª</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_digit</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-digit"> + <refnamediv> + <refname>ctype_digit</refname> + <refpurpose>æ°åãã©ããã調ã¹ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_digit</methodname> + <methodparam><type>string</type><parameter>c</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter> ã®å ¨ã¦ã®æåã &true; æ°åã®å ´åã« &true;ã + ãã以å¤ã®å ´åã« &false; ãè¿ãã¾ãã + </para> + <para> + <example> + <title><function>ctype_digit</function>ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('1820.20', '10002', 'wsl!12'); +foreach ($strings as $testcase) { + if (ctype_digit($testcase)) { + echo "The string $testcase consists of all digits.\n"; + } else { + echo "The string $testcase does not consist of all digits.\n"; + } +} +?> +]]> + </programlisting> <para> + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string 1820.20 does not consists of all digits. +The string 10002 consists of all digits. +The string wsl!12 does not consists of all digits. +]]> + </screen> + </example> + </para> + <para> + <function>ctype_alnum</function>ã<function>ctype_xdigit</function> + ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-graph.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-graph.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-graph.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-graph.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-graph.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-graph.xml Sun Aug 22 08:18:20 2004 @@ -1,22 +1,57 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-graph"> - <refnamediv> - <refname>ctype_graph</refname> - <refpurpose>空ç½ãé¤ãåºåå¯è½ãªæåãã©ããã確èª</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_graph</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-graph"> + <refnamediv> + <refname>ctype_graph</refname> + <refpurpose>空ç½ä»¥å¤ã®å°åå¯è½ãªæåãã©ããã調ã¹ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_graph</methodname> + <methodparam><type>string</type><parameter>c</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter>ã®å ¨ã¦ã®æåãå°åå¯è½ã§ãå®éã«ç®ã«è¦ããåºåã + è¡ãå ´å(空ç½ã§ãªãå ´å)ã« &true;ã ãã以å¤ã®å ´åã« &false; ãè¿ãã¾ãã + </para> + <para> + <example> + <title><function>ctype_graph</function>ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('string1' => "asdf\n\r\t", 'string2' => 'arf12', 'string3' => 'LKA#@%.54'); +foreach ($strings as $name => $testcase) { + if (ctype_graph($testcase)) { + echo "The string '$name' consists of all (visibly) printable characters.\n"; + } else { + echo "The string '$name' does not consist of all (visibly) printable characters.\n"; + } +} +?> +]]> + </programlisting> <para> + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string 'string1' does not consist of all (visibly) printable characters. +The string 'string2' consists of all (visibly) printable characters. +The string 'string3' consists of all (visibly) printable characters. +]]> + </screen> + </example> + </para> + <para> + <function>ctype_alnum</function>, <function>ctype_print</function>, + <function>ctype_punct</function>ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-lower.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-lower.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-lower.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-lower.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-lower.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-lower.xml Sun Aug 22 08:18:20 2004 @@ -1,22 +1,57 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-lower"> - <refnamediv> - <refname>ctype_lower</refname> - <refpurpose>å°æåãã©ããã確èª</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_lower</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-lower"> + <refnamediv> + <refname>ctype_lower</refname> + <refpurpose>å°æåãã©ããã調ã¹ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_lower</methodname> + <methodparam><type>string</type><parameter>c</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter> ã®ä¸ã®å ¨ã¦ã®æåãã«ã¬ã³ãã®ãã±ã¼ã«ã«ããã + å°æåã®å ´åã« &true;ãè¿ãã¾ãã + </para> + <para> + <example> + <title><function>ctype_lower</function> ã®ä¾ (ããã©ã«ãã®ãã±ã¼ã«ã使ç¨)</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('aac123', 'qiutoas', 'QASsdks'); +foreach ($strings as $testcase) { + if (ctype_lower($testcase)) { + echo "The string $testcase consists of all lowercase letters.\n"; + } else { + echo "The string $testcase does not consist of all lowercase letters.\n"; + } +} +?> +]]> + </programlisting> <para> + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string aac123 does not consist of all lowercase letters. +The string qiutoas consists of all lowercase letters. +The string QASsdks does not consist of all lowercase letters. +]]> + </screen> + </example> + </para> + <para> + <function>ctype_alpha</function>, <function>ctype_upper</function>, + <function>setlocale</function>ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-print.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-print.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-print.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-print.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-print.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-print.xml Sun Aug 22 08:18:20 2004 @@ -1,22 +1,59 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-print"> - <refnamediv> - <refname>ctype_print</refname> - <refpurpose>åºåå¯è½ãªæåãã©ããã確èª</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_print</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-print"> + <refnamediv> + <refname>ctype_print</refname> + <refpurpose>å°åå¯è½ãªæåãã©ããã調ã¹ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_print</methodname> + <methodparam><type>string</type><parameter>c</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter>ã®å ¨ã¦ã®æåã(空ç½ãå«ãã¦)å®éã«åºåãè¡ãå ´åã« + &true;ãè¿ãã¾ãã + <parameter>text</parameter> ã«å¶å¾¡æåã¾ãã¯å ¨ãåºåãå¶å¾¡ãè¡ããªãæåã + å«ã¾ãã¦ããå ´åã« &false; ãè¿ãã¾ãã + </para> + <para> + <example> + <title><function>ctype_print</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('string1' => "asdf\n\r\t", 'string2' => 'arf12', 'string3' => 'LKA#@%.54'); +foreach ($strings as $name => $testcase) { + if (ctype_print($testcase)) { + echo "The string '$name' consists of all printable characters.\n"; + } else { + echo "The string '$name' does not consist of all printable characters.\n"; + } +} +?> +]]> + </programlisting> <para> + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string 'string1' does not consist of all printable characters. +The string 'string2' consists of all printable characters. +The string 'string3' consists of all printable characters. +]]> + </screen> + </example> + </para> + <para> + <function>ctype_cntrl</function>, <function>ctype_graph</function>, + <function>ctype_punct</function>ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-punct.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-punct.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-punct.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-punct.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-punct.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-punct.xml Sun Aug 22 08:18:20 2004 @@ -1,24 +1,60 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-punct"> - <refnamediv> - <refname>ctype_punct</refname> - <refpurpose> - ç©ºç½æå以å¤ã®åºåå¯è½ãªæåã¾ãã¯è±æ°åãã©ããã調ã¹ã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_punct</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; - <para> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-punct"> + <refnamediv> + <refname>ctype_punct</refname> + <refpurpose> + 空ç½ãè±æ°å以å¤ã®åºåå¯è½ãªæåãã©ããã調ã¹ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_punct</methodname> + <methodparam><type>string</type><parameter>text</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter>ã®å ¨ã¦ã®æåãåºåå¯è½ã§ããããã¤ã + æåã§ããæ°åã§ãã空ç½ã§ããªãå ´åã« &true;ããã以å¤ã®å ´åã« + &false; ãè¿ãã¾ãã + </para> + <para> + <example> + <title><function>ctype_punct</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('ABasdk!@!$#', '!@ # $', '*&$()'); +foreach ($strings as $testcase) { + if (ctype_punct($testcase)) { + echo "The string $testcase consists of all punctuation.\n"; + } else { + echo "The string $testcase does not consist of all punctuation.\n"; + } +} +?> +]]> + </programlisting> + <para> + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string ABasdk!@!$# does not consist of all punctuation. +The string !@ # $ does not consist of all punctuation. +The string *&$() consists of all punctuation. +]]> + </screen> + </example> + </para> + <para> + <function>ctype_cntrl</function>, <function>ctype_graph</function> + ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-space.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-space.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-space.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-space.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-space.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-space.xml Sun Aug 22 08:18:20 2004 @@ -1,22 +1,59 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-space"> - <refnamediv> - <refname>ctype_space</refname> - <refpurpose>ç©ºç½æåãã©ãã調ã¹ã</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_space</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-space"> + <refnamediv> + <refname>ctype_space</refname> + <refpurpose>ç©ºç½æåãã©ãã調ã¹ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_space</methodname> + <methodparam><type>string</type><parameter>c</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter> ã®å ¨ã¦ã®æåããªãããã®ç©ºç½æåãããªãå ´åã« + &true;ããã以å¤ã®å ´åã« &false; ãè¿ãã¾ãã + ç©ºç½æåã«ã¯ã空ç½ä»¥å¤ã«ã¿ããåç´ã¿ããæ¹è¡ã復帰ããã©ã¼ã ãã£ã¼ãæåã + å«ã¾ãã¾ãã + </para> + <para> + <example> + <title><function>ctype_space</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('string1' => "\n\r\t", 'string2' => "\narf12", 'string3' => '\n\r\t'); +foreach ($strings as $name => $testcase) { + if (ctype_space($testcase)) { + echo "The string '$name' consists of all whitespace characters.\n"; + } else { + echo "The string '$name' does not consist of all whitespace characters.\n"; + } +} +?> +]]> + </programlisting> <para> + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string 'string1' consists of all whitespace characters. +The string 'string2' does not consist of all whitespace characters. +The string 'string3' does not consist of all whitespace characters. +]]> + </screen> + </example> + </para> + <para> + <function>ctype_cntrl</function>, <function>ctype_graph</function>, + <function>ctype_punct</function> ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-upper.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-upper.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-upper.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-upper.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-upper.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-upper.xml Sun Aug 22 08:18:20 2004 @@ -1,22 +1,57 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-upper"> - <refnamediv> - <refname>ctype_upper</refname> - <refpurpose>大æåãã©ãã調ã¹ã</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_upper</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-upper"> + <refnamediv> + <refname>ctype_upper</refname> + <refpurpose>大æåãã©ãã調ã¹ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_upper</methodname> + <methodparam><type>string</type><parameter>text</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter> ã®ä¸ã®å ¨ã¦ã®æåãã«ã¬ã³ãã®ãã±ã¼ã«ã«ããã + 大æåã®å ´åã« &true;ãè¿ãã¾ãã + </para> <para> + <example> + <title><function>ctype_upper</function> ã®ä¾ (ããã©ã«ãã®ãã±ã¼ã«ã使ç¨)</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('AKLWC139', 'LMNSDO', 'akwSKWsm'); +foreach ($strings as $testcase) { + if (ctype_upper($testcase)) { + echo "The string $testcase consists of all uppercase letters.\n"; + } else { + echo "The string $testcase does not consist of all uppercase letters.\n"; + } +} +?> +]]> + </programlisting> + <para> + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string AKLWC139 does not consist of all uppercase letters. +The string LMNSDO consists of all uppercase letters. +The string akwSKWsm does not consist of all uppercase letters. +]]> + </screen> + </example> + </para> + <para> + <function>ctype_alpha</function>, <function>ctype_lower</function>, + <function>setlocale</function>ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-xdigit.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-xdigit.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-xdigit.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-xdigit.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-xdigit.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-xdigit.xml Sun Aug 22 08:18:20 2004 @@ -1,24 +1,59 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-xdigit"> - <refnamediv> - <refname>ctype_xdigit</refname> - <refpurpose> - 16鲿°ã表ãæåãã©ããã調ã¹ã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_xdigit</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-xdigit"> + <refnamediv> + <refname>ctype_xdigit</refname> + <refpurpose> + 16鲿°ã表ãæåãã©ããã調ã¹ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_xdigit</methodname> + <methodparam><type>string</type><parameter>c</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter>ã®å ¨ã¦ã®æåã16鲿°ã表ãæåãã¤ã¾ããæ°åã¾ã㯠+ <literal>[A-Fa-f]</literal> ã§ããå ´åã« &true;ã + ãã以å¤ã®å ´åã« &false; ãè¿ãã¾ãã + </para> + <para> + <example> + <title><function>ctype_xdigit</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('AB10BC99', 'AR1012', 'ab12bc99'); +foreach ($strings as $testcase) { + if (ctype_xdigit($testcase)) { + echo "The string $testcase consists of all hexadecimal digits.\n"; + } else { + echo "The string $testcase does not consist of all hexadecimal digits.\n"; + } +} +?> +]]> + </programlisting> <para> + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string AB10BC99 consists of all hexadecimal digits. +The string AR1012 does not consist of all hexadecimal digits. +The string ab12bc99 consists of all hexadecimal digits. +]]> + </screen> + </example> + </para> + <para> + <function>ctype_digit</function> ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:
http://cvs.php.net/diff.php/phpdoc-ja/language-defs.ent?r1=1.19&r2=1.20&ty=u Index: phpdoc-ja/language-defs.ent diff -u phpdoc-ja/language-defs.ent:1.19 phpdoc-ja/language-defs.ent:1.20 --- phpdoc-ja/language-defs.ent:1.19 Wed Aug 11 19:20:45 2004 +++ phpdoc-ja/language-defs.ent Sun Aug 22 08:18:20 2004 @@ -1,6 +1,5 @@ -<!-- $Revision: 1.19 $ --> -<!-- EN-Revision: 1.19 Maintainer: hirokawa Status: ready --> - +<!-- $Revision: 1.20 $ --> +<!-- EN-Revision: 1.21 Maintainer: hirokawa Status: ready --> <!-- Part titles used mostly in manual.xml itself --> <!ENTITY PHPManual "PHP ããã¥ã¢ã«"> <!ENTITY Date "æ¥ä»:"> @@ -12,7 +11,6 @@ <!ENTITY Security "ã»ãã¥ãªãã£"> <!ENTITY FunctionReference "颿°ãªãã¡ã¬ã³ã¹"> <!ENTITY Appendixes "ä»é²"> -<!ENTITY Editedby "ç·¨é"> <!ENTITY PEAR "PEAR: the PHP Extension and Application Repository"> <!ENTITY FAQ "FAQ: ãããã質å"> <!ENTITY FAQabbrev "FAQ"> @@ -23,6 +21,8 @@ <!ENTITY ReservedConstants "å®ç¾©æ¸ã¿ã®å®æ°"> <!ENTITY MissingStuff "æªå®ç¾©ã®ãã®"> <!ENTITY AndSeveralOthers "ãã®ä»"> +<!ENTITY Version "ãã¼ã¸ã§ã³"> +<!ENTITY Description "説æ"> <!-- These are using in reference/$extname/reference.xml and other supplemental files to mark section titles --> @@ -39,6 +39,8 @@ <!ENTITY reftitle.description '<title>説æ</title>'> <!ENTITY reftitle.returnvalues '<title>æ»ãå¤</title>'> <!ENTITY reftitle.examples '<title>ä¾</title>'> -<!ENTITY reftitle.seealso '<title>以ä¸ãåç §ä¸ãã: </title>'> +<!ENTITY reftitle.seealso '<title>以ä¸ãåç §ä¸ãã</title>'> +<!ENTITY reftitle.changelog '<title>夿´å±¥æ´</title>'> +<!ENTITY reftitle.parameters '<title>ãã©ã¡ã¼ã¿ãªã¹ã</title>'> http://cvs.php.net/diff.php/phpdoc-ja/language-snippets.ent?r1=1.33&r2=1.34&ty=u Index: phpdoc-ja/language-snippets.ent diff -u phpdoc-ja/language-snippets.ent:1.33 phpdoc-ja/language-snippets.ent:1.34 --- phpdoc-ja/language-snippets.ent:1.33 Wed Aug 11 19:20:45 2004 +++ phpdoc-ja/language-snippets.ent Sun Aug 22 08:18:20 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.33 $ --> +<!-- $Revision: 1.34 $ --> <!-- EN-Revision: 1.118 Maintainer: hirokawa Status: ready --> <!-- Notes --> @@ -419,19 +419,18 @@ <!ENTITY Credit.Authors.and.Editors 'èè ã¨ç·¨éè '> -<!ENTITY Credit.Past.Authors.Text 'ç¾å¨ã¢ã¯ãã£ãã§ã¯ããã¾ãããã -以ä¸ã®è²¢ç®è ã¯æ¬ããã¥ã¢ã«ã«ã¤ãã¦éå»ã«ã³ã³ãã³ããæä¾ãããã¨ã§å¤§ããªè²¢ç®ããã¦ãã¾ã:'> +<!ENTITY Credit.Past.Authors.Text '以ä¸ã®è²¢ç®è ã¯æ¬ããã¥ã¢ã«ã« +ã¤ãã¦ã³ã³ãã³ããæä¾ãããã¨ã§å¤§ããªè²¢ç®ããã¦ãã¾ã:'> <!ENTITY Credit.Past.Editors.Text ' -ç¾å¨ã¢ã¯ãã£ãã§ã¯ããã¾ãããã -以ä¸ã®è²¢ç®è ã¯æ¬ããã¥ã¢ã«ã«ã¤ãã¦éå»ã«å¤ãã®ç·¨é使¥ãè¡ã£ããã¨ã§å¤§ããªè²¢ç®ã +以ä¸ã®è²¢ç®è ã¯æ¬ããã¥ã¢ã«ã«ã¤ãã¦å¤ãã®ç·¨é使¥ãè¡ã£ããã¨ã§å¤§ããªè²¢ç®ã ãã¦ãã¾ã:'> <!ENTITY Credit.Note.Editors.Title 'ã¦ã¼ã¶ã¼æ³¨è¨ã®ç®¡çè '> -<!ENTITY Credit.Note.Editors.Active 'ç¾å¨ã¢ã¯ãã£ããªç®¡çè :'> +<!ENTITY Credit.Note.Editors.Active 'ç¾å¨æãã¢ã¯ãã£ããªç®¡çè :'> <!ENTITY Credit.Note.Editors.Inactive ' -以ä¸ã®äººã ãéå»ã«ã¦ã¼ã¶ã¼æ³¨è¨ã®ç®¡çã«æ³¨åãã¦ããã¾ãã:'> +以ä¸ã®äººã ãã¦ã¼ã¶ã¼æ³¨è¨ã®ç®¡çã«æ³¨åãã¦ããã¾ãã:'> <!ENTITY listendand ', ããã¦'> http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/reference.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/ctype/reference.xml diff -u phpdoc-ja/reference/ctype/reference.xml:1.3 phpdoc-ja/reference/ctype/reference.xml:1.4 --- phpdoc-ja/reference/ctype/reference.xml:1.3 Sun Dec 1 02:26:43 2002 +++ phpdoc-ja/reference/ctype/reference.xml Sun Aug 22 08:18:20 2004 @@ -1,4 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.11 Maintainer: hirokawa Status: ready --> + <reference id="ref.ctype"> <title>æåå(ctype)颿°</title> <titleabbrev>ctype</titleabbrev> @@ -8,8 +11,7 @@ &reftitle.intro; <para> 以ä¸ã®é¢æ°ã¯ãç¾å¨ã®ãã±ã¼ã«(<function>setlocale</function>ãåç §) - ã«åºã¥ãæåã¾ãã¯æååãããæåã¯ã©ã¹ã«å«ã¾ãããã©ããã調㹠- ã¾ãã + ã«åºã¥ãæåã¾ãã¯æååãããæåã¯ã©ã¹ã«å«ã¾ãããã©ããã調ã¹ã¾ãã </para> <para> æ´æ°ã®å¼æ°ãæå®ãã¦ã³ã¼ã«ããå ´åããããã®é¢æ°ã¯ãCã®ååã®é¢æ° @@ -21,8 +23,14 @@ åã«ã®ã¿&true;ãè¿ãã¾ãã </para> <para> - æååã¾ãã¯æ´æ°ä»¥å¤ã®ãã®ãæå®ããå ´åã¯ãç´ã¡ã«&false;ãè¿ãã - ã¾ãã + æååã¾ãã¯æ´æ°ä»¥å¤ã®ãã®ãæå®ããå ´åã¯ãç´ã¡ã« &false; ã + è¿ããã¾ãã + </para> + <para> + ctype颿°ã¯ãæ£è¦è¡¨ç¾ãããã¤ãã«å¥½ã¾ãããããã« str_* ããã³ is_*ã®ãã㪠+ ããã¤ãã®ç価ãªé¢æ°ããã好ã¾ãããã¨ã«æ³¨æãã¦ä¸ããã + ããã¯ãctype颿°ããã¼ãã£ããªCã©ã¤ãã©ãªã使ç¨ãã¦ãããå¦çãèãã + é«éã§ããããã§ãã </para> </section> http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-alnum.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-alnum.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-alnum.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-alnum.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-alnum.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-alnum.xml Sun Aug 22 08:18:20 2004 @@ -1,23 +1,59 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-alnum"> - <refnamediv> - <refname>ctype_alnum</refname> - <refpurpose>è±æ°åãã©ããã確èª</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_alnum</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-alnum"> + <refnamediv> + <refname>ctype_alnum</refname> + <refpurpose>è±æ°åãã©ããã調ã¹ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_alnum</methodname> + <methodparam><type>string</type><parameter>text</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter>ã®å ¨ã¦ã®æåãæåã¾ãã¯æ°åã§ãã + å ´åã« &true; ããã以å¤ã®å ´åã« &false; ãè¿ãã¾ãã + æ¨æºã® <literal>C</literal> ãã±ã¼ã«ã®å ´åãæå㯠<literal>[A-Za-z]</literal> + ã§ããã®é¢æ°ã¯ <literal>preg_match('/^[a-z0-9]*$/i', $text)</literal> 㨠+ ç価ã§ãã + </para> + <para> + <example> + <title>A <function>ctype_alnum</function> ã®ä¾ (ããã©ã«ãã®ãã±ã¼ã«ã使ç¨)</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('AbCd1zyZ9', 'foo!#$bar'); +foreach ($strings as $testcase) { + if (ctype_alnum($testcase)) { + echo "The string $testcase consists of all letters or digits.\n"; + } else { + echo "The string $testcase does not consist of all letters or digits.\n"; + } +} +?> +]]> + </programlisting> <para> - <function>setlocale</function>ãåç §ä¸ããã + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string AbCd1zyZ9 consists of all letters or digits. +The string foo!#$bar does not consists of all letters or digits. +]]> + </screen> + </example> + </para> + <para> + <function>ctype_alpha</function>, <function>ctype_digit</function>, + <function>setlocale</function>ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-alpha.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-alpha.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-alpha.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-alpha.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-alpha.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-alpha.xml Sun Aug 22 08:18:20 2004 @@ -1,22 +1,61 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-alpha"> - <refnamediv> - <refname>ctype_alpha</refname> - <refpurpose>è±åãã©ããã確èª</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_alpha</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-alpha"> + <refnamediv> + <refname>ctype_alpha</refname> + <refpurpose>è±åãã©ããã調ã¹ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_alpha</methodname> + <methodparam><type>string</type><parameter>c</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter>ã®å ¨ã¦ã®æåãã«ã¬ã³ããã±ã¼ã«ã«ãããæåã§ãã + å ´åã« &true; ããã以å¤ã®å ´åã« &false; ãè¿ãã¾ãã + æ¨æºã® <literal>C</literal> ãã±ã¼ã«ã®å ´åãæåã¯ã<literal>[A-Za-z]</literal> + ã§ã<function>ctype_alpha</function> 㯠$text ã䏿åã®ã¿ã®å ´åã® + <literal>(ctype_upper($text) || ctype_lower($text))</literal> ã¨ç価ã§ãã + ããããä»ã®è¨èªã«ã¯å¤§æåã§ãå°æåã§ããªãæåãå«ã¾ãã¦ãã¾ãã + </para> + <para> + <example> + <title><function>ctype_alpha</function>ã®ä¾ (ããã©ã«ãã®ãã±ã¼ã«ã使ç¨)</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('KjgWZC', 'arf12'); +foreach ($strings as $testcase) { + if (ctype_alpha($testcase)) { + echo "æåå $testcase ã¯å ¨ã¦æåãããªãã¾ãã\n"; + } else { + echo "æåå $testcase ã¯å ¨ã¦ãæåããæ§æããã¦ããããã§ã¯ããã¾ããã\n"; + } +} +?> +]]> + </programlisting> <para> + ãã®ä¾ã¯ä»¥ä¸ã®åºåãè¡ãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +æåå KjqWZC ã¯å ¨ã¦æåãããªãã¾ãã +æåå arf12 ã¯å ¨ã¦ãæåããæ§æããã¦ããããã§ã¯ããã¾ããã +]]> + </screen> + </example> + </para> + <para> + <function>ctype_upper</function>, + <function>ctype_lower</function>, + <function>setlocale</function> ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-cntrl.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-cntrl.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-cntrl.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-cntrl.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-cntrl.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-cntrl.xml Sun Aug 22 08:18:20 2004 @@ -1,22 +1,52 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-cntrl"> - <refnamediv> - <refname>ctype_cntrl</refname> - <refpurpose>å¶å¾¡æåãã©ããã確èª</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_cntrl</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-cntrl"> + <refnamediv> + <refname>ctype_cntrl</refname> + <refpurpose>å¶å¾¡æåãã©ããã調ã¹ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_cntrl</methodname> + <methodparam><type>string</type><parameter>text</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter> ã®ä¸ã®å ¨ã¦ã®æåãç¹æ®ãªå¶å¾¡æ©è½ãæããå ´åã« &true;ã + ãã以å¤ã®å ´åã« &false; ãè¿ãã¾ããå¶å¾¡æåã¯ãä¾ãã°ãã©ã¤ã³ãã£ã¼ããã¿ããªã©ã§ãã + </para> + <para> + <example> + <title><function>ctype_cntrl</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('string1' => "\n\r\t", 'string2' => 'arf12'); +foreach ($strings as $name => $testcase) { + if (ctype_cntrl($testcase)) { + echo "The string '$name' consists of all control characters.\n"; + } else { + echo "The string '$name' does not consist of all control characters.\n"; + } +} +?> +]]> + </programlisting> <para> + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string 'string1' consists of all control characters. +The string 'string2' does not consists of all control characters. +]]> + </screen> + </example> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-digit.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-digit.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-digit.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-digit.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-digit.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-digit.xml Sun Aug 22 08:18:20 2004 @@ -1,22 +1,57 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-digit"> - <refnamediv> - <refname>ctype_digit</refname> - <refpurpose>æ°åãã©ããã確èª</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_digit</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-digit"> + <refnamediv> + <refname>ctype_digit</refname> + <refpurpose>æ°åãã©ããã調ã¹ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_digit</methodname> + <methodparam><type>string</type><parameter>c</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter> ã®å ¨ã¦ã®æåã &true; æ°åã®å ´åã« &true;ã + ãã以å¤ã®å ´åã« &false; ãè¿ãã¾ãã + </para> + <para> + <example> + <title><function>ctype_digit</function>ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('1820.20', '10002', 'wsl!12'); +foreach ($strings as $testcase) { + if (ctype_digit($testcase)) { + echo "The string $testcase consists of all digits.\n"; + } else { + echo "The string $testcase does not consist of all digits.\n"; + } +} +?> +]]> + </programlisting> <para> + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string 1820.20 does not consists of all digits. +The string 10002 consists of all digits. +The string wsl!12 does not consists of all digits. +]]> + </screen> + </example> + </para> + <para> + <function>ctype_alnum</function>ã<function>ctype_xdigit</function> + ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-graph.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-graph.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-graph.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-graph.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-graph.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-graph.xml Sun Aug 22 08:18:20 2004 @@ -1,22 +1,57 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-graph"> - <refnamediv> - <refname>ctype_graph</refname> - <refpurpose>空ç½ãé¤ãåºåå¯è½ãªæåãã©ããã確èª</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_graph</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-graph"> + <refnamediv> + <refname>ctype_graph</refname> + <refpurpose>空ç½ä»¥å¤ã®å°åå¯è½ãªæåãã©ããã調ã¹ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_graph</methodname> + <methodparam><type>string</type><parameter>c</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter>ã®å ¨ã¦ã®æåãå°åå¯è½ã§ãå®éã«ç®ã«è¦ããåºåã + è¡ãå ´å(空ç½ã§ãªãå ´å)ã« &true;ã ãã以å¤ã®å ´åã« &false; ãè¿ãã¾ãã + </para> + <para> + <example> + <title><function>ctype_graph</function>ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('string1' => "asdf\n\r\t", 'string2' => 'arf12', 'string3' => 'LKA#@%.54'); +foreach ($strings as $name => $testcase) { + if (ctype_graph($testcase)) { + echo "The string '$name' consists of all (visibly) printable characters.\n"; + } else { + echo "The string '$name' does not consist of all (visibly) printable characters.\n"; + } +} +?> +]]> + </programlisting> <para> + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string 'string1' does not consist of all (visibly) printable characters. +The string 'string2' consists of all (visibly) printable characters. +The string 'string3' consists of all (visibly) printable characters. +]]> + </screen> + </example> + </para> + <para> + <function>ctype_alnum</function>, <function>ctype_print</function>, + <function>ctype_punct</function>ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-lower.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-lower.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-lower.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-lower.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-lower.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-lower.xml Sun Aug 22 08:18:20 2004 @@ -1,22 +1,57 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-lower"> - <refnamediv> - <refname>ctype_lower</refname> - <refpurpose>å°æåãã©ããã確èª</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_lower</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-lower"> + <refnamediv> + <refname>ctype_lower</refname> + <refpurpose>å°æåãã©ããã調ã¹ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_lower</methodname> + <methodparam><type>string</type><parameter>c</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter> ã®ä¸ã®å ¨ã¦ã®æåãã«ã¬ã³ãã®ãã±ã¼ã«ã«ããã + å°æåã®å ´åã« &true;ãè¿ãã¾ãã + </para> + <para> + <example> + <title><function>ctype_lower</function> ã®ä¾ (ããã©ã«ãã®ãã±ã¼ã«ã使ç¨)</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('aac123', 'qiutoas', 'QASsdks'); +foreach ($strings as $testcase) { + if (ctype_lower($testcase)) { + echo "The string $testcase consists of all lowercase letters.\n"; + } else { + echo "The string $testcase does not consist of all lowercase letters.\n"; + } +} +?> +]]> + </programlisting> <para> + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string aac123 does not consist of all lowercase letters. +The string qiutoas consists of all lowercase letters. +The string QASsdks does not consist of all lowercase letters. +]]> + </screen> + </example> + </para> + <para> + <function>ctype_alpha</function>, <function>ctype_upper</function>, + <function>setlocale</function>ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-print.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-print.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-print.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-print.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-print.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-print.xml Sun Aug 22 08:18:20 2004 @@ -1,22 +1,59 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-print"> - <refnamediv> - <refname>ctype_print</refname> - <refpurpose>åºåå¯è½ãªæåãã©ããã確èª</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_print</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-print"> + <refnamediv> + <refname>ctype_print</refname> + <refpurpose>å°åå¯è½ãªæåãã©ããã調ã¹ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_print</methodname> + <methodparam><type>string</type><parameter>c</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter>ã®å ¨ã¦ã®æåã(空ç½ãå«ãã¦)å®éã«åºåãè¡ãå ´åã« + &true;ãè¿ãã¾ãã + <parameter>text</parameter> ã«å¶å¾¡æåã¾ãã¯å ¨ãåºåãå¶å¾¡ãè¡ããªãæåã + å«ã¾ãã¦ããå ´åã« &false; ãè¿ãã¾ãã + </para> + <para> + <example> + <title><function>ctype_print</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('string1' => "asdf\n\r\t", 'string2' => 'arf12', 'string3' => 'LKA#@%.54'); +foreach ($strings as $name => $testcase) { + if (ctype_print($testcase)) { + echo "The string '$name' consists of all printable characters.\n"; + } else { + echo "The string '$name' does not consist of all printable characters.\n"; + } +} +?> +]]> + </programlisting> <para> + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string 'string1' does not consist of all printable characters. +The string 'string2' consists of all printable characters. +The string 'string3' consists of all printable characters. +]]> + </screen> + </example> + </para> + <para> + <function>ctype_cntrl</function>, <function>ctype_graph</function>, + <function>ctype_punct</function>ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-punct.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-punct.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-punct.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-punct.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-punct.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-punct.xml Sun Aug 22 08:18:20 2004 @@ -1,24 +1,60 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-punct"> - <refnamediv> - <refname>ctype_punct</refname> - <refpurpose> - ç©ºç½æå以å¤ã®åºåå¯è½ãªæåã¾ãã¯è±æ°åãã©ããã調ã¹ã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_punct</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; - <para> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-punct"> + <refnamediv> + <refname>ctype_punct</refname> + <refpurpose> + 空ç½ãè±æ°å以å¤ã®åºåå¯è½ãªæåãã©ããã調ã¹ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_punct</methodname> + <methodparam><type>string</type><parameter>text</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter>ã®å ¨ã¦ã®æåãåºåå¯è½ã§ããããã¤ã + æåã§ããæ°åã§ãã空ç½ã§ããªãå ´åã« &true;ããã以å¤ã®å ´åã« + &false; ãè¿ãã¾ãã + </para> + <para> + <example> + <title><function>ctype_punct</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('ABasdk!@!$#', '!@ # $', '*&$()'); +foreach ($strings as $testcase) { + if (ctype_punct($testcase)) { + echo "The string $testcase consists of all punctuation.\n"; + } else { + echo "The string $testcase does not consist of all punctuation.\n"; + } +} +?> +]]> + </programlisting> + <para> + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string ABasdk!@!$# does not consist of all punctuation. +The string !@ # $ does not consist of all punctuation. +The string *&$() consists of all punctuation. +]]> + </screen> + </example> + </para> + <para> + <function>ctype_cntrl</function>, <function>ctype_graph</function> + ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-space.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-space.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-space.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-space.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-space.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-space.xml Sun Aug 22 08:18:20 2004 @@ -1,22 +1,59 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-space"> - <refnamediv> - <refname>ctype_space</refname> - <refpurpose>ç©ºç½æåãã©ãã調ã¹ã</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_space</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-space"> + <refnamediv> + <refname>ctype_space</refname> + <refpurpose>ç©ºç½æåãã©ãã調ã¹ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_space</methodname> + <methodparam><type>string</type><parameter>c</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter> ã®å ¨ã¦ã®æåããªãããã®ç©ºç½æåãããªãå ´åã« + &true;ããã以å¤ã®å ´åã« &false; ãè¿ãã¾ãã + ç©ºç½æåã«ã¯ã空ç½ä»¥å¤ã«ã¿ããåç´ã¿ããæ¹è¡ã復帰ããã©ã¼ã ãã£ã¼ãæåã + å«ã¾ãã¾ãã + </para> + <para> + <example> + <title><function>ctype_space</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('string1' => "\n\r\t", 'string2' => "\narf12", 'string3' => '\n\r\t'); +foreach ($strings as $name => $testcase) { + if (ctype_space($testcase)) { + echo "The string '$name' consists of all whitespace characters.\n"; + } else { + echo "The string '$name' does not consist of all whitespace characters.\n"; + } +} +?> +]]> + </programlisting> <para> + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string 'string1' consists of all whitespace characters. +The string 'string2' does not consist of all whitespace characters. +The string 'string3' does not consist of all whitespace characters. +]]> + </screen> + </example> + </para> + <para> + <function>ctype_cntrl</function>, <function>ctype_graph</function>, + <function>ctype_punct</function> ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-upper.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-upper.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-upper.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-upper.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-upper.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-upper.xml Sun Aug 22 08:18:20 2004 @@ -1,22 +1,57 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-upper"> - <refnamediv> - <refname>ctype_upper</refname> - <refpurpose>大æåãã©ãã調ã¹ã</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_upper</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-upper"> + <refnamediv> + <refname>ctype_upper</refname> + <refpurpose>大æåãã©ãã調ã¹ã</refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_upper</methodname> + <methodparam><type>string</type><parameter>text</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter> ã®ä¸ã®å ¨ã¦ã®æåãã«ã¬ã³ãã®ãã±ã¼ã«ã«ããã + 大æåã®å ´åã« &true;ãè¿ãã¾ãã + </para> <para> + <example> + <title><function>ctype_upper</function> ã®ä¾ (ããã©ã«ãã®ãã±ã¼ã«ã使ç¨)</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('AKLWC139', 'LMNSDO', 'akwSKWsm'); +foreach ($strings as $testcase) { + if (ctype_upper($testcase)) { + echo "The string $testcase consists of all uppercase letters.\n"; + } else { + echo "The string $testcase does not consist of all uppercase letters.\n"; + } +} +?> +]]> + </programlisting> + <para> + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string AKLWC139 does not consist of all uppercase letters. +The string LMNSDO consists of all uppercase letters. +The string akwSKWsm does not consist of all uppercase letters. +]]> + </screen> + </example> + </para> + <para> + <function>ctype_alpha</function>, <function>ctype_lower</function>, + <function>setlocale</function>ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/ctype/functions/ctype-xdigit.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/ctype/functions/ctype-xdigit.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-xdigit.xml:1.2 phpdoc-ja/reference/ctype/functions/ctype-xdigit.xml:1.3 --- phpdoc-ja/reference/ctype/functions/ctype-xdigit.xml:1.2 Thu Jul 3 20:06:35 2003 +++ phpdoc-ja/reference/ctype/functions/ctype-xdigit.xml Sun Aug 22 08:18:20 2004 @@ -1,24 +1,59 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/ctype.xml, last change in rev 1.1 --> -<!-- sync: 1.1 --> - <refentry id="function.ctype-xdigit"> - <refnamediv> - <refname>ctype_xdigit</refname> - <refpurpose> - 16鲿°ã表ãæåãã©ããã調ã¹ã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>ctype_xdigit</methodname> - <methodparam><type>string</type><parameter>c</parameter></methodparam> - </methodsynopsis> - &warn.experimental; +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> + +<refentry id="function.ctype-xdigit"> + <refnamediv> + <refname>ctype_xdigit</refname> + <refpurpose> + 16鲿°ã表ãæåãã©ããã調ã¹ã + </refpurpose> + </refnamediv> + <refsect1> + <title>説æ</title> + <methodsynopsis> + <type>bool</type><methodname>ctype_xdigit</methodname> + <methodparam><type>string</type><parameter>c</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>text</parameter>ã®å ¨ã¦ã®æåã16鲿°ã表ãæåãã¤ã¾ããæ°åã¾ã㯠+ <literal>[A-Fa-f]</literal> ã§ããå ´åã« &true;ã + ãã以å¤ã®å ´åã« &false; ãè¿ãã¾ãã + </para> + <para> + <example> + <title><function>ctype_xdigit</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$strings = array('AB10BC99', 'AR1012', 'ab12bc99'); +foreach ($strings as $testcase) { + if (ctype_xdigit($testcase)) { + echo "The string $testcase consists of all hexadecimal digits.\n"; + } else { + echo "The string $testcase does not consist of all hexadecimal digits.\n"; + } +} +?> +]]> + </programlisting> <para> + ãã®ä¾ã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã </para> - </refsect1> - </refentry> + <screen> +<![CDATA[ +The string AB10BC99 consists of all hexadecimal digits. +The string AR1012 does not consist of all hexadecimal digits. +The string ab12bc99 consists of all hexadecimal digits. +]]> + </screen> + </example> + </para> + <para> + <function>ctype_digit</function> ãåç §ãã¦ä¸ããã + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: