acs_mail_lite::message_interpolate (private, deprecated)

 acs_mail_lite::message_interpolate -values values -text text

Defined in packages/acs-mail-lite/tcl/acs-mail-lite-procs.tcl

Deprecated. Invoking this procedure generates a warning.

Interpolates a set of values into a string. This is directly copied from the bulk mail package. DEPRECATED: duplicated code from bulk-mail that could be replaced by "string map"

Switches:
-values (required)
a list of key, value pairs, each one consisting of a target string and the value it is to be replaced with.
-text (required)
the string that is to be interpolated
Returns:
the interpolated string
See Also:
  • "string map"

Partial Call Graph (max 5 caller/called nodes):
%3 ad_log_deprecated ad_log_deprecated (public) acs_mail_lite::message_interpolate acs_mail_lite::message_interpolate acs_mail_lite::message_interpolate->ad_log_deprecated

Testcases:
No testcase defined.
Source code:
ad_log_deprecated proc acs_mail_lite::message_interpolate
        foreach pair $values {
            regsub -all -- [lindex $pair 0] $text [lindex $pair 1] text
        }
        return $text
Generic XQL file:
packages/acs-mail-lite/tcl/acs-mail-lite-procs.xql

PostgreSQL XQL file:
packages/acs-mail-lite/tcl/acs-mail-lite-procs-postgresql.xql

Oracle XQL file:
packages/acs-mail-lite/tcl/acs-mail-lite-procs-oracle.xql

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