translation updated for string.
[scilab.git] / scilab / modules / string / help / ja_JP / char.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) 2008 - INRIA - Farid BELAHCENE
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: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="char" xml:lang="ja">
16     
17     <refnamediv>
18         
19         <refname>char</refname>
20         
21         <refpurpose>char 関数</refpurpose>
22         
23     </refnamediv>
24     
25     <refsynopsisdiv>
26         
27         <title>呼び出し手順</title>
28         
29         <synopsis>
30             
31             y = char(x)
32             
33             y = char(st1, st2, st3,....)
34             
35         </synopsis>
36         
37     </refsynopsisdiv>
38     
39     <refsection>
40         
41         <title>引数</title>
42         
43         <variablelist>
44             
45             <varlistentry>
46                 
47                 <term>x</term>
48                 
49                 <listitem>
50                     
51                     <para>文字列配列のセル, またはアスキーコードの配列</para>
52                     
53                 </listitem>
54                 
55             </varlistentry>
56             
57             <varlistentry>
58                 
59                 <term>st1,st2,st3</term>
60                 
61                 <listitem>
62                     
63                     <para>文字列配列</para>
64                     
65                 </listitem>
66                 
67             </varlistentry>
68             
69             <varlistentry>
70                 
71                 <term>y:</term>
72                 
73                 <listitem>
74                     
75                     <para>文字列(列)ベクトル</para>
76                     
77                 </listitem>
78                 
79             </varlistentry>
80             
81         </variablelist>
82         
83     </refsection>
84     
85     <refsection>
86         
87         <title>説明</title>
88         
89         <para>
90             
91             <emphasis role="bold">入力引数が一つの場合  :</emphasis>
92             
93         </para>
94         
95         <para>
96             
97             文字列配列<varname>x</varname>のセルを指定すると, この関数は
98             
99             文字列セルの要素を行とする文字列ベクトル <varname>y</varname>
100             
101             を返します.
102             
103         </para>
104         
105         <para>
106             
107             アスキーコード<varname>x</varname>の配列を指定すると,
108             
109             この関数はそのアスキーコードに対応する文字列の配列 <varname>y</varname> 
110             
111             を返します.
112             
113             <varname>x</varname>の次元が <literal>[n1, n2, n3, n4,...]</literal>の場合,
114             
115             返り値は2番目の次元以外は入力値と同じ大きさを有します.
116             
117             すなわち,<varname>y</varname>の次元は,
118             
119             <literal>[n1, n3, n4,...]</literal>となります.
120             
121         </para>
122         
123         <para>
124             
125             <emphasis role="bold">入力引数が1より多い場合 :</emphasis>
126             
127         </para>
128         
129         <para>
130             
131             文字列配列
132             
133             <literal>st1,st2,st3,...</literal>を指定すると, この関数は,
134             
135             <literal>st1,st2,st3,...</literal>を結合した要素が行となる
136             
137             文字列のベクトルを返します.
138             
139             ベクトル <varname>y</varname> においては,
140             
141             文字列<literal>sti</literal>の末尾を空白で埋めることにより,
142             
143             <literal>sti</literal>の最長のものと同じ長さにしています.
144             
145         </para>
146         
147     </refsection>
148     
149     <refsection>
150         
151         <title>例</title>
152         
153         <programlisting role="example"><![CDATA[ 
154 //Example with a hypermatrix of ASCII codes :
155 x=hypermat([4,2,3],61:84);
156 y=char(x)
157 size(x)
158 size(y)
159 //Example with more than one argument :
160 st1="zeros";
161 st2=["one","two"];
162 st3=["three"];
163 y=char(st1,st2,st3)
164 size(y)
165 //all strings rows are completed by 'blanks' to have the same length : 6
166 length(y)
167  ]]></programlisting>
168         
169     </refsection>
170     
171     <refsection role="see also">
172         
173         <title>参照</title>
174         
175         <simplelist type="inline">
176             
177             <member>
178                 
179                 <link linkend="ascii">ascii</link>
180                 
181             </member>
182             
183             <member>
184                 
185                 <link linkend="asciimat">asciimat</link>
186                 
187             </member>
188             
189         </simplelist>
190         
191     </refsection>
192     
193 </refentry>
194