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