util::ns_set_pretty_print (private)

 util::ns_set_pretty_print [ -title title ] [ -prefix prefix ] set

Defined in packages/acs-tcl/tcl/utilities-procs.tcl

Return pretty printed version of an ns_set, in the style of HTTP request header fields.

Switches:
-title (optional)
title info for the full set
-prefix (optional, defaults to " ")
prefix string for every line (used e.g. for indenting)
Parameters:
set (required)
Returns:
multi-line string

Partial Call Graph (max 5 caller/called nodes):
%3 util::request_info util::request_info (public) util::ns_set_pretty_print util::ns_set_pretty_print util::request_info->util::ns_set_pretty_print util::split_location util::split_location (public) util::split_location->util::ns_set_pretty_print

Testcases:
No testcase defined.
Source code:
    set lines {}
    if {$title ne ""} {
        lappend lines $title
    }
    lappend lines {*}[lmap {k v} [ns_set array $set] {
        string cat $prefix $k ": " $v
    }]
    return [join $lines \n]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-tcl/tcl/utilities-procs.xql

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