bm_host_url (public)

 bm_host_url complete_url

Defined in packages/bookmarks/tcl/bookmarks-procs.tcl

Takes a URL and returns the host portion of it (i.e., http://hostname.com/), which always contains a trailing slash. Returns empty string if complete_url wasn't parseable.

Parameters:
complete_url (required)

Partial Call Graph (max 5 caller/called nodes):
%3 packages/bookmarks/www/bookmark-add-one-2.tcl packages/bookmarks/ www/bookmark-add-one-2.tcl bm_host_url bm_host_url packages/bookmarks/www/bookmark-add-one-2.tcl->bm_host_url packages/bookmarks/www/bookmark-edit-2.tcl packages/bookmarks/ www/bookmark-edit-2.tcl packages/bookmarks/www/bookmark-edit-2.tcl->bm_host_url packages/bookmarks/www/bookmarks-import.tcl packages/bookmarks/ www/bookmarks-import.tcl packages/bookmarks/www/bookmarks-import.tcl->bm_host_url

Testcases:
No testcase defined.
Source code:
    if { [regexp {([^:\"]+://[^/]+)} $complete_url host_url] } {
    return "$host_url/"
    } else {
    return ""
    }
Generic XQL file:
packages/bookmarks/tcl/bookmarks-procs.xql

PostgreSQL XQL file:
packages/bookmarks/tcl/bookmarks-procs-postgresql.xql

Oracle XQL file:
packages/bookmarks/tcl/bookmarks-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: