padStart
Returns a char sequence with content of this char sequence padded at the beginning to the specified length with the specified character or space.
Since Kotlin
1.0Return
Returns a char sequence of length at least length consisting of this
char sequence prepended with padChar as many times as are necessary to reach that length.
Parameters
the desired string length.
the character to pad string with, if it has length less than the length specified. Space is used by default.
Samples
Pads the string to the specified length at the beginning with the specified character or space.
Since Kotlin
1.0Return
Returns a string of length at least length consisting of this
string prepended with padChar as many times as are necessary to reach that length.
Parameters
the desired string length.
the character to pad string with, if it has length less than the length specified. Space is used by default.