//ERDDAP/com.cohort.util/ScriptString2/countAll
countAll
[JVM]
open fun countAll(s: String, findS: String): Int
This counts all occurrences of findS in s. if (s == null || findS == null || findS.length() == 0) return 0;
Parameters
JVM
s | the source string |
findS | the string to be searched for |
[JVM]
open fun countAll(s: String, findS: Char): Int
This counts all occurrences of findS in s. if (s == null || findS == null || findS.length() == 0) return 0;
Parameters
JVM
s | the source string |
findS | the char to be searched for |