The forgex_api_internal_m defines the procedures that the API call directly.
Currently, it contains two procedures: do_matching_including and do_matching_exactly.
This subroutine is intended to be called from the forgex API module.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(automaton_t), | intent(inout) | :: | automaton | |||
| character(len=*), | intent(in) | :: | string | |||
| logical, | intent(inout) | :: | res | |||
| character(len=*), | intent(in) | :: | prefix | |||
| character(len=*), | intent(in) | :: | suffix | |||
| logical, | intent(inout) | :: | runs_engine |
This procedure reads a text, performs regular expression matching using an automaton, and stores the string index in the argument if it contains a match.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(automaton_t), | intent(inout) | :: | automaton | |||
| character(len=*), | intent(in) | :: | string | |||
| integer, | intent(inout) | :: | from | |||
| integer, | intent(inout) | :: | to | |||
| character(len=*), | intent(in) | :: | prefix | |||
| character(len=*), | intent(in) | :: | suffix | |||
| logical, | intent(inout) | :: | runs_engine |