22 const char *target,
int tlen,
23 int ins_c,
int del_c,
int sub_c,
26 const char *target,
int tlen,
27 int ins_c,
int del_c,
int sub_c,
28 int max_d,
bool trusted);
38 int cflags,
Oid collation,
39 int search_start,
int n);
static rewind_source * source
Datum replace_text(PG_FUNCTION_ARGS)
int varstr_cmp(const char *arg1, int len1, const char *arg2, int len2, Oid collid)
bool SplitDirectoriesString(char *rawstring, char separator, List **namelist)
const char * getClosestMatch(ClosestMatchState *state)
bool SplitGUCList(char *rawstring, char separator, List **namelist)
bool SplitIdentifierString(char *rawstring, char separator, List **namelist)
void varstr_sortsupport(SortSupport ssup, Oid typid, Oid collid)
struct ClosestMatchState ClosestMatchState
int varstr_levenshtein_less_equal(const char *source, int slen, const char *target, int tlen, int ins_c, int del_c, int sub_c, int max_d, bool trusted)
text * replace_text_regexp(text *src_text, text *pattern_text, text *replace_text, int cflags, Oid collation, int search_start, int n)
int varstr_levenshtein(const char *source, int slen, const char *target, int tlen, int ins_c, int del_c, int sub_c, bool trusted)
void initClosestMatch(ClosestMatchState *state, const char *source, int max_d)
void updateClosestMatch(ClosestMatchState *state, const char *candidate)
List * textToQualifiedNameList(text *textval)