db10bc6fc52b6c63c13e1be0b763b3e3823a5315
[scilab.git] / scilab / modules / string / help / ja_JP / strcat.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:ns5="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="strcat" xml:lang="ja">
14     <refnamediv>
15         <refname>strcat</refname>
16         <refpurpose>文字列を結合する</refpurpose>
17     </refnamediv>
18     <refsynopsisdiv>
19         <title>呼び出し手順</title>
20         <synopsis>txt=strcat(vector_of_strings [,string_added])
21             txt=strcat(vector_of_strings [,string_added, ["flag"]])
22         </synopsis>
23     </refsynopsisdiv>
24     <refsection>
25         <title>パラメータ</title>
26         <variablelist>
27             <varlistentry>
28                 <term>vector_of_strings</term>
29                 <listitem>
30                     <para>文字列ベクトル</para>
31                 </listitem>
32             </varlistentry>
33             <varlistentry>
34                 <term>string_added</term>
35                 <listitem>
36                     <para>追加される文字列, デフォルト値は空の文字列
37                         <literal>""</literal>
38                     </para>
39                 </listitem>
40             </varlistentry>
41             <varlistentry>
42                 <term>txt</term>
43                 <listitem>
44                     <para>文字列</para>
45                 </listitem>
46             </varlistentry>
47             <varlistentry>
48                 <term>"flag"</term>
49                 <listitem>
50                     <para>文字列 ( "r" は行行列を返し, "c" は列行列を返します)</para>
51                 </listitem>
52             </varlistentry>
53         </variablelist>
54     </refsection>
55     <refsection>
56         <title>説明</title>
57         <para>
58             <literal>txt=strcat(vector_of_strings)</literal>は文字列を結合します
59             :
60             <literal>txt=vector_of_strings(1)+...+vector_of_strings(n)</literal>
61         </para>
62         <para>
63             <literal>txt=strcat(vector_of_strings,string_added)</literal>
64             は
65             <literal>txt=vector_of_strings(1)+string_added+...+string_added+vector_of_strings(n)</literal>を返します.
66         </para>
67         <para>
68             プラス記号の動作は同じです: <literal>"a"+"b"</literal> は
69             <literal>strcat(["a","b"])</literal>と同じです.
70         </para>
71         <para>
72             <literal>vector_of_strings</literal> の大きさが1の場合, 
73             <literal>txt=vector_of_strings(1)</literal>を返します.
74         </para>
75         <para>
76             <literal>strcat('A','B')</literal> は 'A' を返し,
77             <literal>strcat(['A','B'])</literal>のように 'AB'とはなりません.
78         </para>
79     </refsection>
80     <refsection>
81         <title>例</title>
82         <programlisting role="example"><![CDATA[ 
83 strcat(string(1:10),',')
84 strcat(["a","b"])
85 strcat(["a","b"],'|')
86 strcat('A')
87 strcat('A','B')
88 strcat(['A','B'])
89 strcat(['A','B'],'')
90 m =["a" "b" ; "c" "d"];
91 strcat(m, "r")
92 strcat(m, "", "r")
93 strcat(m, "", "c")
94  ]]></programlisting>
95     </refsection>
96     <refsection role="see also">
97         <title>参照</title>
98         <simplelist type="inline">
99             <member>
100                 <link linkend="string">string</link>
101             </member>
102             <member>
103                 <link linkend="strings">strings</link>
104             </member>
105         </simplelist>
106     </refsection>
107 </refentry>