Get the data type of an invoke associated with a pattern match.
#include </strpattern.h>
const char* strpattern_match_invoke_data_type(const strpattern_match *match, int index, int *err)
The match containing the invoke whose data type is returned.
The index of the invoke associated with the match.
STRPATTERN_EOK if there is no error.
This function gets the data type of an invoke associated with a pattern match and returns a NULL-terminated string with the data type. An invoke means that it was found by a recognizer and a match was created for it. A recognizer is an email address, phone number, PIN, SMS, or URL.
A NULL-terminated string with the data type. NULL if no data type is set for the invoke or on error. Ownership is retained by the callee.