//ERDDAP/com.cohort.util/ScriptString2/findNth
findNth
[JVM]
open fun findNth(s: String, findS: Char, nth: Int): Int
This returns the index of the nth occurrence of findS in s. If s == null, or "", or nth <0, or nth occurence not found, return -1. If s.length()==0 or nth==0, return -1;
Return
This returns the index of the nth occurrence of findS in s.
Parameters
JVM
s | the source string |
findS | the char to be searched for |
nth | 1+ |