forgex Module



Interfaces

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)

    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

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 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)

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