Return the ID of a configuration item containing a result string.
#include "asr/asrm.h"
int asrm_find_phrase_id(cfg_item_t *base, const char *result_string, int start_terminal, int *terminal_end, int *conf, int def_id)
The configuration structure to search.
The result string to search for.
Not used.
On success, terminal_end is set to the index of the last terminal in the match.
On success, conf is set to the confidence level of the match.
A default ID to return if the configuration item isn't found.
The asrm_find_phrase_id() function searches a configuration for a specified result string and returns the ID of the matching configuration item. The configuration item must contain an exact match.
A pointer to the configuration item that was the closest match; NULL on failure.