2015-06-11 12:02:27 +10:00
{
2015-09-27 01:52:20 +02:00
"name": "lpad",
2015-09-20 17:12:43 +02:00
"type": "function",
2020-07-02 01:46:48 +01:00
"groups": ["String"],
2018-01-09 18:49:31 +01:00
"description": "Returns a string padded on the left to the specified width, using a fill character. If the target width is smaller than the string's length, the string is truncated.",
2022-01-07 08:33:29 -05:00
"arguments": [{
"arg": "string",
"description": "string to pad"
}, {
"arg": "width",
"description": "length of new string"
}, {
"arg": "fill",
"description": "character to pad the remaining space with"
}],
"examples": [{
"expression": "lpad('Hello', 10, 'x')",
"returns": "'xxxxxHello'"
}, {
"expression": "lpad('Hello', 3, 'x')",
"returns": "'Hel'"
}],
"tags": ["length", "padded", "width", "truncated", "specified", "target", "fill", "left", "character", "smaller"]
2015-06-11 12:02:27 +10:00
}