translation updated for string. 86/14486/2
Rui Hirokawa [Thu, 1 May 2014 14:37:22 +0000 (23:37 +0900)]
Change-Id: Ia8dada194610e2dbe7b6a7d9f1a89e309a864644

34 files changed:
scilab/modules/string/help/ja_JP/ascii.xml
scilab/modules/string/help/ja_JP/blanks.xml
scilab/modules/string/help/ja_JP/char.xml
scilab/modules/string/help/ja_JP/convstr.xml
scilab/modules/string/help/ja_JP/emptystr.xml
scilab/modules/string/help/ja_JP/eval.xml
scilab/modules/string/help/ja_JP/evstr.xml
scilab/modules/string/help/ja_JP/grep.xml
scilab/modules/string/help/ja_JP/isalphanum.xml
scilab/modules/string/help/ja_JP/isascii.xml
scilab/modules/string/help/ja_JP/isdigit.xml
scilab/modules/string/help/ja_JP/isletter.xml
scilab/modules/string/help/ja_JP/isnum.xml
scilab/modules/string/help/ja_JP/justify.xml
scilab/modules/string/help/ja_JP/sci2exp.xml
scilab/modules/string/help/ja_JP/strcat.xml
scilab/modules/string/help/ja_JP/strchr.xml
scilab/modules/string/help/ja_JP/strcmp.xml
scilab/modules/string/help/ja_JP/strcmpi.xml
scilab/modules/string/help/ja_JP/strcspn.xml
scilab/modules/string/help/ja_JP/strindex.xml
scilab/modules/string/help/ja_JP/strings.xml
scilab/modules/string/help/ja_JP/stripblanks.xml
scilab/modules/string/help/ja_JP/strncpy.xml
scilab/modules/string/help/ja_JP/strrchr.xml
scilab/modules/string/help/ja_JP/strrev.xml
scilab/modules/string/help/ja_JP/strsplit.xml
scilab/modules/string/help/ja_JP/strspn.xml
scilab/modules/string/help/ja_JP/strstr.xml
scilab/modules/string/help/ja_JP/strsubst.xml
scilab/modules/string/help/ja_JP/strtod.xml
scilab/modules/string/help/ja_JP/strtok.xml
scilab/modules/string/help/ja_JP/tokenpos.xml
scilab/modules/string/help/ja_JP/tokens.xml

index dba299e..8847357 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="ascii" xml:lang="ja">
+    
     <refnamediv>
+        
         <refname>ascii</refname>
+        
         <refpurpose>文字列をアスキー変換する</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
+        
         <synopsis>a=ascii(txt)
+            
             txt=ascii(a)
+            
         </synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>txt</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>a</term>
+                
                 <listitem>
+                    
                     <para>整数アスキーコードのベクトル</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
+            
             この関数はScilab文字列をアスキーコード
+            
             (最初の127個のコードはASCIIです)またはアスキーコードののベクトルに変換します.
+            
             もしくは,アスキーコードのベクトルをScilab文字列に変換します.
+            
         </para>
+        
         <para>
+            
             <literal>txt</literal> が文字列の行列の場合,
+            
             <literal>ascii(txt)</literal> は
+            
             <literal>ascii(strcat(txt))</literal>と等価です
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 ascii(["hello";"world"])
 ascii("scilab")
 ascii([115 99 105 108 97 98])
  ]]></programlisting>
+        
     </refsection>
+    
+    <refsection role="see also">
+        
+        <title>参照</title>
+        
+        <simplelist type="inline">
+            
+            <member>
+                
+                <link linkend="code2str">code2str</link>
+                
+            </member>
+            
+            <member>
+                
+                <link linkend="str2code">str2code</link>
+                
+            </member>
+            
+        </simplelist>
+        
+    </refsection>
+    
 </refentry>
+
index 971e414..1275dfb 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="blanks">
+    
     <refnamediv>
+        
         <refname>blanks</refname>
+        
         <refpurpose>空白文字からなる文字列を作成する</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
+        
         <synopsis>txt=blanks(n)</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>txt</term>
+                
                 <listitem>
+                    
                     <para>文字列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>n</term>
+                
                 <listitem>
+                    
                     <para>空白の数</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>D説明</title>
+        
         <para>blanks(n) はn個の空白からなる文字列です.</para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 disp(['xxx' blanks(20) 'yyy'])
  ]]></programlisting>
+        
     </refsection>
+    
 </refentry>
+
index 56e6fc3..b9feec9 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) 2008 - INRIA - Farid BELAHCENE
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="char" xml:lang="ja">
+    
     <refnamediv>
+        
         <refname>char</refname>
+        
         <refpurpose>char 関数</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
-        <synopsis>y=char( x)
-            y=char(st1,st2,st3,....)
+        
+        <synopsis>
+            
+            y = char(x)
+            
+            y = char(st1, st2, st3,....)
+            
         </synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>x</term>
+                
                 <listitem>
+                    
                     <para>文字列配列のセル, またはアスキーコードの配列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>st1,st2,st3</term>
+                
                 <listitem>
+                    
                     <para>文字列配列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>y:</term>
+                
                 <listitem>
+                    
                     <para>文字列(列)ベクトル</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>入力引数が一つの場合 :</literal>
+            
+            <emphasis role="bold">入力引数が一つの場合  :</emphasis>
+            
         </para>
+        
         <para>
-            文字列配列<literal>x</literal>のセルを指定すると, この関数は
-            文字列セルの要素を行とする文字列ベクトル <literal>y</literal>
+            
+            文字列配列<varname>x</varname>のセルを指定すると, この関数は
+            
+            文字列セルの要素を行とする文字列ベクトル <varname>y</varname>
+            
             を返します.
+            
         </para>
+        
         <para>
-            アスキーコード<literal>x</literal>の配列を指定すると,
-            この関数はそのアスキーコードに対応する文字列の配列 <literal>y</literal> 
-            を返します.
-            dims (<literal>x</literal>)=[n1,n2,n3,n4,....],
-            は,2番目の dims 以外は入力値と同じ大きさの値,
-            dims(<literal>y</literal>)=[n1,n3,n4,..]
+            
+            アスキーコード<varname>x</varname>の配列を指定すると,
+            
+            この関数はそのアスキーコードに対応する文字列の配列 <varname>y</varname> 
+            
             を返します.
+            
+            <varname>x</varname>の次元が <literal>[n1, n2, n3, n4,...]</literal>の場合,
+            
+            返り値は2番目の次元以外は入力値と同じ大きさを有します.
+            
+            すなわち,<varname>y</varname>の次元は,
+            
+            <literal>[n1, n3, n4,...]</literal>となります.
+            
         </para>
+        
         <para>
-            <literal>入力引数が1より多い場合 :</literal>
+            
+            <emphasis role="bold">入力引数が1より多い場合 :</emphasis>
+            
         </para>
-        <para>文字列配列
+        
+        <para>
+            
+            文字列配列
+            
             <literal>st1,st2,st3,...</literal>を指定すると, この関数は,
-            <literal>st1,st2,st3,...</literal>の要素が行となる
+            
+            <literal>st1,st2,st3,...</literal>を結合した要素が行となる
+            
             文字列のベクトルを返します.
-            ベクトル <literal>y </literal> において,
-            文字列の長さ sti は空白で埋めることにより,
-            stiの最長のものと同じ長さとする必要があります.
+            
+            ベクトル <varname>y</varname> においては,
+            
+            文字列<literal>sti</literal>の末尾を空白で埋めることにより,
+            
+            <literal>sti</literal>の最長のものと同じ長さにしています.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
-//Example with a hypermatrix of ascii codes :
+//Example with a hypermatrix of ASCII codes :
 x=hypermat([4,2,3],61:84);
 y=char(x)
 size(x)
@@ -92,13 +165,30 @@ size(y)
 //all strings rows are completed by 'blanks' to have the same length : 6
 length(y)
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
+            <member>
+                
+                <link linkend="ascii">ascii</link>
+                
+            </member>
+            
             <member>
+                
                 <link linkend="asciimat">asciimat</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index 137809b..953099a 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="convstr">
+    
     <refnamediv>
+        
         <refname>convstr</refname>
+        
         <refpurpose>大文字小文字変換</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
-        <synopsis>[y]=convstr(str, [flag])</synopsis>
+        
+        <synopsis>[y] = convstr(str, [flag])</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>str, y</term>
+                
                 <listitem>
+                    
                     <para>文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>flag</term>
+                
                 <listitem>
+                    
                     <para>文字オプションで指定可能な値は以下のとおり</para>
+                    
                     <variablelist>
+                        
                         <varlistentry>
+                            
                             <term>'u'</term>
+                            
                             <listitem>
+                                
                                 <para>大文字に変換</para>
+                                
                             </listitem>
+                            
                         </varlistentry>
+                        
                         <varlistentry>
+                            
                             <term>'l'</term>
+                            
                             <listitem>
+                                
                                 <para>小文字に変換</para>
+                                
                             </listitem>
+                            
                         </varlistentry>
+                        
                     </variablelist>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            文字列の行列<literal>str-matrix</literal>を
-            小文字に変換(<literal>"l"</literal>の場合;デフォルト値)または
-            大文字(<literal>"u"</literal>の場合).
+            
+            <function>convstr</function>関数は,文字列の行列
+            
+            <varname>str</varname>を
+            
+            小文字に変換(<varname>flag</varname> = <literal>"l"</literal>の場合;
+            
+            デフォルト値)または
+            
+            大文字(<varname>flag</varname> = <literal>"u"</literal>の場合)に変換します.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 A=['this','is';'my','matrix'];
 convstr(A,'u')
  ]]></programlisting>
+        
     </refsection>
+    
 </refentry>
+
index c175ca3..7754dec 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="emptystr">
+    
     <refnamediv>
