module Matching:sig..end
typeresult =(bool * int * int) list
val match_query : candidate:string -> string -> result option
val set_match_query_fun : (candidate:string -> string -> result option) -> unitcase is true.val subset : ?case:bool -> candidate:string -> string -> result optionsubset ?case ~candidate query will match if query (interpreded as a set of
characters) is a subset of candidate (interpreted as a set of chars again).val partial_match : ?case:bool -> candidate:string -> string -> result optionpartial_match ?case ~candidate sub will return Some _ if sub is a
substring of candidate, None otherwise..val match_prefix : ?case:bool -> candidate:string -> string -> result option
val fuzzy_match : ?case:bool -> candidate:string -> string -> result optionfuzzy_match ?case ~candidate pattern tries to find the letters of
pattern in candidate (in the right order).
For example:
pattern = "tuou" and candidate = "tremulous" will match.pattern = "touu" and candidate = "tremulous" won't.val fuzzy_prefix : ?case:bool -> candidate:string -> string -> result optionfuzzy_match except that the first letter in pattern must be the
first letter of candidate.