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: 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:
« previous php.doc.ja (#719) next »