f5b14edc35330eddaedaadc14f5754acee98ea2a
[scilab.git] / scilab / modules / string / help / ja_JP / strstr.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) INRIA - 
5  * 
6  * This file must be used under the terms of the CeCILL.
7  * This source file is licensed as described in the file COPYING, which
8  * you should have received as part of this distribution.  The terms
9  * are also available at    
10  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
11  *
12  -->
13 <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">
14     <refnamediv>
15         <refname>strstr</refname>
16         <refpurpose>部分文字列を取得</refpurpose>
17     </refnamediv>
18     <refsynopsisdiv>
19         <title>呼び出し手順</title>
20         <synopsis>res = strstr(haystack,needle)</synopsis>
21     </refsynopsisdiv>
22     <refsection>
23         <title>パラメータ</title>
24         <variablelist>
25             <varlistentry>
26                 <term>haystack</term>
27                 <listitem>
28                     <para>文字列または文字列の行列</para>
29                 </listitem>
30             </varlistentry>
31             <varlistentry>
32                 <term>needle</term>
33                 <listitem>
34                     <para>文字列または文字列の行列</para>
35                 </listitem>
36             </varlistentry>
37             <varlistentry>
38                 <term>res</term>
39                 <listitem>
40                     <para>文字列または文字列の行列</para>
41                 </listitem>
42             </varlistentry>
43         </variablelist>
44     </refsection>
45     <refsection>
46         <title>説明</title>
47         <para>
48             <literal>res = strstr(haystack,needle)</literal> は
49             haystackの中でneedleが最初に現れる位置からhaystackの末尾までの
50             文字列行列を返します.haystackの部分が見つからない場合は
51             ''を返します.
52         </para>
53     </refsection>
54     <refsection>
55         <title>例</title>
56         <programlisting role="example"><![CDATA[ 
57 strstr('This is a simple string','simple')
58 strstr('This is a simple string','sample')
59 strstr(['This is a simple string','in scilab'],'is')
60 strstr(['This is a sample string','in scilab'],['a','scilab'])
61  ]]></programlisting>
62     </refsection>
63     <refsection role="see also">
64         <title>参照</title>
65         <simplelist type="inline">
66             <member>
67                 <link linkend="strrchr">strrchr</link>
68             </member>
69             <member>
70                 <link linkend="strchr">strchr</link>
71             </member>
72         </simplelist>
73     </refsection>
74 </refentry>