Guest User

Untitled

a guest
Jun 25th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Function UpTextMatch(FindStr, UpTxt: string): boolean;
  2. var
  3. fL, uL, i: integer;
  4. Hi, J: Extended;
  5. begin
  6. fL := Length(FindStr)-1;
  7. uL := Length(UpTxt);
  8. Writeln(ToStr(fL)+' '+ToStr(uL))
  9.  
  10. for i := 1 to uL do
  11. begin
  12. J := JaroWinkler(FindStr, Copy(UpTxt, i, Min(i+fL, uL)));
  13.  
  14. Writeln(ToStr(J)+' : '+ToStr(Copy(UpTxt, i, i+fL)));
  15. if J > Hi then
  16. Hi := J;
  17. end;
  18. end;
Add Comment
Please, Sign In to add comment