+        
         <refname>emptystr</refname>
+        
         <refpurpose>長さ0の文字列</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
+        
         <synopsis>s = emptystr()
+            
             s = emptystr(a)
+            
             s = emptystr(m, n)
+            
         </synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>Parameters</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>a</term>
+                
                 <listitem>
+                    
                     <para> 大きさ m x nの行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>s</term>
+                
                 <listitem>
+                    
                     <para>文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>m,n</term>
+                
                 <listitem>
+                    
                     <para>整数</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
+            
             長さ0の文字列の行列を返します.
+            
         </para>
+        
         <para>
+            
             入力引数を指定しない場合,長さ0の文字列を返します.
+            
         </para>
+        
         <para>
+            
             入力引数に行列を指定した場合,同じ大きさの長さ0の文字列行列を返します.
+            
         </para>
+        
         <para>
-            2個の整数を引数に指定した場合, m x n の長さ0の文字列行列を返します.
+            
+            2個の整数を引数に指定した場合, 
+            
+            <varname>m</varname> <literal>x</literal> <varname>n</varname>
+            
+            の長さ0の文字列行列を返します.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
-x=emptystr();for k=1:10, x=x+','+string(k);end
+x=emptystr();
+for k=1:10
+    x = x + ',' + string(k)
+    emptystr(1,k) + string(k)
+end
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="part">part</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="length">length</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="string">string</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index b64814f..3c70a1d 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) 2008 - INRIA
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="eval" xml:lang="ja">
+    
     <refnamediv>
+        
         <refname>eval</refname>
-        <refpurpose>文字列の行列の評価</refpurpose>
+        
+        <refpurpose>文字列の行列を評価する</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
-        <synopsis>[H]= eval(Z)</synopsis>
+        
+        <synopsis>[H] = eval(Z)</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>説明n</title>
+        
+        <title>引数</title>
+        
+        <variablelist>
+            
+            <varlistentry>
+                
+                <term>Z</term>
+                
+                <listitem>
+                    
+                    <para>文字列の行列.</para>
+                    
+                </listitem>
+                
+            </varlistentry>
+            
+        </variablelist>
+        
+    </refsection>
+    
+    <refsection>
+        
+        <title>説明</title>
+        
         <para>
-            文字列の行列<literal>Z</literal>を評価したものを返します.
+            
+            <function>eval</function>関数は,
+            
+            文字列の行列<varname>Z</varname>を評価したものを返します.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
-a=1; b=2; Z=['a','sin(b)'] ; eval(Z)  //行列 [1,0.909]を返す;
+a=1;
+b=2;
+Z=['a','sin(b)'];
+eval(Z)  //行列 [1, 0.909]を返します;
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection>
+        
         <title>S参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="evstr">evstr</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="execstr">execstr</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index 5bd281b..4756b07 100644 (file)
 <?xml version="1.0" encoding="UTF-8"?>
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="evstr" xml:lang="ja">
+    
     <refnamediv>
+        
         <refname>evstr</refname>
-        <refpurpose>式の評価</refpurpose>
+        
+        <refpurpose>式を評価する</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
-        <synopsis>H=evstr(Z)
-            [H,ierr]=evstr(Z)
+        
+        <synopsis>
+            
+            H = evstr(Z)
+            
+            [H, ierr] = evstr(Z)
+            
         </synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>Z</term>
+                
                 <listitem>
+                    
                     <para>
-                        文字列の行列 <literal>M</literal> または
-                        <literal>list(M,Subexp)</literal>
+                        
+                        文字列の行列 <varname>M</varname> または
+                        
+                        <code>list(M,Subexp)</code>
+                        
                     </para>
+                    
                     <variablelist>
+                        
                         <varlistentry>
+                            
                             <term>M</term>
+                            
                             <listitem>
+                                
                                 <para>文字列の行列</para>
+                                
                             </listitem>
+                            
                         </varlistentry>
+                        
                         <varlistentry>
+                            
                             <term>Subexp</term>
+                            
                             <listitem>
+                                
                                 <para>文字列のベクトル</para>
+                                
                             </listitem>
+                            
                         </varlistentry>
+                        
                     </variablelist>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>H</term>
+                
                 <listitem>
-                    <para>matrix</para>
+                    
+                    <para>行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>ierr</term>
+                
                 <listitem>
+                    
                     <para>整数, エラーインジケータ</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            文字列の行列<literal>M</literal>を評価した結果を返します.
+            
+            文字列の行列<varname>M</varname>を評価した結果を返します.
+            
             行列の各要素は有効なScilab式を定義している必要があります.
+            
         </para>
+        
         <para>
-            <literal>M</literal>式の評価でエラーが発生した場合,
-            戻り値が1つの版,<literal>H = evstr(M)</literal>,では通常と同様に
+            
+            <varname>M</varname>式の評価でエラーが発生した場合,
+            
+            戻り値が1つの版,<code>H = evstr(M)</code>,では通常と同様に
+            
             エラーを発生します.
-            一方,戻り値が2つの版,<literal>[H,ierr] = evstr(M)</literal>,
-            はエラーを発生しませんが,<literal>ierr</literal>にエラー番号が
+            
+            一方,戻り値が2つの版,<code>[H,ierr] = evstr(M)</code>,
+            
+            はエラーを発生しませんが,<varname>ierr</varname>にエラー番号が
+            
             返されます.
+            
         </para>
+        
         <para>
-            <literal>Z</literal> がリストの場合, <literal>Subexp</literal> は
-            文字列のベクトルとなり,<literal>M</literal>を評価する前に評価された
-            sub_expressionsを定義します.
-            これらのsub_expressionsは<literal>M</literal>の中では
+            
+            <varname>Z</varname> がリストの場合, <varname>Subexp</varname> は
+            
+            文字列のベクトルとなり,<varname>M</varname>を評価する前に
+            
+            評価されるsub_expressionsを定義します.
+            
+            これらのsub_expressionsは,<varname>M</varname>の中では
+            
             <literal>%(k)</literal>として参照する必要があります.
-            ただし,<literal>k</literal>は<literal>Subexp</literal>における
+            
+            ただし,<literal>k</literal>は<varname>Subexp</varname>における
+            
             sub-expressionのインデックスです.
+            
         </para>
+        
         <para>
-            evstr('a = 1') は有効ではありません (代わりに<literal>execstr</literal>
-            を使用してください).
+            
+            <code>evstr('a = 1')</code> は有効ではありません 
+            
+            (代わりに<function>execstr</function>を使用してください).
+            
         </para>
-        <para>Nan, NaN は %nan と評価されます.</para>
-        <para>Inf は %inf と評価されます.</para>
+        
+        <para>
+            <literal>Nan</literal>, <literal>NaN</literal>
+            
+            は <constant>%nan</constant> と評価されます.
+        </para>
+        
+        <para>
+            
+            <literal>Inf</literal> は <constant>%inf</constant> と評価されます.
+            
+        </para>
+        
+        <note>
+            
+            <varname>Z</varname> は,継続記号 (..)で分解できない
+            
+            ことに注意してください.
+            
+        </note>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
-        <programlisting role="example">a = 1; b = 2; Z = ['a', 'b'] ; evstr(Z) 
-            a = 1; b = 2; Z = list(['%(1)','%(1)-%(2)'],['a+1','b+1']);
+        
+        <programlisting role="example">
+            
+            a = 1; b = 2;
+            
+            Z = ['a', 'b'] ;
+            
+            evstr(Z)
+            
+            
+            
+            Z = list(['%(1)','%(1)-%(2)'],['a+1','b+1']);
+            
             evstr(Z)
+            
+            
+            
             evstr('NaN'), evstr('Inf')
+            
+            
+            
+            //The two return values version
+            
+            [H, ierr] = evstr(Z) // no error
+            
+            Z = ['a', 'b', 'c'] ;// the variable c is undefined
+            
+            [H, ierr] = evstr(Z) // error 4: Undefined variable: c
+            
         </programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="execstr">execstr</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index 6459d2a..4091326 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="grep" xml:lang="ja">
+    
     <refnamediv>
+        
         <refname>grep</refname>
+        
         <refpurpose>文字列のベクトルの中で指定した文字列に一致するかどうかを調べる</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
+        
         <synopsis>row=grep(haystack,needle )
+            
             [row,which]=grep(haystack,needle )
+            
             row=grep(haystack,needle ,[flag])
+            
             [row,which]=grep(haystack,needle ,[flag])
+            
         </synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>haystack</term>
+                
                 <listitem>
+                    
                     <para>文字列の行ベクトル.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>needle</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行ベクトル.
-                        <literal>haystack</literal>の中で文字列を探します.
+                        
+                        <varname>haystack</varname>の中で文字列を探します.
+                        
                     </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>row</term>
+                
                 <listitem>
+                    
                     <para>インデックスのベクトル: 
+                        
                         一致するものが見つかった行,
+                        
                         または一致するものが見つからなかった場合は空の行列.
+                        
                     </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>which</term>
+                
                 <listitem>
+                    
                     <para>インデックスのベクトル: 
+                        
                         見つかったneedle文字列のインデックスまたは
+                        
                         一致するものがなかった場合は空の行列.
+                        
                     </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>flag</term>
+                
                 <listitem>
-                    <para>文字 (正規表現の場合は"r")</para>
+                    
+                    <para>
+                        文字 (正規表現の場合は<literal>"r"</literal>)
+                    </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>haystack</literal>の各エントリについて,
-            grepは少なくとも<literal>needle</literal>の中の一つの文字列が
+            
+            
+            
+            <varname>haystack</varname>の各エントリについて,
+            
+            <function>grep</function>は少なくとも
+            
+            <varname>needle</varname>の中の一つの文字列が
+            
             部分文字列に一致するかどうかを探します.
+            
             最低でも一致するものが一つある
