translation updated for string.
[scilab.git] / scilab / modules / string / help / ja_JP / strspn.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
5  * Copyright (C) INRIA - 
6  * 
7  * This file must be used under the terms of the CeCILL.
8  * This source file is licensed as described in the file COPYING, which
9  * you should have received as part of this distribution.  The terms
10  * are also available at    
11  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
12  *
13  -->
14
15 <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">
16     
17     <refnamediv>
18         
19         <refname>strspn</refname>
20         
21         <refpurpose>文字列において指定した文字集合の幅を取得</refpurpose>
22         
23     </refnamediv>
24     
25     <refsynopsisdiv>
26         
27         <title>呼び出し手順</title>
28         
29         <synopsis>res = strspn(str1, str2)</synopsis>
30         
31     </refsynopsisdiv>
32     
33     <refsection>
34         
35         <title>引数</title>
36         
37         <variablelist>
38             
39             <varlistentry>
40                 
41                 <term>str1</term>
42                 
43                 <listitem>
44                     
45                     <para>文字列または文字列の行列</para>
46                     
47                 </listitem>
48                 
49             </varlistentry>
50             
51             <varlistentry>
52                 
53                 <term>str2</term>
54                 
55                 <listitem>
56                     
57                     <para>文字列または文字列の行列</para>
58                     
59                 </listitem>
60                 
61             </varlistentry>
62             
63             <varlistentry>
64                 
65                 <term>res</term>
66                 
67                 <listitem>
68                     
69                     <para>文字列の行列.</para>
70                     
71                 </listitem>
72                 
73             </varlistentry>
74             
75         </variablelist>
76         
77     </refsection>
78     
79     <refsection>
80         
81         <title>説明</title>
82         
83         <para>
84             
85             <code>res = strspn(str1, str2)</code>は,
86             
87             <varname>str2</varname>に含まれる文字のみからなる
88             
89             <varname>str1</varname>の先頭部分の長さを返します.
90             
91         </para>
92         
93         <para>
94             
95             <varname>str1</varname>は<varname>str2</varname>と次元が同じ,
96             
97             もしくは,
98             
99             <varname>str2</varname>が1x1の文字列である必要があります. 
100             
101             どちらの場合でも,
102             
103             出力は<varname>str1</varname>と同じ次元となります.
104             
105         </para>
106         
107     </refsection>
108     
109     <refsection>
110         
111         <title>例</title>
112         
113         <programlisting role="example"><![CDATA[ 
114 i = strspn("129th","1234567890");
115 mprintf ("The length of initial number is %d.\n",i);
116 i = strspn(["129th","130th"],["1234567890","130t"])
117  ]]></programlisting>
118         
119     </refsection>
120     
121     <refsection role="see also">
122         
123         <title>参照</title>
124         
125         <simplelist type="inline">
126             
127             <member>
128                 
129                 <link linkend="strcspn">strcspn</link>
130                 
131             </member>
132             
133         </simplelist>
134         
135     </refsection>
136     
137 </refentry>
138