Skip to content

Wonkey types string padleft

wonkey:wonkey.types.String.PadLeft

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

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

Returns a new string of a specified length in which the beginning 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).