-            <literal>haystack</literal>のエントリのインデックスが
-            出力引数<literal>row</literal>に返されます.
-            オプションの出力引数<literal>which</literal>は,
-            <literal>needle</literal>の最初に見つかった文字列のインデックスを
+            
+            <varname>haystack</varname>のエントリのインデックスが
+            
+            出力引数<varname>row</varname>に返されます.
+            
+            オプションの出力引数<varname>which</varname>は,
+            
+            <varname>needle</varname>の最初に見つかった文字列のインデックスを
+            
             指定します.
+            
         </para>
+        
         <para>
-            3番目のパラメータに<literal>flag="r"</literal>を指定した場合,
-            <literal>needle</literal>に正規表現文字列を指定できます.
-            この場合, <literal>grep</literal> は<literal>needle</literal>
+            
+            3番目のパラメータに<varname>flag</varname><literal>="r"</literal>
+            
+            を指定した場合,
+            
+            <varname>needle</varname>に正規表現文字列を指定できます.
+            
+            この場合, <function>grep</function>は<varname>needle</varname>
+            
             を正規表現として使用し,正規表現の規則に基づいて
-            <literal>haystack</literal>とこの文字列を比較します.
+            
+            <varname>haystack</varname>とこの文字列を比較します.
+            
             正規表現に関する詳細については関数<link linkend="regexp">regexp</link>
+            
             を参照ください.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例 #1</title>
+        
         <para>
-            以下の例では,<literal>txt</literal>変数に保存されている
+            
+            以下の例では,<varname>txt</varname>変数に保存されている
+            
             テキスト中で,1つまたは2つの文字列を探します.
+            
         </para>
