contains_sub s sub returns true if the string s contains the sub-string sub
contains_sub s sub
s
sub
count_sub s sub returns how many times sub appears in s
count_sub s sub
sub_index s sub returns the first index of the sub-string sub in s, or -1 if not found
sub_index s sub
sub_indices s sub returns a list of all the indices where the sub-string sub appears in s
sub_indices s sub