Text Function that counts the occurrences of a substring inside a string
* str
|
string
|
|
the string to be counted
|
* delimiter
|
string
|
|
the separator to be counted
|
.NET Framework, Core & Mono C#
int count = MvFunctions.LkCount(str, delimiter);
|
.NET Framework, Core & Mono VB
Dim count As Integer = MvFunctions.LkCount(str, delimiter)
|
Java
int count = MvFunctions.LkCount(str, delimiter);
|
C
int count = LkCount(str, delimiter);
|