forgex_api_internal_m Module

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.



Subroutines

public pure subroutine do_matching_exactly(automaton, string, res, prefix, suffix, runs_engine)

This subroutine is intended to be called from the forgex API module.

Arguments

Type IntentOptional 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

public pure subroutine do_matching_including(automaton, string, from, to, prefix, suffix, 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.

Arguments

Type IntentOptional 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