translation updated for string.
[scilab.git] / scilab / modules / string / help / ja_JP / tokenpos.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: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">
16     
17     <refnamediv>
18         
19         <refname>tokenpos</refname>
20         
21         <refpurpose>文字列の中のトークンの位置を返す </refpurpose>
22         
23     </refnamediv>
24     
25     <refsynopsisdiv>
26         
27         <title>呼び出し手順</title>
28         
29         <synopsis>kdf = tokenpos(str [,delimiter])</synopsis>
30         
31     </refsynopsisdiv>
32     
33     <refsection>
34         
35         <title>引数</title>
36         
37         <variablelist>
38             
39             <varlistentry>
40                 
41                 <term>str</term>
42                 
43                 <listitem>
44                     
45                     <para>文字列. トークンを探す文字列.</para>
46                     
47                 </listitem>
48                 
49             </varlistentry>
50             
51             <varlistentry>
52                 
53                 <term>delimiter</term>
54                 
55                 <listitem>
56                     
57                     <para>(オプション) 文字列または文字列のベクトル. トークンデリミタ.</para>
58                     
59                 </listitem>
60                 
61             </varlistentry>
62             
63             <varlistentry>
64                 
65                 <term>kdf</term>
66                 
67                 <listitem>
68                     
69                     <para>
70                         
71                         2列の行列で, 最初の列はトークン開始位置の添字,
72                         
73                         2列目はトークンの最後の文字の添字を出力します.
74                         
75                     </para>
76                     
77                 </listitem>
78                 
79             </varlistentry>
80             
81         </variablelist>
82         
83     </refsection>
84     
85     <refsection>
86         
87         <title>説明</title>
88         
89         <para>
90             
91             <code>kdf = tokenpos(str [,delimiter])</code>は文字列
92             
93             <varname>str</varname>に含まれるトークンを探します.
94             
95             <varname>delimiter</varname> のデフォルト値は 
96             
97             <literal>[" ",&lt;Tab&gt;]</literal>です.
98             
99             ただし,  <literal>&lt;Tab&gt;</literal> は<code>ascii(9)</code>を意味します. 
100             
101             この関数は各トークンが見つかった最初および最後の文字のインデックスを返します.
102             
103         </para>
104         
105     </refsection>
106     
107     <refsection>
108         
109         <title>例</title>
110         
111         <programlisting role="example"><![CDATA[ 
112 str = 'This is a character string';
113 kdf = tokenpos(str)
114 first = part(str, kdf(1,1):kdf(1,2))
115  ]]></programlisting>
116         
117     </refsection>
118     
119     <refsection role="see also">
120         
121         <title>参照</title>
122         
123         <simplelist type="inline">
124             
125             <member>
126                 
127                 <link linkend="strindex">strindex</link>
128                 
129             </member>
130             
131             <member>
132                 
133                 <link linkend="tokens">tokens</link>
134                 
135             </member>
136             
137         </simplelist>
138         
139     </refsection>
140     
141 </refentry>
142