template::util::leadingPad (public, deprecated)

 template::util::leadingPad string size

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

Deprecated. Invoking this procedure generates a warning.

Pad a string with leading zeros Deprecated: please use the new and more general 'ad_pad'.

Parameters:
string (required)
size (required)
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 ad_log_deprecated ad_log_deprecated (public) template::util::leadingPad template::util::leadingPad template::util::leadingPad->ad_log_deprecated

Testcases:
No testcase defined.
Source code:
ad_log_deprecated proc template::util::leadingPad
    if {$string eq ""} {
        return ""
    }

    set ret [string repeat "0" [expr {$size - [string length $string]}]]
    append ret $string
    return $ret
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: