Passer au contenu principal

//ERDDAP/com.cohort.util/ScriptString2/split

split

[JVM]
open fun split(s: String, separator: Char): Array<String>

This splits the string at the specified character. The substrings are trim'd. A missing final string is treated as "" (not discarded as with String.split).

Return

a String[] with the strings (not canonical). s=null returns null. s="" returns String[1]{""}.

Parameters

JVM

sa string with 0 or more separator chatacters
separator