forgex_utility_m Module


Functions

public pure function is_there_caret_at_the_top(pattern) result(res)

This function returns .true. if the pattern contains the caret character at the top that matches the beginning of a line.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: pattern

Return Value logical

public pure function is_there_dollar_at_the_end(pattern) result(res)

This funciton returns .true. if the pattern contains the doller character at the end that matches the ending of a line.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: pattern

Return Value logical


Subroutines

public pure subroutine get_index_list_forward(text, prefix, suffix, index_array)

This subroutine creates an array containing a list of the positions of the prefixes that exist in the text

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: text
character(len=*), intent(in) :: prefix
character(len=*), intent(in) :: suffix
integer(kind=int32), intent(inout), allocatable :: index_array(:)