apidoc::search_on_webindex (private)

 apidoc::search_on_webindex [ -page page ] [ -host host ] \
    [ -root root ] [ -proc proc ]

Defined in packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl

Search for a matching link in the page and return the absolute link if found. Avoid in-page links (starting with "#")

Switches:
-page (optional)
HTML page
-host (optional)
for completing URLs starting with no "/"
-root (optional)
for completing URLs starting with a "/"
-proc (optional)
name of proc as used in link label

Partial Call Graph (max 5 caller/called nodes):
%3 apidoc::get_doc_url apidoc::get_doc_url (private) apidoc::search_on_webindex apidoc::search_on_webindex apidoc::get_doc_url->apidoc::search_on_webindex

Testcases:
No testcase defined.
Source code:
        set url ""
        if { [regexp "<a href= *\['\"\](\[^#\]\[^>\"'\]+)\[\"'\]\[^>\]*>$proc</a>"  $page match relative_url] } {
            if {[string match "/*" $relative_url]} {
                set url $host$relative_url
            } else {
                set url $root$relative_url
            }
        }
        return $url
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: