template::adp_quote_chunk (private)

 template::adp_quote_chunk chunk_var_name quoted_var_name

Defined in packages/acs-templating/tcl/parse-procs.tcl

Quotes (precedes by backslash) all square brackets, curly braces, double quotes, backslashes, and dollar signs in a chunk of adp.

Parameters:
chunk_var_name (required)
The name of the variable to quote
quoted_var_name (required)
The name of the variable to put the quoted result in
Author:
Peter Marklund <peter@collaboraid.biz>
Created:
2002-10-16

Partial Call Graph (max 5 caller/called nodes):
%3 template::adp_compile_chunk template::adp_compile_chunk (public) template::adp_quote_chunk template::adp_quote_chunk template::adp_compile_chunk->template::adp_quote_chunk template::adp_tag_init template::adp_tag_init (private) template::adp_tag_init->template::adp_quote_chunk

Testcases:
No testcase defined.
Source code:
    upvar $chunk_var_name chunk $quoted_var_name quoted

    regsub -all -- {[\]\[\{\}\"\\$]} $chunk {\\&} quoted
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: