pad_end(s: utf8, width: i64, pad: utf8) → utf8

Category: [strings](builtinsstrings)_

Right-pad a string with a fill pattern until it is width characters long.

ParameterTypeDescriptionRemarks
sutf8The string to pad.
widthi64The target character count.
padutf8The fill pattern (repeated / truncated as needed).
returnsutf8The padded string (unchanged if already wide enough).
wcl
pad_end("42", 5, "0")   // right-pad to width 5 → "42000"