मुख्य सामग्री पर जाएं

//ERDDAP/com.cohort.util/ScriptString2/substitute

substitute

[JVM]
open fun substitute(msg: String, s0: String, s1: String, s2: String): String

This replaces "{0}", "{1}", and "{2}" in msg with s0, s1, s2.

Return

the modified msg

Parameters

JVM

msga string which may contain "{0}", "{1}", and/or "{2}".
s0the first substitution string. If null, that substitution won't be attempted.
s1the second substitution string. If null, that substitution won't be attempted.
s2the third substitution string. If null, that substitution won't be attempted.