module Substr:sig..end
Sub-Strings
val contains_sub : string -> string -> boolcontains_sub s sub returns true if the string s contains the sub-string sub.
val sub_index : string -> string -> intsub_index s sub returns the first index of the sub-string sub in s, or -1 if not found.
val count_sub : string -> string -> intcount_sub s sub returns how many times sub appears in s.
val sub_indices : string -> string -> int listsub_indices s sub returns a list of all the indices where the sub-string sub appears in s.