VLC 4.0.0-dev
vlc_jaro_winkler.h File Reference

Go to the source code of this file.

Functions

int vlc_jaro_winkler (const char *a, const char *b, float *res)
 Calculate a “Jaro Winkler” metric. More...
 

Function Documentation

◆ vlc_jaro_winkler()

int vlc_jaro_winkler ( const char *  a,
const char *  b,
float *  res 
)

Calculate a “Jaro Winkler” metric.

Algorithm: http://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance

Like “Jaro” but gives a boost to strings that have a common prefix.

Note
: This implementation does not place a limit the common prefix length adjusted for.
Parameters
astring A
bstring B
res[OUT] a pointer to a float to receive the result
Returns
-1 on memory allocation failure, otherwise 0

Algorithm: http://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance

Like “Jaro” but gives a boost to strings that have a common prefix.

Note
: This implementation does not place a limit on the common prefix length adjusted for.
Parameters
astring A
bstring B
res[OUT] a pointer to a float to receive the result
Returns
-1 on memory allocation failure, otherwise 0

References jaro_inner().

Referenced by config_LoadCmdLine().