//ERDDAP/com.cohort.util/ScriptString2/lineContaining
lineContaining
[JVM]
open fun lineContaining(ar: Array<Any>, s: String): Int
This finds the first element in Object[] where the ar[i].toString value contains the substring s.
Return
the element number of ar which is equal to s (or -1 if not found)
Parameters
JVM
ar | the array of objects |
s | the String to be found |
[JVM]
open fun lineContaining(ar: Array<Any>, s: String, startAt: Int): Int
This finds the first element in Object[] (starting at element startAt) where the ar[i].toString value contains the substring s.