Skip to content

Wonkey types string padright

wonkey:wonkey.types.String.PadRight

Method PadRight:String( width:Int )#
Method PadRight:String( width:Int,ch:String )#

Returns a new string of a specified length in which the end of the current string.

Returns a new string of a specified length in which the end of the current string is padded with spaces or with a specified character.

Parameters
width width The number of characters in the resulting string, equal to the number of original characters plus any additional padding characters.
ch ch A padding character (first character only).