libexplain  1.4.D001
Functions
libexplain/parse_bits/find_by_name_fuzzy.c File Reference
#include <libexplain/fstrcmp.h>
#include <libexplain/parse_bits.h>

Go to the source code of this file.

Functions

const explain_parse_bits_table_texplain_parse_bits_find_by_name_fuzzy (const char *name, const explain_parse_bits_table_t *table, size_t table_size)

Function Documentation

const explain_parse_bits_table_t* explain_parse_bits_find_by_name_fuzzy ( const char *  name,
const explain_parse_bits_table_t table,
size_t  table_size 
)

The explain_parse_bits_find_by_name_fuzzy function is used to search a parse-bits table for the given name, using fuzzy matching. This is best used after explain_parse_bits_find_by_name has already failed, for the purpose of producing a better error message.

Parameters:
nameThe name to search for in the table
tableThe table to be searched.
table_sizeThe number of members in the table to be searched.
Returns:
pointer to table entry on succes, or NULL on no match

The explain_parse_bits_find_by_name_fuzzy function is used to search a parse-bits table for the given name, using fuzzy matching.

Parameters:
nameThe name to search for in the table
tableThe table to be searched.
table_sizeThe number of members in the table to be searched.
Returns:
pointer to table entry on succes, or NULL on no match

Definition at line 25 of file find_by_name_fuzzy.c.