string->padTrailing
Pads the right side of a string.
Target
Signature
1string->padTrailing(tosize::integer, with::string= ?)Pads the right side of a string.
string->padTrailing is called with member syntax on a receiver value. string->padTrailing works with text values. Normalize input at boundaries, escape at output boundaries, and keep encoding calls close to the place where the encoded text is needed.
Parameters
tosize- Required value of type
integer. Supplytosizepositionally unless the signature shows a keyword form. with- Optional value of type
string. Supplywithpositionally unless the signature shows a keyword form.
Examples
Basic call
1'7'->padTrailing(3, '0')The example shows the receiver and result shape. In templates, apply escaping at the final output boundary.