asr_strmatch()

Calculate the confidence that two strings match.

Synopsis:

#include "asr/asrm.h"
 
int asr_strmatch(const char *str1, const char *str2)

Arguments:

str1

The first string to compare.

str2

The second string to compare.

Library:

libasr

Description:

The asr_strmatch() function calculates a confidence score that can be used to evaluate the confidence with which str1 matches str2. Higher confidence scores indicate a higher confidence that the two strings match. This algorithm is based on the Damerau-Levenshtein edit distance algorithm.

Returns:

An integer confidence score (0 - 1000) that indicates the confidence with which str1 and str2 match.