Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

fuzzy.h File Reference


Detailed Description

Functions to compute likelihood of two file names being the same file.

Author:
Vidar Madsen
Date:
2002

Go to the source code of this file.

Defines

#define FUZZY_SHIFT   10
 FUZZY_SHIFT is used to shift the real score to gain extra precision in favour of using float.


Functions

gulong fuzzy_compare (const char *str1, const char *str2)


Define Documentation

#define FUZZY_SHIFT   10
 

FUZZY_SHIFT is used to shift the real score to gain extra precision in favour of using float.


Function Documentation

gulong fuzzy_compare const char *  str1,
const char *  str2
 

Returns:
the similarity of both strings as a value between 0 and (1 << FUZZY_SHIFT).
Attention:
NB: The result will be bogus for strings larger than 1 << (BIT_LENGTH_OF_GULONG - (FUZZY_SHIFT + 2)) chars.


Generated on Sun Feb 12 10:50:01 2006 for Gtk-Gnutella by doxygen 1.3.6