padLeft

fun String.padLeft(len: Int, ch: Char): String

Deprecated

should use standard lib's 'padStart(len,ch)' to instead

Replace with

this.padStart(len, ch)

Author

尧 String左对齐,废弃的函数,应该使用标准库实现

See also