Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Scilabヘルプ >> Files : Input/Output functions > Paths - Filenames > splitURL

splitURL

URL (HTTP, HTTPS, FTP...) を分解

呼び出し手順

[proto, server, path, query, username, port, fragment] = splitURL(URL);

引数

URL

文字列: URL. サポート/テスト済み: HTTP, HTTPS, FTP (IPv4 および IPv6)

proto

文字列: プロトコル (例: http, ftp, 等)

server

文字列: サーバー (例: www.scilab.org)

path

文字列: パス (例: /products/scilab)

query

文字列: クエリ (例: ?SearchText=plot3d)

username

文字列: ユーザ名 (例: username:pass)

port

int: ポート (例: 80)

URLにポートが指定されない場合, 値は 0となることに注意してください.

fragment

文字列: フラグメント (例: #chapter1)

フラグメントはアンカーとも呼ばれ, HTML文書内にブックマークを作成する際に使用されます.

説明

URLを要素毎に分解します.

この関数は libxml2ライブラリ (特に, 関数 xmlParseURI) に基づいています.

[proto, server, path, query, username, port, fragment] = splitURL("http://xmlsoft.org/html/libxml-uri.html#xmlParseURI")
[proto, server, path] = splitURL("ftp://ftp.free.fr/pub/Distributions_Linux/debian/README")
[a,b,c,d]=splitURL("http://www.scilab.org/content/search?SearchText=plot")

参照

  • getURL — URL (HTTP, HTTPS, FTP...) をダウンロード

履歴

バージョン記述
5.5.0 この関数はScilab 5.5.0で追加されました
Report an issue
<< pathsep Paths - Filenames tempname >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 13:58:25 CEST 2014