text module

text::pad_left

Pad a string on the left to a specified length.

Syntax

RQL

Parameters

NameTypeDescription
valueUtf8The string to pad.
lengthIntegerThe desired total length of the resulting string.
pad_charUtf8The character to use for padding.

Return Value

Returns a Utf8 padded on the left to the specified length.

Examples

$ Pad string on the left
$ ctrl+enter to run

Related Functions