ข้ามไปยังเนื้อหาหลัก

//ERDDAP/com.cohort.util/ScriptString2/combineSpaces

combineSpaces

[JVM]
open fun combineSpaces(s: String): String

Returns a string where all cases of more than one space are replaced by one space. The string is also trim'd to remove leading and trailing spaces. Also, spaces after { or ( and before ) or } will be removed.

Return

s, but with the spaces combined (or null if s is null)

Parameters

JVM

s