api_proc_format_switch (private)

 api_proc_format_switch xotclArgs flags switch

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

Parameters:
xotclArgs (required)
flags (required)
switch (required)

Partial Call Graph (max 5 caller/called nodes):
%3 api_proc_documentation api_proc_documentation (public) api_proc_format_switch api_proc_format_switch api_proc_documentation->api_proc_format_switch

Testcases:
No testcase defined.
Source code:
    if {$xotclArgs} {
        if {"boolean" in $flags} {
            set value "<i>on|off</i> "
        } elseif {"switch" in $flags} {
            set value ""
        } else {
            set value "</i>$switch</i> "
        }
        if {"required" in $flags} {
            set result "-$switch $value"
        } else {
            set result "\[ -$switch $value\]"
        }
    } else {
        if {"boolean" in $flags} {
            set result "\[ -$switch \]"
        } elseif {"required" in $flags} {
            set result "-$switch <i>$switch</i>"
        } else {
            set result "\[ -$switch <i>$switch</i> \]"
        }
    }
    return $result
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: