ad_pad (public)
ad_pad [ -left ] [ -right ] string length padstring
Defined in packages/acs-tcl/tcl/text-html-procs.tcl
Tcl implementation of the pad string function found in many DBMSs. One of the directional flags -left or -right must be specified and will dictate whether this will be a lpad or a rpad.
- Switches:
- -left
(boolean) (optional)- text will be appended left of the original string.
- -right
(boolean) (optional)- text will be appended right of the original string.
- Parameters:
- string
length
padstring
- Returns:
- padded string
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- ad_pad