Calculate the confidence that two strings match.
#include "asr/asrm.h"
int asr_strmatch(const char *str1, const char *str2)
The first string to compare.
The second string to compare.
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.
An integer confidence score (0 - 1000) that indicates the confidence with which str1 and str2 match.