//ERDDAP/com.cohort.util/ScriptString2/indexOf
indexOf
[JVM]
open fun indexOf(iArray: Array<Int>, i: Int, fromIndex: Int): Int
Finds the first instance of i at or after fromIndex (0.. ) in iArray.
Return
The first instance of i. If not found, it returns -1.
Parameters
JVM
iArray |
i |
fromIndex |
[JVM]
open fun indexOf(iArray: Array<Int>, i: Int): Int
Finds the first instance of i in iArray.
Return
The first instance of i. If not found, it returns -1.
Parameters
JVM
iArray |
i |
[JVM]
open fun indexOf(cArray: Array<Char>, c: Char, fromIndex: Int): Int
Finds the first instance of c at or after fromIndex (0.. ) in cArray.
Return
The first instance of c. If not found, it returns -1.
Parameters
JVM
cArray |
c |
fromIndex |
[JVM]
open fun indexOf(cArray: Array<Char>, c: Char): Int
Finds the first instance of c in cArray.
Return
The first instance of c. If not found, it returns -1.
Parameters
JVM
cArray |
c |
[JVM]
open fun indexOf(s: String, car: String, fromIndex: Int): Int
This indexOf is a little different: it finds the first instance in s of any char in car.
Return
The first instance in s of any char in car. If not found, it returns -1.