Find a configuration item containing a result string.
#include "asr/asrm.h"
cfg_item_t* asrm_find_phrase(cfg_item_t *base, const char *result, int start_terminal, asrm_phrase_search_mode_t mode, int *beg_terminal, int *end_terminal, int *conf)
The configuration structure to search.
The result string to search for.
Not used.
The search mode (from the asrm_phrase_search_mode_t enumeration).
On success, beg_terminal is set to the index of the first terminal in the match.
On success, end_terminal is set to the index of the last terminal in the match.
On success, conf is set to the confidence level of the match.
The asrm_find_phrase() function searches a configuration structure for a specified result string and returns a pointer to the matching configuration item.
A pointer to the configuration item that was the closest match; NULL on failure.