Defined in
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
-
No testcase defined.
Source code:
set url [string trim $url]
set scheme {}
regexp -- {^([A-Za-z0-9+.-][A-Za-z0-9+.-]*):} $url dummy scheme
if {$scheme == {}} {
set scheme $defaultscheme
switch -- $scheme {
http - https - ftp {
set url //$url
}
}
}
if {[::info procs Split[string totitle $scheme]] == {}} {
error "unknown scheme '$scheme' in '$url'"
}
regsub -- "^${scheme}:" $url {} url
set parts(scheme) [string tolower $scheme]
array set parts [Split[string totitle $scheme] $url]
return [array get parts]
XQL Not present:Generic, PostgreSQL, Oracle