+        
         <programlisting role="example"><![CDATA[ 
 txt=['find matches of a string in a vector of strings'
      'search position of a character string in an other string'
@@ -103,26 +198,45 @@ grep(txt,'strings')
 grep(txt,['strings' 'Strings'])
 [r,w]=grep(txt,['strings' 'Strings'])
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例 #2</title>
+        
         <para>以下の例では, 正規表現検索を行ないます.</para>
+        
         <programlisting role="example"><![CDATA[ 
 str = ["hat";"cat";"hhat";"chat";"hcat";"ccchat";"at";"dog"]
 grep(str,'/[hc]+at/','r')
 grep(str,'/[hc]?at/','r')
 grep(str,'/cat|dog/','r')
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="strindex">strindex</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="regexp">regexp</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index 35bd807..f3f51a7 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="isalphanum">
+    
     <refnamediv>
+        
         <refname>isalphanum</refname>
+        
         <refpurpose>文字列の文字がアルファベットまたは数字であるかどうかを調べる</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
+        
         <synopsis>res = isalphanum(str)</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>str</term>
+                
                 <listitem>
+                    
                     <para>文字列.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>res</term>
+                
                 <listitem>
+                    
                     <para>論理値行列.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>res = isalphanum(str)</literal> は str を同じ大きさの
-            配列を返します.
-            この配列の要素は,対応する str の要素がアルファベットまたは数字である
-            場合に論理値 %t (true), そうでない場合は %f (false) を返します.
+            
+            <code>res = isalphanum(str)</code>は <varname>str</varname>
+            
+            と同じ大きさの配列を返します.
+            
+            この配列の要素は,対応する<varname>str</varname>
+            
+            の要素がアルファベットまたは数字である
+            
+            場合に論理値 <constant>%t</constant> (true), 
+            
+            そうでない場合は <constant>%f</constant> (false) を返します.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 s = 'A1,B2,C3';
 isalphanum(s)
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="isletter">isletter</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="isdigit">isdigit</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index 08e8d22..8cbb771 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="isascii">
+    
     <refnamediv>
+        
         <refname>isascii</refname>
+        
         <refpurpose>文字が7ビットUS-ASCII文字であるかどうかを確認する</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
+        
         <synopsis>res = isascii(str)</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>str</term>
+                
                 <listitem>
-                    <para>文字列.</para>
+                    
+                    <para>文字列または整数の配列.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>res</term>
+                
                 <listitem>
+                    
                     <para>論理値行列.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
-        <title>説明n</title>
+        
+        <title>説明</title>
+        
         <para>
-            <literal>res = isascii(str)</literal> は,
-            cが0および8進数0177の間の7ビットUS-ACII文字コードの場合にTRUE (%T),
-            それ以外の場合に FALSE (%F)を返します.
+            
+            <code>res = isascii(str)</code>は,
+            
+            <varname>str</varname>のエントリが
+            
+            0および8進数表現で0177の間の7ビットUS-ASCII文字コード
+            
+            (または<varname>str</varname>のエントリが7ビットUS-ASCII文字列)
+            
+            の場合に<constant>%t</constant> (TRUE),
+            
+            それ以外の場合に <constant>%f</constant> (FALSE).
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 letters = [115.    99.    105.    108.    97.    98.]
 isascii(letters)
 ascii(letters)
 isascii('scilab')
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="isalphanum">isalphanum</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index 70c3284..aec9ecb 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="isdigit">
+    
     <refnamediv>
+        
         <refname>isdigit</refname>
+        
         <refpurpose>文字列の文字が0と9の間の数値であるかどうかを調べる</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
+        
         <synopsis>res = isdigit(str)</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>str</term>
+                
                 <listitem>
+                    
                     <para>文字列.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>res</term>
+                
                 <listitem>
+                    
                     <para>論理値の行列.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>res = isdigit(str)</literal> は
-            str と同じ大きさの配列を返します.
-            配列の要素は,対応する str の要素が数値の場合に論理値%T (TRUE),
-            それ以外の場合に論理値%F (FALSE)となります.
+            
+            <code>res = isdigit(str)</code> は,
+            
+            <varname>str</varname>と同じ大きさの配列を返します.
+            
+            配列の要素は,対応する<varname>str</varname>の要素が数値の場合に
+            
+            論理値<constant>%t</constant> (TRUE),
+            
+            それ以外の場合に論理値<constant>%f</constant> (FALSE)となります.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 s = 'A1,B2,C3';
 isdigit(s)
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="isalphanum">isalphanum</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="isletter">isletter</link>
+                
             </member>
+            
+            <member>
+                
+                <link linkend="isnum">isnum</link>
+                
+            </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index 3351262..813f28d 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="isletter">
+    
     <refnamediv>
+        
         <refname>isletter</refname>
+        
         <refpurpose>文字列の文字がアルファベット文字であるかどうかを調べる</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
+        
         <synopsis>res = isletter(str)</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>str</term>
+                
                 <listitem>
+                    
                     <para>文字列.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>res</term>
+                
                 <listitem>
+                    
                     <para>論理値の行列.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
-        <title>D説明</title>
+        
+        <title>説明</title>
+        
         <para>
-            <literal>res = isletter(str)</literal> は,
-            str と同じ大きさの配列を返します.
-            配列の要素は,対応する str の要素がアルファベット文字の場合に論理値%T (TRUE),
-            それ以外の場合に論理値%F (FALSE)となります.
+            
+            <code>res = isletter(str)</code>は,
+            
+            <varname>str</varname>と同じ大きさの配列を返します.
+            
+            配列の要素は,対応する <varname>str</varname>の要素が
+            
+            アルファベット文字の場合に論理値<constant>%t</constant> (TRUE),
+            
+            それ以外の場合に論理値<constant>%f</constant> (FALSE)となります.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 s = 'A1,B2,C3';
 isletter(s)
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="isalphanum">isalphanum</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="isdigit">isdigit</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index 087011d..2a14214 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="isnum">
+    
     <refnamediv>
+        
         <refname>isnum</refname>
+        
         <refpurpose>文字列が数字であるかどうかを調べる</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
+        
         <synopsis>res = isnum(str)</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>str</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>res</term>
+                
                 <listitem>
+                    
                     <para>論理値の行列.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>res = isnum(str)</literal>は,
-            strが数値の場合に %Tを返します.
+            
+            <code>res = isnum(str)</code>は,
+            
+            <varname>str</varname>が数値を表す場合に<constant>%t</constant>
+            
+            を返します.
+            
         </para>
+        
+        <para>
+            
+            <code>isnum</code> は "演算"を処理せずに, 
+            
+            スカラー数値のみを扱います.
+            
+            例えば, <code>isnum("1+2*3")</code> は <code>%f</code>を返します.
+            
+            複素数は2つの部分の加算として定義されるため,
+            
+            対応していません.
+            
+        </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
-        <programlisting role="example"><![CDATA[ 
-isnum(['1'     , ..
-       '-1.23' , ..
-       '+1e+23', .. 
-       '1d+23' , ..
-       '%pi'])
- ]]></programlisting>
+        
+        <programlisting role="example"><![CDATA[
+isnum(['1'   , ..
+    '-1.23'  , ..
+    '+1e+23' , ..
+    '1d+23'  , ..
+    'A'      , ..
+    '%e'     , ..
+    '%pi'    , ..
+    '%nan'   , ..
+    'Nan'    , ..
+    '%inf'   , ..
+    'Inf'    , ..
+    '1+%i*2' , ..
+    '%eps-%eps*%i', ..
+    '%inf+Nan*%i' ])
+    ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="isletter">isletter</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="isdigit">isdigit</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="isalphanum">isalphanum</link>
+                
+            </member>
+            
+            <member>
+                
+                <link linkend="evstr">evstr</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index 0a8c076..bb84d87 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="justify">
+    
     <refnamediv>
+        
         <refname>justify</refname>
-        <refpurpose>文字配列を整列.  </refpurpose>
+        
+        <refpurpose>文字配列を整列</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
-        <synopsis>Tj=justify(T,opt)</synopsis>
+        
+        <synopsis>Tj = justify(T, opt)</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>T</term>
+                
                 <listitem>
+                    
                     <para>文字列の行列.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>Tj</term>
+                
                 <listitem>
+                    
                     <para>文字列の行列. 揃えられた結果</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>opt</term>
+                
                 <listitem>
-                    <para>指定可能な値を有する文字オプション</para>
+                    
+                    <para>文字オプション,以下の値を指定できます:</para>
+                    
                     <variablelist>
+                        
                         <varlistentry>
-                            <term>'r'  </term>
+                            
+                            <term>'r'または'right'</term>
+                            
                             <listitem>
-                                <para>右揃えの場合は'right'</para>
+                                
+                                <para>右揃え</para>
+                                
                             </listitem>
+                            
                         </varlistentry>
+                        
                         <varlistentry>
-                            <term>'l'  </term>
+                            
+                            <term>'l'または'left'  </term>
+                            
                             <listitem>
-                                <para>左揃えの場合は'left'</para>
+                                
+                                <para>左揃え</para>
+                                
                             </listitem>
+                            
                         </varlistentry>
+                        
                         <varlistentry>
-                            <term>'c'  </term>
+                            
+                            <term>'c'または'center'  </term>
+                            
                             <listitem>
-                                <para>中央揃えの場合は'center'</para>
+                                
+                                <para>中央揃え</para>
+                                
                             </listitem>
+                            
                         </varlistentry>
+                        
                     </variablelist>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>justify</literal>は指定したオプションに基づき
+            
+            <function>justify</function>関数は,
+            
+            指定したオプション<varname>opt</varname>に基づき
+            
             文字列の行列の列を整列します.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 t=['1234','x','adfdfgdfghfgj'
    '1','354556','dgf'
@@ -79,16 +144,30 @@ justify(t,'l')
 justify(t,'c')
 justify(t,'r')
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="length">length</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="part">part</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index 764ec4b..8ed6522 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="sci2exp">
+    
     <refnamediv>
+        
         <refname>sci2exp</refname>
+        
         <refpurpose>式を文字列に変換</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
-        <synopsis>t=sci2exp(a [,nam] [,lmax])</synopsis>
+        
+        <synopsis>t = sci2exp(a [,nam] [,lmax])</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>a</term>
+                
                 <listitem>
+                    
                     <para>以下に示すscilab式</para>
+                    
                     <variablelist>
+                        
                         <varlistentry>
+                            
                             <term>-    </term>
+                            
                             <listitem>
+                                
                                 <para>定数,</para>
+                                
                             </listitem>
+                            
                         </varlistentry>
+                        
                         <varlistentry>
+                            
                             <term>-    </term>
+                            
                             <listitem>
+                                
                                 <para>多項式</para>
+                                
                             </listitem>
+                            
                         </varlistentry>
+                        
                         <varlistentry>
+                            
                             <term>-    </term>
+                            
                             <listitem>
+                                
                                 <para>文字列行列</para>
+                                
                             </listitem>
+                            
                         </varlistentry>
+                        
                         <varlistentry>
+                            
                             <term>-    </term>
+                            
                             <listitem>
+                                
                                 <para>リスト</para>
+                                
                             </listitem>
+                            
                         </varlistentry>
+                        
                         <varlistentry>
+                            
                             <term>-    </term>
+                            
                             <listitem>
+                                
                                 <para>論理値行列</para>
+                                
                             </listitem>
+                            
                         </varlistentry>
+                        
+                        <varlistentry>
+                            
+                            <term>-    </term>
+                            
+                            <listitem>
+                                
+                                <para>ハンドル(図およびuicontrolのみ).</para>
+                                
+                            </listitem>
+                            
+                        </varlistentry>
+                        
                     </variablelist>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>nam</term>
+                
                 <listitem>
+                    
                     <para>文字列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>t</term>
+                
                 <listitem>
+                    
                     <para>文字列ベクトルで, 式またはダミー命令を含みます</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>lmax</term>
+                
                 <listitem>
-                    <para>整数で, 行の最大長(デフォルト値:90)
-                        を有します.
-                        <literal>lmax=0</literal> は行の長さを制御を行わず,単一の文字列が
-                        返されることを示します
+                    
+                    <para>
+                        
+                        整数で, 行の最大長を有します.
+                        
+                        デフォルト値は<literal>0</literal>で,
+                        
+                        行の長さを制御を行わず,
+                        
+                        単一の文字列が返されることを示します.
+                        
                     </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>sci2exp</literal>は,
-            <literal>nam</literal>が指定されるた場合には
+            
+            <function>sci2exp</function>は,
+            
+            <varname>nam</varname>が指定されるた場合には
+            
             式を命令文字列に,さもなくば式文字列に変換します.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
+        <title>注意</title>
+        
+        <itemizedlist>
+            
+            <listitem>
+                
+                <para>
+                    
+                    <varname>a</varname> がハンドルの場合, 
+                    
+                    <function>sci2exp</function> は階層的リンクがない結果
+                    
+                    つまり,親および子の空のフィールドの結果を出力します.
+                    
+                </para>
+                
+            </listitem>
+            
+            <listitem>
+                
+                <para>
+                    
+                    <varname>t</varname> は,<link linkend="format">format</link>の
+                    
+                    影響を受けます. 
+                    
+                </para>
+                
+            </listitem>
+            
+        </itemizedlist>
+        
+    </refsection>
+    
+    <refsection>
+        
         <title>例</title>
-        <programlisting role="example"><![CDATA[ 
+        
+        <programlisting role="example"><![CDATA[
 a=[1 2;3 4]
 sci2exp(a,'aa')
-sci2exp(a,'aa',0)
+sci2exp(a,'aa',10)
 sci2exp(ssrand(2,2,2))
 sci2exp(poly([1 0 3 4],'s'),'fi')
- ]]></programlisting>
+sci2exp(figure("figure_name","figure1"))
+b=0.123456789;
+format(5);
+c=sci2exp(b)
+format(10);
+d=sci2exp(b)
+    ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="prettyprint">prettyprint</link>
+                
+            </member>
+            
+            <member>
+                
+                <link linkend="format">format</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index db10bc6..5e23bc5 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strcat" xml:lang="ja">
+    
     <refnamediv>
+        
         <refname>strcat</refname>
+        
         <refpurpose>文字列を結合する</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
-        <synopsis>txt=strcat(vector_of_strings [,string_added])
-            txt=strcat(vector_of_strings [,string_added, ["flag"]])
+        
+        <synopsis>
+            
+            txt = strcat(strings [,string_added])
+            
+            txt = strcat(strings [,string_added, ["flag"]])
+            
         </synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
-                <term>vector_of_strings</term>
+                
+                <term>strings</term>
+                
                 <listitem>
-                    <para>文字列ベクトル</para>
+                    
+                    <para>文字列のベクトルまたは行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>string_added</term>
+                
                 <listitem>
-                    <para>追加される文字列, デフォルト値は空の文字列
+                    
+                    <para>
+                        
+                        追加される文字列, デフォルト値は長さ0の文字列
+                        
                         <literal>""</literal>
+                        
                     </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>txt</term>
+                
                 <listitem>
+                    
                     <para>文字列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>"flag"</term>
+                
                 <listitem>
-                    <para>文字列 ( "r" は行行列を返し, "c" は列行列を返します)</para>
+                    
+                    <para>
+                        
+                        文字列 (<literal>"r"</literal>は
+                        
+                        行列<varname>strings</varname>の行の結合,
+                        
+                        <literal>"c"</literal>は
+                        
+                        行列<varname>strings</varname>の列の結合)
+                        
+                    </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
+        <para>
+            
+            <code>txt = strcat(strings)</code>は文字列を結合します:
+            
+            <literal>txt = strings(1) + ... + strings(n)</literal>.
+            
+        </para>
+        
         <para>
-            <literal>txt=strcat(vector_of_strings)</literal>は文字列を結合します
-            :
-            <literal>txt=vector_of_strings(1)+...+vector_of_strings(n)</literal>
+            
+            <code>txt = strcat(strings, string_added)</code>は,
+            
+            <literal>txt = strings(1) + string_added + ... + string_added + strings(n)</literal>
+            
+            を返します.
+            
         </para>
+        
         <para>
-            <literal>txt=strcat(vector_of_strings,string_added)</literal>
-            は
-            <literal>txt=vector_of_strings(1)+string_added+...+string_added+vector_of_strings(n)</literal>を返します.
+            
+            プラス記号の動作は同じです: <code>"a"+"b"</code> は
+            
+            <code>strcat(["a","b"])</code>と同じです.
+            
         </para>
+        
         <para>
-            プラス記号の動作は同じです: <literal>"a"+"b"</literal> は
-            <literal>strcat(["a","b"])</literal>と同じです.
+            
+            <varname>strings</varname> の大きさが1の場合, 
+            
+            <code>txt = strings(1)</code>を返します.
+            
         </para>
+        
         <para>
-            <literal>vector_of_strings</literal> の大きさが1の場合, 
-            <literal>txt=vector_of_strings(1)</literal>を返します.
+            
+            <code>strcat('A','B')</code> は <literal>'A'</literal>を返し,
+            
+            <code>strcat(['A','B'])</code>のように<literal>'AB'</literal>
+            
+            とはなりません.
+            
         </para>
+        
         <para>
-            <literal>strcat('A','B')</literal> は 'A' を返し,
-            <literal>strcat(['A','B'])</literal>のように 'AB'とはなりません.
+            
+            <varname>strings</varname>が文字列の行列の場合,
+            
+            <code>strcat(strings,"",'r')</code> は文字列の行ベクトルを返します.
+            
+            この行ベクトルのエントリは行結合の毛化です.文字列の列ベクトルを返します.
+            
+            この列ベクトルのエントリは列結合の結果です.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
-        <programlisting role="example"><![CDATA[ 
+        
+        <programlisting role="example"><![CDATA[
 strcat(string(1:10),',')
 strcat(["a","b"])
 strcat(["a","b"],'|')
@@ -87,21 +184,40 @@ strcat('A')
 strcat('A','B')
 strcat(['A','B'])
 strcat(['A','B'],'')
+
 m =["a" "b" ; "c" "d"];
 strcat(m, "r")
 strcat(m, "", "r")
 strcat(m, "", "c")
- ]]></programlisting>
+
+strcat(m, "_and_", "r")
+strcat(m, "_and_", "c")
+
+    ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="string">string</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="strings">strings</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index e99a0ca..c27aa1c 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="strchr">
+    
     <refnamediv>
+        
         <refname>strchr</refname>
+        
         <refpurpose>文字列の中で指定した文字が最初に現れる位置を探す</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
-        <synopsis>res = strchr(haystack,char)</synopsis>
+        
+        <synopsis>res = strchr(haystack, char)</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>haystack</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>char</term>
+                
                 <listitem>
+                    
                     <para>文字.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>res</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>res = strchr(haystack,char)</literal> は,
-            文字列haystackの中で指定した文字(char)が最初に現れる位置を返します.
+            
+            <code>res = strchr(haystack, char)</code> は,
+            
+            文字列<varname>haystack</varname>の中で指定した
+            
+            文字が最初に現れる位置を返します.
+            
         </para>
-        <para>charはhaystackと同じ次元を有し,1文字のみである必要があります.</para>
+        
+        <para>
+            
+            <varname>char</varname>は文字列を1つのみ,または,
+            
+            <varname>haystack</varname>と同じ数だけ有する
+            
+            必要があります
+            
+            (各文字列の長さは1文字分のみ).
+            
+        </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 strchr('This is a sample string','s')
 strchr(['This is a sample string','in scilab'],'s')
 strchr(['This is a sample string','in scilab'],['s','a'])
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="strrchr">strrchr</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="strstr">strstr</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index e784973..c5a869e 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strcmp" xml:lang="ja">
+    
     <refnamediv>
+        
         <refname>strcmp</refname>
+        
         <refpurpose>文字列を比較</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
-        <synopsis>res = strcmp(string_one,string_two,[,'i'])</synopsis>
+        
+        <synopsis>res = strcmp(string_one, string_two, [,'i'])</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>string_one</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>string_two</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>'i'</term>
+                
                 <listitem>
-                    <para>stricmp (大文字小文字に依存)を使用するためのパラメータ, デフォルト値は
-                        's'
+                    
+                    <para>
+                        
+                        <function>strcmpi</function>
+                        
+                        (大文字小文字に依存)を使用するためのパラメータ, デフォルト値は
+                        
+                        <literal>'s'</literal>.
+                        
                     </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>res</term>
+                
                 <listitem>
-                    <para>行列.</para>
+                    
+                    <para>整数の行列.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>res = strcmp(string_one,string_two)</literal> は
-            文字列の間の関係を示す整数値を返します.
+            
+            <code>res = strcmp(string_one, string_two)</code>
+            
+            (または<code>res = strcmp(string_one, string_two, 's')</code>)は,
+            
+            文字列の間の関係(辞書順)を示す整数値を返します.
+            
         </para>
-        <para>ゼロより大きい値は,一致しない最初の文字について,
-            <literal>string_one</literal>の方が
-            <literal>string_two</literal>よりも大きな値を有している
+        
+        <para>
+            
+            ゼロより大きい値は,一致しない最初の文字について,
+            
+            <varname>string_one</varname>の方が
+            
+            <varname>string_two</varname>よりも大きな値を有している
+            
             ことを示します.
+            
+        </para>
+        
+        <para>
+            
+            <code>res = strcmp(string_one, string_two, 'i')</code>は,
+            
+            <varname>string_one</varname> が
+            
+            <varname>string_two</varname> (大文字小文字を区別しません) 
+            
+            に等しい場合に<literal>0</literal>を返し,
+            
+            <literal>1</literal>はその逆を示します.
+            
         </para>
-        <para>ゼロよりも小さな値はその逆であることを示します.</para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 TXT1 = ['scilab','SciLab';'Strcmp','STRcmp'];
 TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP'];
@@ -73,16 +150,30 @@ strcmp(TXT1,'scilab')
 strcmp(TXT1,'SciLab')
 strcmp(TXT1,TXT2,'i')
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="strcat">strcat</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="strcmpi">strcmpi</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index c8948d7..333a87b 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="strcmpi">
+    
     <refnamediv>
+        
         <refname>strcmpi</refname>
-        <refpurpose>文字列を比較 (大文字小文字に依存)</refpurpose>
+        
+        <refpurpose>文字列を比較 (大文字小文字を区別)</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
+        
         <synopsis>res = strcmpi(string_one,string_two)</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>string_one</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>string_two</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>res</term>
+                
                 <listitem>
-                    <para>行列.</para>
+                    
+                    <para>整数の行列.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>res = strcmpi(string_one,string_two)</literal> は,
+            
+            <code>res = strcmpi(string_one, string_two)</code>は,
+            
             文字列の間の関係を示す内部的な値を返します.
+            
+            2つの文字列は<emphasis role="bold">辞書式順序</emphasis>により
+            
+            比較されます.
+            
         </para>
-        <para>0より大きな値は,一致しない最初の文字について,
-            <literal>string_one</literal> の方が
-            <literal>string_two</literal> よりも大きな値を有することを
-            示します.
+        
+        <para>
+            
+            <varname>string_one</varname>が <varname>string_two</varname> 
+            
+            に等しい場合(大文字小文字を区別しません), 値は 
+            
+            <literal>0</literal> となり,
+            
+            <varname>string_one</varname>が
+            
+            <varname>string_two</varname>より大きい場合に<literal>1</literal>,
+            
+            それ以外は<literal>-1</literal>となります.
+            
         </para>
-        <para>ゼロより小さい値はその逆を示します.</para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 TXT1 = ['scilab','SciLab';'Strcmp','STRcmp'];
 TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP'];
 strcmpi(TXT1,TXT2)
 strcmpi(TXT1,'scilab')
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="strcat">strcat</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="strcmp">strcmp</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index b80a407..014a4bf 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strcspn" xml:lang="ja">
+    
     <refnamediv>
+        
         <refname>strcspn</refname>
+        
         <refpurpose>文字列の中の文字までの間隔を得る</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>Calling Sequence</title>
-        <synopsis>res = strcspn(string_one,string_two)</synopsis>
+        
+        <synopsis>res = strcspn(string_one, string_two)</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>string_one</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>string_two</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>res</term>
+                
                 <listitem>
+                    
                     <para>行列.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>res = strcspn(string_one,string_two)</literal> は,
-            string_oneの中で
-            string_twoの一部の文字のどれかが最初に現れる位置を
-            探し,それが最初に現れるまでのstring_oneの文字数を返します.
+            
+            <code>res = strcspn(string_one,string_two)</code>は,
+            
+            <varname>string_one</varname>の中で
+            
+            <varname>string_two</varname>の一部の文字のどれかが最初に現れる位置を
+            
+            探し,それが最初に現れるまでの<varname>string_one</varname>の文字数を返します.
+            
         </para>
-        <para>string_one はstring_twoと同じ次元で,string_one
-            は文字列である必要があります.
+        
+        <para>
+            
+            <varname>string_two</varname>の次元が<varname>string_one</varname>と
+            
+            同じ,または<varname>string_two</varname>が文字列である必要があります.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 strcspn("fcba73","1234567890")
 strcspn(["fcba73","f7cba73"],"1234567890")
 strcspn(["fcba73","f7cba73"],["312","34567890"])
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="strspn">strspn</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index c4875cf..ee598c4 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strindex" xml:lang="ja">
+    
     <refnamediv>
+        
         <refname>strindex</refname>
+        
         <refpurpose>他の文字列の中で指定した文字列の位置を探す.</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
-        <synopsis>ind=strindex(haystack,needle,[flag])
-            [ind,which]=strindex(haystack,needle,[flag])
+        
+        <synopsis>
+            
+            ind = strindex(haystack, needle, [flag])
+            
+            [ind, which] = strindex(haystack, needle, [flag])
+            
         </synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>haystack</term>
+                
                 <listitem>
-                    <para>文字列. 
-                        <literal>needle</literal>が現れる場所を探す文字列
+                    
+                    <para>
+                        
+                        文字列. 
+                        
+                        <varname>needle</varname>が現れる場所を探す文字列
+                        
                     </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>needle</term>
+                
                 <listitem>
-                    <para>文字列または文字列ベクトル. 
-                        <literal>haystack</literal>で探す文字列
+                    
+                    <para>
+                        
+                        文字列または文字列ベクトル. 
+                        
+                        <varname>haystack</varname>で探す文字列
+                        
                     </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>ind</term>
+                
                 <listitem>
-                    <para>インデックスのベクトル</para>
+                    
+                    <para>添字のベクトル</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>which</term>
+                
                 <listitem>
-                    <para>インデックスのベクトル</para>
+                    
+                    <para>添字のベクトル</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>flag</term>
+                
                 <listitem>
-                    <para>文字列("r" の場合は正規表現)</para>
+                    
+                    <para>
+                        文字列(<literal>"r"</literal>の場合は正規表現)
+                    </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>strindex</literal> は,
-            <literal>haystack</literal>の中で<literal>needle(i)</literal>が
-            見つかった場所のインデックスを探します
+            
+            <function>strindex</function>は,
+            
+            <varname>haystack</varname>の中で<literal>needle(i)</literal>が
+            
+            見つかる場所のインデックスを探します.
+            
         </para>
+        
         <para>
+            
             各<literal>k</literal>に関して,
+            
             <literal>part(haystack,ind(k)+(0:length(needle(i))-1))</literal>
+            
             が<literal>needle(i)</literal>と同じ文字列となるよな
+            
             <literal>i</literal>が存在します.
-            <literal>which</literal>引数が必要な場合,
+            
+            <varname>which</varname>引数が必要な場合,
+            
             これにはこれらの<literal>i</literal>が含まれる必要があります.
-            3番目のパラメータ "r" を指定する場合,
-            needle は正規表現の文字列とする必要があります.
-            この場合, strindex は正規表現式の規則に基づき haystack に
-            一致されます.
+            
+            3番目のパラメータ<literal>"r"</literal>を指定する場合,
+            
+            <varname>needle</varname>は正規表現の文字列とする必要があります.
+            
+            この場合, <function>strindex</function>は正規表現式の規則に基づき
+            
+            <varname>haystack</varname>を検索します.
+            
         </para>
+        
         <para>
-            正規表現式引数を指定しない<literal>strindex</literal>は
+            
+            正規表現式引数を指定しない<function>strindex</function>は
+            
             Knuth-Morris-Prattアルゴリズムに基づきます.
+            
         </para>
-        <para>このアルゴリズムは Scilab 4.x で使用されるものよりも
+        
+        <para>
+            
+            このアルゴリズムは Scilab 4.x で使用されるものよりも
+            
             より強力です. いくつかの特殊なケースでは,結果が異なることがあります.
+            
         </para>
+        
         <para>例:</para>
-        <para>// scilab 5.x</para>
+        
+        <para>// Scilab 5.x</para>
+        
         <para>--&gt;[k,w]=strindex('aab',['a','ab'])</para>
+        
         <para>w = 1. 1. 2. k = 1. 2. 2.</para>
-        <para>// scilab 4.x</para>
+        
+        <para>// Scilab 4.x</para>
+        
         <para>--&gt;[k,w]=strindex('aab',['a','ab'])</para>
+        
         <para>w = 1. 1. k = 1. 2.</para>
-        <para>正規表現の規則はPerl言語に似ていますT. 使い始めるには,
+        
+        <para>
+            
+            正規表現の規則はPerl言語に似ていますT. 使い始めるには,
+            
             <ulink url="http://perldoc.perl.org/perlrequick.html">http://perldoc.perl.org/perlrequick.html</ulink>を参照してください.
+            
             より詳細なチュートリアルについては <ulink url="http://perldoc.perl.org/perlretut.html">http://perldoc.perl.org/perlretut.html</ulink>
+            
             を参照ください.
+            
             リファレンスについては, <ulink url="http://perldoc.perl.org/perlre.html">http://perldoc.perl.org/perlre.html</ulink>
+            
             を参照してください
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 k=strindex('SCI/demos/scicos','/')
 k=strindex('SCI/demos/scicos','SCI/')
@@ -112,22 +219,42 @@ k=strindex('SCI/demos/scicos',['SCI','sci'])
 [k,w]=strindex('1+3*abc/2.33',['+','-','*','/'])
 k=strindex('2' ,'/2(]*)?$\1/' ,'r') 
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="string">string</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="strings">strings</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="regexp">regexp</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="strsubst">strsubst</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index 83370e9..e5824aa 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="strings">
+    
     <refnamediv>
+        
         <refname>strings</refname>
+        
         <refpurpose>Scilabオブジェクト, 文字列</refpurpose>
+        
     </refnamediv>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            文字列は <literal>'文字列'</literal> (引用符で括る) または
-            <literal>"文字列"</literal> (二重引用符で括るb)と定義されます;
+            
+            文字列は <code>'string'</code> (引用符で括る) または
+            
+            <code>"string"</code> (二重引用符で括る)と定義されます;
+            
             文字列の行列は通常の定数行列と同様に定義されます.
+            
         </para>
+        
         <para>
-            2つの文字列の結合は <literal>+</literal> により作成されます: <literal>string1+string2</literal>.
+            
+            2つの文字列の結合は <literal>+</literal> により作成されます: 
+            
+            <code>string1 + string2</code>.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 ['this','is'; 'a 2x2','matrix']
 "matrix"=="mat"+"rix"
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection>
+        
         <title>S参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="part">part</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="length">length</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="strcat">strcat</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index ca27f9c..d72a8cd 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="stripblanks">
+    
     <refnamediv>
+        
         <refname>stripblanks</refname>
+        
         <refpurpose>
+            
             文字列の先頭または末尾の空白(およびタブ)を取り除く
+            
         </refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
-        <synopsis>txt=stripblanks(txt[,tabs])</synopsis>
+        
+        <synopsis>txt = stripblanks(txt[,tabs])</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>txt</term>
+                
                 <listitem>
-                    <para>文字列または文字列の行列 s</para>
+                    
+                    <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>tabs</term>
+                
                 <listitem>
-                    <para>TRUEの場合,タブも削除されます (デフォルト値は FALSE)</para>
+                    
+                    <para>
+                        
+                        論理値, <constant>%t</constant>の場合タブも削除されます
+                        
+                        (デフォルト値は <constant>%f</constant>です).
+                        
+                    </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            stripblanks は文字列の先頭または末尾の空白(およびタブ)を取り除
-            きます.
+            
+            <function>stripblanks</function>関数は,
+            
+            文字列の先頭または末尾の空白(およびタブ)を取り除きます.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 a='  123   ';
 '!'+a+'!'
 '!'+stripblanks(a)+'!'
 a=['  123   ',' xyz']
 strcat(stripblanks(a))
+
+a = msprintf("\t  \tHello world!\t\t")
+strcat(stripblanks(a,%f)+'?')
+strcat(stripblanks(a,%t)+'?')
  ]]></programlisting>
+        
     </refsection>
+    
 </refentry>
+
index 6e88000..254a6a8 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="strncpy">
+    
     <refnamediv>
+        
         <refname>strncpy</refname>
+        
         <refpurpose>文字列から文字をコピーする</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
-        <synopsis>res = strncpy(str1,num)</synopsis>
+        
+        <synopsis>res = strncpy(str1, num)</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>str1</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>num</term>
+                
                 <listitem>
+                    
                     <para>行列で,ソースからコピーされる文字の最大長</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>res</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>res = strncpy(str1,num)</literal> 
-            ソースからデスティネーションに最初のnum文字をコピーします.
+            
+            <code>res = strncpy(str1, num)</code> は,
+            
+            ソース<varname>str1</varname>から
+            
+            デスティネーション<varname>res</varname>に
+            
+            最初の<varname>num</varname>文字をコピーします.
+            
         </para>
-        <para> num がstr1と同じ次元であるか,str2が数値である
-            必要があります.
+        
+        <para> 
+            
+            <varname>num</varname>は<varname>str1</varname>と同じ次元であるか,
+            
+            <varname>num</varname>が整数値である必要があります.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 strncpy('scilab',3)
 strncpy(['scilab','SciLab';'strncpy','strstr'],3)
 strncpy(['scilab','SciLab';'strncpy','strstr'],[1,2;3,4])
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="strcat">strcat</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="strcmp">strcmp</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index 5d01214..c8cc837 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="strrchr">
+    
     <refnamediv>
+        
         <refname>strrchr</refname>
+        
         <refpurpose>文字列の中で指定した文字が最後に現れる場所を探す</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
-        <synopsis>res = strrchr(str1,char)</synopsis>
+        
+        <synopsis>res = strrchr(str1, char)</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>str1</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>char</term>
+                
                 <listitem>
+                    
                     <para>文字.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>res</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>res = strrchr(str1,char)</literal> 
-            文字列strの中で指定した文字が最後に現れる場所を返します.
+            
+            <code>res = strrchr(str1, char)</code>は,
+            
+            文字列<varname>str1</varname>の中で指定した文字
+            
+            <varname>char</varname>が最後に現れる場所を返します.
+            
         </para>
-        <para> num はstr1と同じ次元で,1文字である必要があります.</para>
+        
+        <para>
+            
+            <varname>char</varname>は<varname>str1</varname>と同じ次元
+            
+            または1文字である必要があります.
+            
+        </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 strrchr('This is a sample string','s')
 strrchr(['This is a sample string','in scilab'],'s')
 strrchr(['This is a sample string','in scilab'],['s','a'])
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="strchr">strchr</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="strstr">strstr</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index 3aa667e..04e9582 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="strrev">
+    
     <refnamediv>
+        
         <refname>strrev</refname>
-        <refpurpose>文字列を反転して返す</refpurpose>
+        
+        <refpurpose>文字列を逆順にして返す</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
+        
         <synopsis>res = strrev(str1)</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>str1</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>res</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>res = strrev(str1)</literal> 文字列を反転して返します.
+            
+            <code>res = strrev(str1)</code> 文字列を逆順にして返します.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 rev = strrev('This is a simple string')
 strrev(rev)
 strrev(['This is a simple string','scilab'])
  ]]></programlisting>
+        
     </refsection>
+    
 </refentry>
+
index bf45b11..6e93db9 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strsplit" xml:lang="ja">
+    
     <refnamediv>
+        
         <refname>strsplit</refname>
+        
         <refpurpose>文字列を文字列のベクトルに分割する</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
+        
         <synopsis>
+            
             v = strsplit(str,ind)
+            
             [v, matched_separators] = strsplit(str)
+            
             [v, matched_separators] = strsplit(str, matrix_of_strings, limit)
+            
             [v, matched_separators] = strsplit(str, regexp_pattern, limit)
+            
         </synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>str</term>
+                
                 <listitem>
+                    
                     <para>分割する文字列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>ind</term>
+                
                 <listitem>
+                    
                     <para>
+                        
                         <literal>[1 length(str)-1] </literal>の範囲の
+                        
                         単調増加のインデックスのベクトル.
+                        
                     </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>v</term>
+                
                 <listitem>
-                    <para>得られた文字列の列ベクトル  (次元 &gt;<literal>
-                            size(ind,'*')+1
-                        </literal>
-                        ).
+                    
+                    <para>
+                        
+                        得られた文字列の列ベクトル (次元 
+                        
+                        &gt;<literal>size(ind,'*')+1</literal>).
+                        
                     </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>matched_separators</term>
+                
                 <listitem>
+                    
                     <para>一致したセパレータの列ベクトル</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>matrix_of_strings</term>
+                
                 <listitem>
+                    
                     <para>strの中で検索する文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>regexp_pattern</term>
+                
                 <listitem>
+                    
                     <para>正規表現パターン</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>limit</term>
+                
                 <listitem>
+                    
                     <para>要素数の最大値</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>v= strsplit(str, ind)</literal> は,
-            <literal>ind</literal> でインデックスが指定された
-            点(indのインデックスが指す各文字の後)で,
-            文字列を文字列のベクトルに分割します.
+            
+            <code>v= strsplit(str, ind)</code>は,文字列<varname>str</varname>を
+            
+            <varname>ind</varname>で添字が指定された点
+            
+            (<varname>ind</varname>の添字が指す各文字の後)で,
+            
+            文字列のベクトルに分割します.
+            
         </para>
+        
         <para>
-            <literal>strsplit(str)</literal> は,
-            <literal>strsplit(str,1:length(str)-1).</literal>と同じ文字列を返します.
+            
+            <code>strsplit(str)</code> は,
+            
+            <code>strsplit(str,1:length(str)-1)</code>と同じ文字列を返します.
+            
         </para>
+        
         <para>
-            <literal>strsplit(str, regexp_pattern, limit)</literal> は
+            
+            <code>strsplit(str, regexp_pattern, limit)</code>は
+            
             文字列の列ベクトルを返します.
+            
             その各々は,大文字小文字を区別する正規表現により構築された境界で
-            分割されたstr の部分文字列です.
+            
+            分割された<varname>str</varname> の部分文字列です.
+            
         </para>
-        <para>パターンがn回現れる場合,
-            返される配列はn+1個の要素を有します.
+        
+        <para>
+            
+            パターンが<literal>n</literal>回現れる場合,
+            
+            返される配列は<literal>n+1</literal>個の要素を有します.
+            
         </para>
-        <para>例えば, パターンが1回も存在しなかった場合,
+        
+        <para>
+            
+            例えば, パターンが1回も存在しなかった場合,
+            
             1要素のみの配列が返されます.
-            もちろん,これはstrが空の場合も同じです.
+            
+            もちろん,これは<varname>str</varname>が空の場合も同じです.
+            
         </para>
-        <para>limitが設定された場合,返される配列には
-            最大limit個の要素が含まれ,
+        
+        <para>
+            
+            <varname>limit</varname>が設定された場合,返される配列には
+            
+            最大<varname>limit</varname>個の要素が含まれ,
+            
             その最後の要素には文字列の残り全体が含まれます.
+            
         </para>
+        
         <para>
-            <literal>strsplit(str, matrix_of_strings, limit)</literal> , str は
-            要素に分割されます.これにより,
+            
+            <code>strsplit(str, matrix_of_strings, limit)</code>は,
+            
+            <varname>str</varname>を任意の要素で分割します.
+            
+            これにより,
+            
             正規表現を知らないユーザが異なるセパレータで分割することが
+            
             できるようになります.
+            
         </para>
+        
         <para>
-            <literal>strsplit()</literal> が第2の出力引数を指定してコールされた場合,
+            
+            <code>strsplit()</code>が第2の出力引数を指定してコールされた場合,
+            
             一致したセパレータの列ベクトルが返されます.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 S='strsplit splits a string into a vector of strings';
 strsplit(S,[15 25 30])
@@ -131,19 +249,42 @@ ind=strindex(S,' ')
 strsplit("abcdef2ghijkl3mnopqr6stuvw7xyz","/\d+/") 
 [r_1, r_2] = strsplit("abcdef2ghijkl3mnopqr6stuvw7xyz","/\d+/",2) 
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
+            <member>
+                
+                <link linkend="part"> part</link>
+                
+            </member>
+            
             <member>
+                
                 <link linkend="strcat"> strcat</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="tokens"> tokens</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="regexp"> regexp</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index 307e627..b7374af 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strspn" xml:lang="ja">
+    
     <refnamediv>
+        
         <refname>strspn</refname>
+        
         <refpurpose>文字列において指定した文字集合の幅を取得</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
-        <synopsis>res = strspn(str1,str2)</synopsis>
+        
+        <synopsis>res = strspn(str1, str2)</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>str1</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>str2</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>res</term>
+                
                 <listitem>
-                    <para>行列.</para>
+                    
+                    <para>文字列の行列.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>res = strspn(str1,str2)</literal> は,
-            str2に含まれる文字のみからなる
-            str1の先頭部分の長さを返します.
+            
+            <code>res = strspn(str1, str2)</code>は,
+            
+            <varname>str2</varname>に含まれる文字のみからなる
+            
+            <varname>str1</varname>の先頭部分の長さを返します.
+            
         </para>
-        <para>str1 はstr2と次元が同じで,もしくは,str1は文字列である必要があります. </para>
+        
+        <para>
+            
+            <varname>str1</varname>は<varname>str2</varname>と次元が同じ,
+            
+            もしくは,
+            
+            <varname>str2</varname>が1x1の文字列である必要があります. 
+            
+            どちらの場合でも,
+            
+            出力は<varname>str1</varname>と同じ次元となります.
+            
+        </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 i = strspn("129th","1234567890");
 mprintf ("The length of initial number is %d.\n",i);
 i = strspn(["129th","130th"],["1234567890","130t"])
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="strcspn">strcspn</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index f5b14ed..08b298c 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strstr" xml:lang="ja">
+    
     <refnamediv>
+        
         <refname>strstr</refname>
+        
         <refpurpose>部分文字列を取得</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
-        <synopsis>res = strstr(haystack,needle)</synopsis>
+        
+        <synopsis>res = strstr(haystack, needle)</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>haystack</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>needle</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>res</term>
+                
                 <listitem>
+                    
                     <para>文字列または文字列の行列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>res = strstr(haystack,needle)</literal> は
-            haystackの中でneedleが最初に現れる位置からhaystackの末尾までの
-            文字列行列を返します.haystackの部分が見つからない場合は
-            ''を返します.
+            
+            <code>res = strstr(haystack, needle)</code>は,
+            
+            <varname>haystack</varname>の中で<varname>needle</varname>が最初に現れる位置から
+            
+            <varname>haystack</varname>の末尾までの文字列行列を返します.
+            
+            <varname>haystack</varname>の部分が見つからない場合は
+            
+            <literal>''</literal>を返します.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 strstr('This is a simple string','simple')
 strstr('This is a simple string','sample')
 strstr(['This is a simple string','in scilab'],'is')
 strstr(['This is a sample string','in scilab'],['a','scilab'])
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="strrchr">strrchr</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="strchr">strchr</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index ae8b74b..f0605a7 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strsubst" xml:lang="ja">
+    
     <refnamediv>
+        
         <refname>strsubst</refname>
+        
         <refpurpose>文字列を他の文字列で置換する.</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
-        <synopsis>string_out=strsubst(string_in,searchStr,replaceStr)
-            string_out=strsubst(string_in,searchStr,replaceStr,[flag])
+        
+        <synopsis>
+            
+            string_out = strsubst(string_in, searchStr, replaceStr)
+            
+            string_out = strsubst(string_in, searchStr, replaceStr, [flag])
+            
         </synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>string_in</term>
+                
                 <listitem>
+                    
                     <para>
-                        文字列の行列. <literal>searchStr</literal>の存在を
+                        
+                        文字列の行列. <varname>searchStr</varname>の存在を
+                        
                         探す文字列
+                        
                     </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>searchStr</term>
+                
                 <listitem>
-                    <para>文字列.
-                        <literal>string</literal>の中で探す文字列.
+                    
+                    <para>
+                        
+                        文字列.
+                        
+                        <varname>string_in</varname>の中で探す文字列.
+                        
                     </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>replaceStr</term>
+                
                 <listitem>
+                    
                     <para>文字列. 置換する文字列.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>str_out</term>
+                
                 <listitem>
+                    
                     <para>
-                        文字列の行列. <literal>string</literal>の中の
-                        <literal>searchStr</literal>を
-                        <literal>replaceStr</literal>で置換した結果.
+                        
+                        文字列の行列. <varname>string_in</varname>の中の
+                        
+                        <varname>searchStr</varname>を
+                        
+                        <varname>replaceStr</varname>で置換した結果.
+                        
                     </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>flag</term>
+                
                 <listitem>
-                    <para>文字列  ("r" は正規表現)</para>
+                    
+                    <para>
+                        文字列  (正規表現の場合は<literal>"r"</literal>)
+                    </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>strsubst</literal> は,<literal>string</literal>の中に
-            存在する全ての<literal>searchStr</literal>を<literal>replaceStr</literal>で
+            
+            <function>strsubst</function>関数は,<varname>string_in</varname>の中に
+            
+            存在する全ての<varname>searchStr</varname>を<varname>replaceStr</varname>で
+            
             置換します.
+            
         </para>
-        <para>4番目のパラメータ "r"を使用する時, searchStr は
-            正規表現の文字列となります.
-            strsubstはこれをstringとマッチさせ,
+        
+        <para>
+            
+            4番目のパラメータ <literal>"r"</literal>を使用する時, 
+            
+            <varname>searchStr</varname> は正規表現の文字列となります.
+            
+            <function>strsubst</function>はこれを<varname>string_in</varname>とマッチさせ,
+            
             正規表現式の規則に基づき置換を行ないます.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 strsubst('SCI/demos/scicos','SCI','.')
 strsubst('SCI/demos/scicos','/',' ')
 strsubst('2' ,'/2(]*)?$\1/' ,'0','r')
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="string">string</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="strings">strings</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index b4615d3..419805d 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strtod" xml:lang="ja">
+    
     <refnamediv>
+        
         <refname>strtod</refname>
+        
         <refpurpose>文字列を倍精度実数に変換.</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
+        
         <synopsis>
+            
             d =  strtod(str [,decimalseparator])
+            
             [d, endstr] = strtod(str [,decimalseparator])
+            
         </synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
+        
         <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>str</term>
+                
                 <listitem>
+                    
                     <para>
+                        
                         文字列または文字列の行列
+                        
                     </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>decimalseparator</term>
+                
                 <listitem>
+                    
                     <para>
+                        
                         選択した10進数セパレータ: "." (デフォルト) または ",".
+                        
                     </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>d</term>
+                
                 <listitem>
+                    
                     <para>
+                        
                         実数または実数の行列
+                        
                     </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>endstr</term>
+                
                 <listitem>
+                    
                     <para>
+                        
                         文字列または文字列の行列 
+                        
                         (<varname>str</varname>の中で数値の後に続く文字).
+                        
                     </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>[d, endstr] = strtod(str)</literal> は,
+            
+            <code>[d, endstr] = strtod(str)</code> は,
+            
             文字列<varname>str</varname> を
+            
             パースし,その内容を浮動小数点数として解釈して,
+            
             その値を実数として返します.
+            
             <varname>str</varname>に数値が含まれていない場合,
+            
             <varname>d</varname> は <literal>Nan</literal>となります.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>注意</title>
+        
         <itemizedlist>
+            
             <listitem>
+                
                 <para>
+                    
                     この関数はWindowsとLinuxで動作が異なるstrtod C関数に基づきます.
+                    
                     実際, Windows では指数部にd または D を使用できますが,
+                    
                     16進数を使用することはできません.
+                    
                 </para>
+                
             </listitem>
+            
             <listitem>
+                
                 <para>
+                    
                     <literal>strtod("%inf")</literal> は <literal>Nan</literal>を
+                    
                     返すことに注意してください.
+                    
                 </para>
+                
             </listitem>
+            
         </itemizedlist>
+        
     </refsection>
+    
+    
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[
 strtod('123.556This is a sample real')
 strtod('123,556This is a sample real', ",")
@@ -99,25 +184,48 @@ strtod(['123.556This is a sample real','888.666 here'])
 [d,endstr] =strtod(['123.556This is a sample real','888.666 here'])
 [d,endstr] =strtod(['123.556This is a sample real','888,666 here'], ",")
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection>
+        
         <title>履歴</title>
+        
         <revhistory>
+            
             <revision>
+                
                 <revnumber>5.5.0</revnumber>
+                
                 <revremark>
+                    
                     新しいオプション入力: decimalseparator (SEP 97).
+                    
                 </revremark>
+                
             </revision>
+            
             <revision>
+                
                 <revnumber>5.4.1</revnumber>
+                
                 <revremark>
+                    
                     <varname>str</varname> に数値が含まれていない場合,
+                    
                     <varname>d</varname> は以前のバージョンのように
+                    
                     <literal>0</literal>ではなく,
+                    
                     <literal>Nan</literal>となります.
+                    
                 </revremark>
+                
             </revision>
+            
         </revhistory>
+        
     </refsection>
+    
 </refentry>
+
index 06b5262..1d71782 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="strtok">
+    
     <refnamediv>
+        
         <refname>strtok</refname>
+        
         <refpurpose>文字列をトークンに分割</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
-        <synopsis>res = strtok(str,delimiters)</synopsis>
+        
+        <synopsis>res = strtok(str, delimiters)</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>str</term>
+                
                 <listitem>
+                    
                     <para>文字列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>delimiters</term>
+                
                 <listitem>
+                    
                     <para>文字列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>res</term>
+                
                 <listitem>
+                    
                     <para>文字列</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>res = strtok(str,delimiters)</literal>
+            
+            <code>res = strtok(str, delimiters)</code>
+            
             この関数を連続してコールすることにより,
-            strをトークンに分割します.
-            トークンはデリミタの文字のどれかで区切られた連続する一連の文字です.
+            
+            <varname>str</varname>をトークンに分割します.
+            
+            トークンは<varname>delimiters</varname>の文字のどれかで
+            
+            区切られた連続する一連の文字です.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 TOKENS = [];
-token = strtok("A string of ,,tokens and some  more tokens"," ,");
+token = strtok("A string of ,,tokens and some  more tokens"," r,");
 TOKENS = [TOKENS,token];
 while( token <> '' )
-  token = strtok(" ,");
+  token = strtok(" r,");
   TOKENS = [TOKENS,token];
 end
 disp(TOKENS);
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection>
+        
         <title>参照o</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="strrchr">strrchr</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="strchr">strchr</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index 5ad1040..f45d59f 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="tokenpos">
+    
     <refnamediv>
+        
         <refname>tokenpos</refname>
-        <refpurpose>文字列の中のトークンの位置を返す.  </refpurpose>
+        
+        <refpurpose>文字列の中のトークンの位置を返す </refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
-        <synopsis>kdf=tokenpos(str [,delimiter])</synopsis>
+        
+        <synopsis>kdf = tokenpos(str [,delimiter])</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>str</term>
+                
                 <listitem>
+                    
                     <para>文字列. トークンを探す文字列.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>delimiter</term>
+                
                 <listitem>
+                    
                     <para>(オプション) 文字列または文字列のベクトル. トークンデリミタ.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>kdf</term>
+                
                 <listitem>
-                    <para>2列の行列で, 最初の列はトークン開始位置のインデックス,
-                        2列目はトークンの最後の文字のインデックスを出力します.
+                    
+                    <para>
+                        
+                        2列の行列で, 最初の列はトークン開始位置の添字,
+                        
+                        2列目はトークンの最後の文字の添字を出力します.
+                        
                     </para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>kdf=tokenpos(str [,delimiter]) </literal> は文字列
-            <literal>str</literal>に含まれるトークンを探します.
-            <literal>delimiter</literal> のデフォルト値は [" ",&lt;Tab&gt;]です.
-            ただし, &lt;Tab&gt; は <literal>ascii(9)</literal>を意味します. 
+            
+            <code>kdf = tokenpos(str [,delimiter])</code>は文字列
+            
+            <varname>str</varname>に含まれるトークンを探します.
+            
+            <varname>delimiter</varname> のデフォルト値は 
+            
+            <literal>[" ",&lt;Tab&gt;]</literal>です.
+            
+            ただし,  <literal>&lt;Tab&gt;</literal> は<code>ascii(9)</code>を意味します. 
+            
             この関数は各トークンが見つかった最初および最後の文字のインデックスを返します.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
-str='This is a character string';
-kdf=tokenpos(str)
-first=part(str,kdf(1,1):kdf(1,2))
+str = 'This is a character string';
+kdf = tokenpos(str)
+first = part(str, kdf(1,1):kdf(1,2))
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="strindex">strindex</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="tokens">tokens</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+
index ddf92c0..3c5e4c2 100644 (file)
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
+
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="tokens">
+    
     <refnamediv>
+        
         <refname>tokens</refname>
+        
         <refpurpose>文字列のトークンを返す.</refpurpose>
+        
     </refnamediv>
+    
     <refsynopsisdiv>
+        
         <title>呼び出し手順</title>
-        <synopsis>T=tokens(str [,delimiter])</synopsis>
+        
+        <synopsis>T = tokens(str [,delimiter])</synopsis>
+        
     </refsynopsisdiv>
+    
     <refsection>
-        <title>パラメータ</title>
+        
+        <title>引数</title>
+        
         <variablelist>
+            
             <varlistentry>
+                
                 <term>str</term>
+                
                 <listitem>
+                    
                     <para>文字列. トークンを探す文字列.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>delimiter</term>
+                
                 <listitem>
+                    
                     <para>(オプション) 文字または文字のベクトル. トークンデリミタ.</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
             <varlistentry>
+                
                 <term>T</term>
+                
                 <listitem>
+                    
                     <para>みつかったトークンの列ベクトル</para>
+                    
                 </listitem>
+                
             </varlistentry>
+            
         </variablelist>
+        
     </refsection>
+    
     <refsection>
+        
         <title>説明</title>
+        
         <para>
-            <literal>T=tokens(str [,delimiter]) </literal> は,
-            文字列<literal>str</literal>の中に含まれるトークンを探します.
-            <literal>delimiter</literal>のデフォルト値は [" ",&lt;Tab&gt;]です.
-            ただし, &lt;Tab&gt; は <literal>ascii(9)</literal>を意味します.
+            
+            <code>T = tokens(str [,delimiter]) </code> は,
+            
+            文字列<varname>str</varname>の中に含まれるトークンを探します.
+            
+            <varname>delimiter</varname>のデフォルト値は
+            
+            <literal>[" ",&lt;Tab&gt;]</literal>です.
+            
+            ただし, &lt;Tab&gt; は<code>ascii(9)</code>を意味します.
+            
         </para>
+        
     </refsection>
+    
     <refsection>
+        
         <title>例</title>
+        
         <programlisting role="example"><![CDATA[ 
 tokens('This is a character string')
 tokens('SCI/demos/scicos','/')
 tokens('y=a+b*2',['=','+','*'])
  ]]></programlisting>
+        
     </refsection>
+    
     <refsection role="see also">
+        
         <title>参照</title>
+        
         <simplelist type="inline">
+            
             <member>
+                
                 <link linkend="strindex">strindex</link>
+                
             </member>
+            
             <member>
+                
                 <link linkend="tokenpos">tokenpos</link>
+                
             </member>
+            
         </simplelist>
+        
     </refsection>
+    
 </refentry>
+