std-strcount | ![]() |
(std-strcount <substr> <str>) ;case sensitive
STD-STRCOUNT
returns the number of occurances of the substring in the string or 0 if not.
(std-strcount "Test" "Te") => 1 (std-strcount "1Test1" "1") => 2 (std-strcount "Test" "t") => 0
str, substr: strings
A positive integer number.
None.
(std-require 'STDSTR)
Defined in STDSTR
#- SMALL