Function: tramp-gvfs-url-host
tramp-gvfs-url-host is a byte-compiled function defined in
tramp-gvfs.el.gz.
Signature
(tramp-gvfs-url-host URL)
Documentation
Return the host name part of URL, a string.
We cannot use url-host, because url-generic-parse-url returns
a downcased host name only.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-gvfs.el.gz
(defun tramp-gvfs-url-host (url)
"Return the host name part of URL, a string.
We cannot use `url-host', because `url-generic-parse-url' returns
a downcased host name only."
(and (stringp url)
(string-match (rx bol (+ alnum) "://" (group (+ (not (any "/:"))))) url)
(match-string 1 url)))