translation updated for string.
[scilab.git] / scilab / modules / string / help / ja_JP / strsubst.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: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">
16     
17     <refnamediv>
18         
19         <refname>strsubst</refname>
20         
21         <refpurpose>文字列を他の文字列で置換する.</refpurpose>
22         
23     </refnamediv>
24     
25     <refsynopsisdiv>
26         
27         <title>呼び出し手順</title>
28         
29         <synopsis>
30             
31             string_out = strsubst(string_in, searchStr, replaceStr)
32             
33             string_out = strsubst(string_in, searchStr, replaceStr, [flag])
34             
35         </synopsis>
36         
37     </refsynopsisdiv>
38     
39     <refsection>
40         
41         <title>引数</title>
42         
43         <variablelist>
44             
45             <varlistentry>
46                 
47                 <term>string_in</term>
48                 
49                 <listitem>
50                     
51                     <para>
52                         
53                         文字列の行列. <varname>searchStr</varname>の存在を
54                         
55                         探す文字列
56                         
57                     </para>
58                     
59                 </listitem>
60                 
61             </varlistentry>
62             
63             <varlistentry>
64                 
65                 <term>searchStr</term>
66                 
67                 <listitem>
68                     
69                     <para>
70                         
71                         文字列.
72                         
73                         <varname>string_in</varname>の中で探す文字列.
74                         
75                     </para>
76                     
77                 </listitem>
78                 
79             </varlistentry>
80             
81             <varlistentry>
82                 
83                 <term>replaceStr</term>
84                 
85                 <listitem>
86                     
87                     <para>文字列. 置換する文字列.</para>
88                     
89                 </listitem>
90                 
91             </varlistentry>
92             
93             <varlistentry>
94                 
95                 <term>str_out</term>
96                 
97                 <listitem>
98                     
99                     <para>
100                         
101                         文字列の行列. <varname>string_in</varname>の中の
102                         
103                         <varname>searchStr</varname>を
104                         
105                         <varname>replaceStr</varname>で置換した結果.
106                         
107                     </para>
108                     
109                 </listitem>
110                 
111             </varlistentry>
112             
113             <varlistentry>
114                 
115                 <term>flag</term>
116                 
117                 <listitem>
118                     
119                     <para>
120                         文字列  (正規表現の場合は<literal>"r"</literal>)
121                     </para>
122                     
123                 </listitem>
124                 
125             </varlistentry>
126             
127         </variablelist>
128         
129     </refsection>
130     
131     <refsection>
132         
133         <title>説明</title>
134         
135         <para>
136             
137             <function>strsubst</function>関数は,<varname>string_in</varname>の中に
138             
139             存在する全ての<varname>searchStr</varname>を<varname>replaceStr</varname>で
140             
141             置換します.
142             
143         </para>
144         
145         <para>
146             
147             4番目のパラメータ <literal>"r"</literal>を使用する時, 
148             
149             <varname>searchStr</varname> は正規表現の文字列となります.
150             
151             <function>strsubst</function>はこれを<varname>string_in</varname>とマッチさせ,
152             
153             正規表現式の規則に基づき置換を行ないます.
154             
155         </para>
156         
157     </refsection>
158     
159     <refsection>
160         
161         <title>例</title>
162         
163         <programlisting role="example"><![CDATA[ 
164 strsubst('SCI/demos/scicos','SCI','.')
165 strsubst('SCI/demos/scicos','/',' ')
166 strsubst('2' ,'/2(]*)?$\1/' ,'0','r')
167  ]]></programlisting>
168         
169     </refsection>
170     
171     <refsection role="see also">
172         
173         <title>参照</title>
174         
175         <simplelist type="inline">
176             
177             <member>
178                 
179                 <link linkend="string">string</link>
180                 
181             </member>
182             
183             <member>
184                 
185                 <link linkend="strings">strings</link>
186                 
187             </member>
188             
189         </simplelist>
190         
191     </refsection>
192     
193 </refentry>
194