doc_adp_quote_tcl_string (private)

 doc_adp_quote_tcl_string string

Defined in packages/acs-tcl/tcl/adp-parser-procs.tcl

Turns literal text into a string which can be used as a Tcl argument. Quotes special Tcl characters and newlines.

Parameters:
string (required)

Partial Call Graph (max 5 caller/called nodes):
%3 doc_adp_compile doc_adp_compile (public) doc_adp_quote_tcl_string doc_adp_quote_tcl_string doc_adp_compile->doc_adp_quote_tcl_string doc_adp_flush_text_buffer doc_adp_flush_text_buffer (private) doc_adp_flush_text_buffer->doc_adp_quote_tcl_string

Testcases:
No testcase defined.
Source code:
    regsub -all -- {([\{\}\[\]\$\"\\])} $string {\\\1} string
    regsub -all -- {\n} $string {\\n} string
    return "\"$string\""
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: