मुख्य सामग्री पर जाएं

//ERDDAP/com.cohort.util/ScriptString2/whichWord

whichWord

[JVM]
open fun whichWord(longerString: String, words: Array<String>): Int

This tries to find the first one of the words in the longerString. This is case-sensitive.

Return

index of the matching word (or -1 if no match or other trouble)