pad

sb.pad(string, integer, string)
Pads the string for a another string until arriving a total length:

sb.pad('3',3,'0')
-> "003"
sb.pad('3',3,'foo')
-> "fo3"
sb.pad('3',33,'foo')
->"foofoofoofoofoofoofoofoofoofoofo3"

results matching ""

    No results matching ""