Product | Fuzzy Search 1.0 from 10 Aug 2000 |
Description | Tool for searching string occurence with error. |
Author | Copyright (c) 2000, SoftLab Web: http://softlab.od.ua Email: support@softlab.od.ua |
Status | Freeware for non commercial use, source $10. Online registration is available. |
|
Fuzzy searching is the tool for search string occurence with error. Under an error of search we accept an incongruity / exception / addition of the character. Example of usage:
var FSearch: TFuzzySearch;
ThatSearch: string;
Text: string;
// how many error may be in occurence
SearchError: integer;
SearchError:=1;
FSearch:=TFuzzySearch.Create(ThatSearch,SearchError);
if FSearch.Match(PChar(Text)) then
repeat
writeln('Position: '+IntToStr(FSearch.FoundPos));
writeln('Occurence: '+FSearch.FoundStr);
writeln('Error: '+IntToStr(FSearch.HowClose));
until not FSearch.Next;
FSearch.Free;
For more detail see examples.