translation updated for string.
[scilab.git] / scilab / modules / string / help / ja_JP / strcmp.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="strcmp" xml:lang="ja">
16     
17     <refnamediv>
18         
19         <refname>strcmp</refname>
20         
21         <refpurpose>文字列を比較</refpurpose>
22         
23     </refnamediv>
24     
25     <refsynopsisdiv>
26         
27         <title>呼び出し手順</title>
28         
29         <synopsis>res = strcmp(string_one, string_two, [,'i'])</synopsis>
30         
31     </refsynopsisdiv>
32     
33     <refsection>
34         
35         <title>引数</title>
36         
37         <variablelist>
38             
39             <varlistentry>
40                 
41                 <term>string_one</term>
42                 
43                 <listitem>
44                     
45                     <para>文字列または文字列の行列</para>
46                     
47                 </listitem>
48                 
49             </varlistentry>
50             
51             <varlistentry>
52                 
53                 <term>string_two</term>
54                 
55                 <listitem>
56                     
57                     <para>文字列または文字列の行列</para>
58                     
59                 </listitem>
60                 
61             </varlistentry>
62             
63             <varlistentry>
64                 
65                 <term>'i'</term>
66                 
67                 <listitem>
68                     
69                     <para>
70                         
71                         <function>strcmpi</function>
72                         
73                         (大文字小文字に依存)を使用するためのパラメータ, デフォルト値は
74                         
75                         <literal>'s'</literal>.
76                         
77                     </para>
78                     
79                 </listitem>
80                 
81             </varlistentry>
82             
83             <varlistentry>
84                 
85                 <term>res</term>
86                 
87                 <listitem>
88                     
89                     <para>整数の行列.</para>
90                     
91                 </listitem>
92                 
93             </varlistentry>
94             
95         </variablelist>
96         
97     </refsection>
98     
99     <refsection>
100         
101         <title>説明</title>
102         
103         <para>
104             
105             <code>res = strcmp(string_one, string_two)</code>
106             
107             (または<code>res = strcmp(string_one, string_two, 's')</code>)は,
108             
109             文字列の間の関係(辞書順)を示す整数値を返します.
110             
111         </para>
112         
113         <para>
114             
115             ゼロより大きい値は,一致しない最初の文字について,
116             
117             <varname>string_one</varname>の方が
118             
119             <varname>string_two</varname>よりも大きな値を有している
120             
121             ことを示します.
122             
123         </para>
124         
125         <para>
126             
127             <code>res = strcmp(string_one, string_two, 'i')</code>は,
128             
129             <varname>string_one</varname> が
130             
131             <varname>string_two</varname> (大文字小文字を区別しません) 
132             
133             に等しい場合に<literal>0</literal>を返し,
134             
135             <literal>1</literal>はその逆を示します.
136             
137         </para>
138         
139     </refsection>
140     
141     <refsection>
142         
143         <title>例</title>
144         
145         <programlisting role="example"><![CDATA[ 
146 TXT1 = ['scilab','SciLab';'Strcmp','STRcmp'];
147 TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP'];
148 strcmp(TXT1,TXT2)
149 strcmp(TXT1,'scilab')
150 strcmp(TXT1,'SciLab')
151 strcmp(TXT1,TXT2,'i')
152  ]]></programlisting>
153         
154     </refsection>
155     
156     <refsection role="see also">
157         
158         <title>参照</title>
159         
160         <simplelist type="inline">
161             
162             <member>
163                 
164                 <link linkend="strcat">strcat</link>
165                 
166             </member>
167             
168             <member>
169                 
170                 <link linkend="strcmpi">strcmpi</link>
171                 
172             </member>
173             
174         </simplelist>
175         
176     </refsection>
177     
178 </refentry>
179