Kotlin文字列padEnd
padStart

padEnd文字列

indexOf

末尾にpadCharを埋めて指定した長さにします。

構文

str.padEnd(length, padChar?)