بنیادی مواد پر مہارت حاصل کریں

//ERDDAP/com.cohort.util/ScriptString2/indexOfChar

indexOfChar

[JVM]
open fun indexOfChar(s: String, car: Array<Char>, 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.

Parameters

JVM

sa string
carthe chars you want to find any of
fromIndexthe index number of the position to start the search