lpad()
Description
This function pads a string on the left by inserting spaces or optionally
characters matching the one passed in c
until it
is the same length as the value passed in n
. If
the string is longer than n
, it will be truncated
from the right to the size passed in n
.
Prototype
lpad
(
string
,
integer s
,
string n
)
c
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
s | None | string | |
n | None | integer | |
c | | string |