Index of values

C
contains_sub [Substr]

contains_sub s sub returns true if the string s contains the sub-string sub

count_sub [Substr]

count_sub s sub returns how many times sub appears in s

S
sub_index [Substr]

sub_index s sub returns the first index of the sub-string sub in s, or -1 if not found

sub_indices [Substr]

sub_indices s sub returns a list of all the indices where the sub-string sub appears in s