Přeskočit na hlavní obsah

//ERDDAP/com.cohort.util/ScriptString2/left

left

[JVM]
open fun left(s: String, length: Int): String

Returns a String 'length' long, with 's' left-justified (using spaces as the added characters) within the resulting String. If s is already longer, then there will be no change.

Return

's' left-justified to make the result 'length' long.

Parameters

JVM

sis the string to be left-justified.
lengthis desired length of the resulting string.