rpad#
- swordfish.function.rpad()#
Pad the right-side of a string with a specific set of characters.
- Parameters:
str (Constant) – A string scalar or vector. It is the string to pad characters to (the right-hand side).
length (Constant) – A positive integer indicating the number of characters to return. If length is smaller than the length of str, the rpad function will truncate str to the size of length.
pattern (Constant, optional) – string scalar. It is the string that will be padded to the right-hand side of str. If it is unspecified, the rpad function will pad spaces to the right-side of str.