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):
- 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