std-strcount


Synopsis

(std-strcount <substr> <str>) ;case sensitive

Description

STD-STRCOUNT returns the number of occurances of the substring in the string or 0 if not.

Examples

(std-strcount "Test" "Te")   => 1
(std-strcount "1Test1" "1")  => 2
(std-strcount "Test" "t")    => 0

Arguments

str, substr: strings

Return Value

A positive integer number.

Side Effects

None.

Module

(std-require 'STDSTR)

Defined in STDSTR

#- SMALL