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