953177dfe70860f5b69a2c5b7e8f0822472cd4f9
[scilab.git] / scilab / modules / fileio / help / ja_JP / path_filename / splitURL.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) - S/E - Sylvestre Ledru
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 xml:id="splitURL" xml:lang="ja"
16           xmlns="http://docbook.org/ns/docbook"
17           xmlns:xlink="http://www.w3.org/1999/xlink"
18           xmlns:svg="http://www.w3.org/2000/svg"
19           xmlns:ns3="http://www.w3.org/1999/xhtml"
20           xmlns:mml="http://www.w3.org/1998/Math/MathML"
21           xmlns:scilab="http://www.scilab.org"
22           xmlns:db="http://docbook.org/ns/docbook">
23     
24     
25     
26     <refnamediv>
27         
28         <refname>splitURL</refname>
29         
30         
31         
32         <refpurpose>URL (HTTP, HTTPS, FTP...) を分解</refpurpose>
33         
34     </refnamediv>
35     
36     
37     
38     <refsynopsisdiv>
39         
40         <title>呼び出し手順</title>
41         
42         
43         
44         <synopsis>[proto, server, path, query, username, port, fragment] = splitURL(URL);
45             
46         </synopsis>
47         
48     </refsynopsisdiv>
49     
50     
51     
52     <refsection>
53         
54         <title>引数</title>
55         
56         <variablelist>
57             
58             <varlistentry>
59                 
60                 <term>URL</term>
61                 
62                 <listitem>
63                     
64                     <para>文字列: URL. サポート/テスト済み: HTTP, HTTPS, FTP (IPv4 および IPv6)</para>
65                     
66                 </listitem>
67                 
68             </varlistentry>
69             
70             <varlistentry>
71                 
72                 <term>proto</term>
73                 
74                 <listitem>
75                     
76                     <para>
77                         
78                         文字列: プロトコル (例: <emphasis role="italic">http, ftp, 等</emphasis>)
79                         
80                     </para>
81                     
82                 </listitem>
83                 
84             </varlistentry>
85             
86             <varlistentry>
87                 
88                 <term>server</term>
89                 
90                 <listitem>
91                     
92                     <para>
93                         
94                         文字列: サーバー (例: <emphasis role="italic">www.scilab.org</emphasis>)
95                         
96                     </para>
97                     
98                 </listitem>
99                 
100             </varlistentry>
101             
102             <varlistentry>
103                 
104                 <term>path</term>
105                 
106                 <listitem>
107                     
108                     <para>
109                         
110                         文字列: パス (例: <emphasis role="italic">/products/scilab</emphasis>)
111                         
112                     </para>
113                     
114                 </listitem>
115                 
116             </varlistentry>
117             
118             <varlistentry>
119                 
120                 <term>query</term>
121                 
122                 <listitem>
123                     
124                     <para>
125                         
126                         文字列: クエリ (例: <emphasis role="italic">?SearchText=plot3d</emphasis>)
127                         
128                     </para>
129                     
130                 </listitem>
131                 
132             </varlistentry>
133             
134             <varlistentry>
135                 
136                 <term>username</term>
137                 
138                 <listitem>
139                     
140                     <para>
141                         
142                         文字列: ユーザ名 (例: <emphasis role="italic">username:pass</emphasis>)
143                         
144                     </para>
145                     
146                 </listitem>
147                 
148             </varlistentry>
149             
150             <varlistentry>
151                 
152                 <term>port</term>
153                 
154                 <listitem>
155                     
156                     <para>
157                         
158                         int: ポート (例: <emphasis role="italic">80</emphasis>)
159                         
160                     </para>
161                     
162                     <para>URLにポートが指定されない場合, 値は 0となることに注意してください.</para>
163                     
164                 </listitem>
165                 
166             </varlistentry>
167             
168             <varlistentry>
169                 
170                 <term>fragment</term>
171                 
172                 <listitem>
173                     
174                     <para>
175                         
176                         文字列: フラグメント (例: <emphasis role="italic">#chapter1</emphasis>)
177                         
178                     </para>
179                     
180                     <para>フラグメントはアンカーとも呼ばれ,
181                         
182                         HTML文書内にブックマークを作成する際に使用されます.
183                         
184                     </para>
185                     
186                 </listitem>
187                 
188             </varlistentry>
189             
190         </variablelist>
191         
192     </refsection>
193     
194     
195     
196     <refsection>
197         
198         <title>説明</title>
199         
200         
201         
202         <para>URLを要素毎に分解します. </para>
203         
204         
205         
206         <para>
207             
208             この関数は <ulink url="http://xmlsoft.org/html/libxml-uri.html#xmlParseURI">libxml2ライブラリ
209                 
210                 (特に, 関数 xmlParseURI)
211             </ulink>
212             に基づいています.
213             
214         </para>
215         
216         
217         
218     </refsection>
219     
220     
221     
222     <refsection>
223         
224         <title>例</title>
225         
226         
227         
228         <programlisting role="example">
229             
230             [proto, server, path, query, username, port, fragment] = splitURL("http://xmlsoft.org/html/libxml-uri.html#xmlParseURI")
231             
232             
233             
234             [proto, server, path] = splitURL("ftp://ftp.free.fr/pub/Distributions_Linux/debian/README")
235             
236             
237             
238             [a,b,c,d]=splitURL("http://www.scilab.org/content/search?SearchText=plot")
239             
240             
241             
242         </programlisting>
243         
244         <!-- 
245 // This example fails for now (probably a bug on evstr)
246 // Retrieve the content and execute it
247 [f,content]=getURL("http://fileexchange.scilab.org/toolboxes/161000/1.0/files/cshift.sci")
248 evstr(content);
249 M = grand(3,4,"uin",0,9);
250 cshift(M,1);
251 -->
252         
253         
254         
255     </refsection>
256     
257     
258     
259     <refsection role="see also">
260         
261         <title>参照</title>
262         
263         <simplelist type="inline">
264             
265             <member>
266                 
267                 <link linkend="getURL">getURL</link>
268                 
269             </member>
270             
271         </simplelist>
272         
273     </refsection>
274     
275     <refsection>
276         
277         <title>History</title>
278         
279         <revhistory>
280             
281             <revision>
282                 
283                 <revnumber>5.5.0</revnumber>
284                 
285                 <revremark>この関数はScilab 5.5.0で追加されました</revremark>
286                 
287             </revision>
288             
289         </revhistory>
290         
291     </refsection>
292     
293 </refentry>
294