67#ifndef MUTT_FUZZY_LIB_H
68#define MUTT_FUZZY_LIB_H
bool candidate(struct CompletionData *cd, char *user, const char *src, char *dest, size_t dlen)
Helper function for completion.
FuzzyAlgo
Fuzzy matching algorithm types.
@ FUZZY_ALGO_SUBSEQ
Subsequence matching algorithm.
int fuzzy_match(const char *pattern, const char *candidate, enum FuzzyAlgo algo, const struct FuzzyOptions *opts, struct FuzzyResult *out)
Perform fuzzy matching.
Options for fuzzy matching.
bool smart_case
Auto case-sensitive if pattern has uppercase.
bool case_sensitive
Match case exactly.
int max_pattern
Safety bound (<=0 = default 256, capped at 256)
bool prefer_prefix
Extra weight for prefix matches.
int score
Score (<0 = no match)
int start
First match position.
int end
Last match position.