xo::backslash_escape (public)

 xo::backslash_escape char string

Defined in packages/xotcl-core/tcl/30-widget-procs.tcl

Prefix each occurrence of a character with a backslash.

Parameters:
char (required)
Character to escape.
string (required)
Text to process.
Returns:
The escaped text.

Partial Call Graph (max 5 caller/called nodes):
bgdelivery proc returnfile bgdelivery proc returnfile (public) xo::backslash_escape xo::backslash_escape bgdelivery proc returnfile->xo::backslash_escape xowiki::File instproc www-download xowiki::File instproc www-download (public) xowiki::File instproc www-download->xo::backslash_escape

Testcases:
No testcase defined.
Source code:
    return [string map [list $char \\$char] $string]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: