forgex Module



Interfaces

public interface is_valid_regex

The generic name for the is_valid_regex function implemented as is_valid_regex_pattern.

  • private pure elemental function is_valid_regex_pattern(pattern) result(res)

    The function validating a given regex patten.

    Arguments

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

    Return Value logical

public interface operator(.in.)

Interface for user-defined operator of .in.

  • private pure elemental function operator__in(pattern, str) result(res)

    The function implemented for the .in. operator.

    Arguments

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

    Return Value logical

public interface operator(.match.)

Interface for user-defined operator of .match.

  • private pure elemental function operator__match(pattern, str) result(res)

    The function implemented for the .match. operator.

    Arguments

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

    Return Value logical

public interface regex

The generic name for the regex subroutine implemented as procedure__regex.

  • private pure subroutine subroutine__regex(pattern, text, res, length, from, to, status, err_msg)

    The function implemented for the regex subroutine.

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: pattern
    character(len=*), intent(in) :: text
    character(len=:), intent(inout), allocatable :: res
    integer, intent(inout), optional :: length
    integer, intent(inout), optional :: from
    integer, intent(inout), optional :: to
    integer, intent(inout), optional :: status
    character(len=*), intent(inout), optional :: err_msg

public interface regex_f

The generic name for the regex_f function implemented as function__regex.

  • private pure function function__regex(pattern, text) result(res)

    The function implemented for the regex_f function.

    Arguments

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

    Return Value character(len=:), allocatable


Functions

private pure function function__regex(pattern, text) result(res)

The function implemented for the regex_f function.

Arguments

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

Return Value character(len=:), allocatable

private pure elemental function is_valid_regex_pattern(pattern) result(res)

The function validating a given regex patten.

Arguments

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

Return Value logical

private pure elemental function operator__in(pattern, str) result(res)

The function implemented for the .in. operator.

Arguments

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

Return Value logical

private pure elemental function operator__match(pattern, str) result(res)

The function implemented for the .match. operator.

Arguments

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

Return Value logical


Subroutines

private pure subroutine subroutine__regex(pattern, text, res, length, from, to, status, err_msg)

The function implemented for the regex subroutine.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: pattern
character(len=*), intent(in) :: text
character(len=:), intent(inout), allocatable :: res
integer, intent(inout), optional :: length
integer, intent(inout), optional :: from
integer, intent(inout), optional :: to
integer, intent(inout), optional :: status
character(len=*), intent(inout), optional :: err_msg