translation updated for string.
[scilab.git] / scilab / modules / string / help / ja_JP / strstr.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="strstr" xml:lang="ja">
16     
17     <refnamediv>
18         
19         <refname>strstr</refname>
20         
21         <refpurpose>部分文字列を取得</refpurpose>
22         
23     </refnamediv>
24     
25     <refsynopsisdiv>
26         
27         <title>呼び出し手順</title>
28         
29         <synopsis>res = strstr(haystack, needle)</synopsis>
30         
31     </refsynopsisdiv>
32     
33     <refsection>
34         
35         <title>引数</title>
36         
37         <variablelist>
38             
39             <varlistentry>
40                 
41                 <term>haystack</term>
42                 
43                 <listitem>
44                     
45                     <para>文字列または文字列の行列</para>
46                     
47                 </listitem>
48                 
49             </varlistentry>
50             
51             <varlistentry>
52                 
53                 <term>needle</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 = strstr(haystack, needle)</code>は,
86             
87             <varname>haystack</varname>の中で<varname>needle</varname>が最初に現れる位置から
88             
89             <varname>haystack</varname>の末尾までの文字列行列を返します.
90             
91             <varname>haystack</varname>の部分が見つからない場合は
92             
93             <literal>''</literal>を返します.
94             
95         </para>
96         
97     </refsection>
98     
99     <refsection>
100         
101         <title>例</title>
102         
103         <programlisting role="example"><![CDATA[ 
104 strstr('This is a simple string','simple')
105 strstr('This is a simple string','sample')
106 strstr(['This is a simple string','in scilab'],'is')
107 strstr(['This is a sample string','in scilab'],['a','scilab'])
108  ]]></programlisting>
109         
110     </refsection>
111     
112     <refsection role="see also">
113         
114         <title>参照</title>
115         
116         <simplelist type="inline">
117             
118             <member>
119                 
120                 <link linkend="strrchr">strrchr</link>
121                 
122             </member>
123             
124             <member>
125                 
126                 <link linkend="strchr">strchr</link>
127                 
128             </member>
129             
130         </simplelist>
131         
132     </refsection>
133     
134 </refentry>
135