Головна

//ERDDAP/com.cohort.util/ScriptString2/caseInsensitiveIndexOf

caseInsensitiveIndexOf

[JVM]
open fun caseInsensitiveIndexOf(ar: Array<Any>, s: String): Int

This finds the first element in Object[] where ar[i].toString().toLowerCase() equals to s.toLowerCase(). This could have been called indexOfIgnoreCase().

Return

the element number of ar which is equal to s (or -1 if s is null or not found)

Parameters

JVM

arthe array of Objects
sthe String to be found