strpattern_match_invoke_count()

Get the number of invokes associated with a match.

Synopsis:

#include </strpattern.h>
 
int strpattern_match_invoke_count(const strpattern_match *match, int *err)

Arguments:

match

The match whose invoke count is returned.

err

STRPATTERN_EOK if there is no error.

Library:

libstrpattern

Description:

This function gets the number of invokes associated with a match. There is at least one invoke associated with each match. 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. For example, if a match has two invokes then two recognizers such as a phone and PIN found it.

Returns:

The number of invokes associated with the match (0 on error).