|
IDZEBRA 2.2.11
|
Go to the source code of this file.
Data Structures | |
| struct | MatchInfo |
Macros | |
| #define | SH(x) |
Functions | |
| static int | lookup_ec (Dict dict, Dict_ptr ptr, MatchInfo *mi, MatchWord *ri_base, int pos, int(*userfunc)(char *), int range, Dict_char *prefix) |
| static MatchInfo * | prepare_match (Dict_char *pattern) |
| int | dict_lookup_ec (Dict dict, char *pattern, int range, int(*userfunc)(char *name)) |
| lookup item(s) in dictionary with error correction | |
| #define SH | ( | x | ) |
| int dict_lookup_ec | ( | Dict | dict, |
| char * | p, | ||
| int | range, | ||
| int(* | f )(char *name) ) |
lookup item(s) in dictionary with error correction
| dict | dictionary handle |
| p | string-z with lookup string |
| range | number of allowed errors(extra/substituted/missing char) |
| f | function be called for each match (NULL for no call of f) |
| 0 | OK |
| -1 | error |
Function f is called for each item matched.
Definition at line 149 of file lookupec.c.
References dict, dict_strlen(), lookup_ec(), and prepare_match().
|
static |
Definition at line 39 of file lookupec.c.
References dict, dict_bf_readp(), DICT_bsize, DICT_EOS, DICT_nodir, lookup_ec(), MatchInfo::m, MatchInfo::s, and SH.
Referenced by dict_lookup_ec(), and lookup_ec().
Definition at line 133 of file lookupec.c.
References dict_strlen(), MatchInfo::m, and MatchInfo::s.
Referenced by dict_lookup_ec().