e784973bc113c3fb48682add259dcc9c8632de40
[scilab.git] / scilab / modules / string / help / ja_JP / strcmp.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="strcmp" xml:lang="ja">
14     <refnamediv>
15         <refname>strcmp</refname>
16         <refpurpose>文字列を比較</refpurpose>
17     </refnamediv>
18     <refsynopsisdiv>
19         <title>呼び出し手順</title>
20         <synopsis>res = strcmp(string_one,string_two,[,'i'])</synopsis>
21     </refsynopsisdiv>
22     <refsection>
23         <title>パラメータ</title>
24         <variablelist>
25             <varlistentry>
26                 <term>string_one</term>
27                 <listitem>
28                     <para>文字列または文字列の行列</para>
29                 </listitem>
30             </varlistentry>
31             <varlistentry>
32                 <term>string_two</term>
33                 <listitem>
34                     <para>文字列または文字列の行列</para>
35                 </listitem>
36             </varlistentry>
37             <varlistentry>
38                 <term>'i'</term>
39                 <listitem>
40                     <para>stricmp (大文字小文字に依存)を使用するためのパラメータ, デフォルト値は
41                         's'
42                     </para>
43                 </listitem>
44             </varlistentry>
45             <varlistentry>
46                 <term>res</term>
47                 <listitem>
48                     <para>行列.</para>
49                 </listitem>
50             </varlistentry>
51         </variablelist>
52     </refsection>
53     <refsection>
54         <title>説明</title>
55         <para>
56             <literal>res = strcmp(string_one,string_two)</literal> は
57             文字列の間の関係を示す整数値を返します.
58         </para>
59         <para>ゼロより大きい値は,一致しない最初の文字について,
60             <literal>string_one</literal>の方が
61             <literal>string_two</literal>よりも大きな値を有している
62             ことを示します.
63         </para>
64         <para>ゼロよりも小さな値はその逆であることを示します.</para>
65     </refsection>
66     <refsection>
67         <title>例</title>
68         <programlisting role="example"><![CDATA[ 
69 TXT1 = ['scilab','SciLab';'Strcmp','STRcmp'];
70 TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP'];
71 strcmp(TXT1,TXT2)
72 strcmp(TXT1,'scilab')
73 strcmp(TXT1,'SciLab')
74 strcmp(TXT1,TXT2,'i')
75  ]]></programlisting>
76     </refsection>
77     <refsection role="see also">
78         <title>参照</title>
79         <simplelist type="inline">
80             <member>
81                 <link linkend="strcat">strcat</link>
82             </member>
83             <member>
84                 <link linkend="strcmpi">strcmpi</link>
85             </member>
86         </simplelist>
87     </refsection>
88 </refentry>