본문 바로가기

//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

sthe source string
findSthe 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

sthe source string
findSthe char to be searched for