Головна

//ERDDAP/com.cohort.util/ScriptString2/replaceAllIgnoreCase

replaceAllIgnoreCase

[JVM]
open fun replaceAllIgnoreCase(s: String, oldS: String, newS: String): String

Returns a string where all occurences of oldS have been replaced with newS. If oldS occurs inside newS, it won't be replaced recursively (obviously). When finding oldS in s, their case is irrelevant.

Return

a modified version of s, with newS in place of all the olds. throws RuntimeException if s is null.

Parameters

JVM

sthe main string
oldSthe string to be searched for
newSthe string to replace oldS