strconfstr()

Calculate the confidence that two strings match (case insensitive)

Synopsis:

#include "asr/asrm.h"
 
int strconfstr(char const *string, int opt_len, char const *find, char **ret_beg, char **ret_end)

Arguments:

string

The larger string to search within.

find

The string to search for.

opt_len

The number of characters starting from string to include in the search.

ret_beg

If provided, is set to the character in string at the beginning of the matched range.

ret_end

If provided, is set to first the character in string past the matched range.

Library:

libasr

Description:

The strconfstr() function searches for a substring of string that loosely matches the find string and then returns the confidence level of the match.

Returns:

The confidence level (0 - 1000) of the best match of find in string.