fdoc

abstract interfacelink_resolverprivate

subroutine link_resolver(data, name, entity, child, child_entity, url, text, found)

Find what a [[...]] link means.

Arguments

NameTypeIntentAttributesDescription
dataclass(*)in

what the resolver needs

namecharacter(len=*)in

the name

entitycharacter(len=*)in

its entity type, or ''

childcharacter(len=*)in

the child's name, or ''

child_entitycharacter(len=*)in

the child's entity type, or ''

urlcharacter(len=:)outallocatable

the link

textcharacter(len=:)outallocatable

the text to show

foundlogicalout

false if there is no such entity

Source

Show the code
    subroutine link_resolver(data, name, entity, child, child_entity, url, text, found)
        import
        class(*), intent(in) :: data                        !! what the resolver needs
        character(len=*), intent(in) :: name                !! the name
        character(len=*), intent(in) :: entity              !! its entity type, or `''`
        character(len=*), intent(in) :: child               !! the child's name, or `''`
        character(len=*), intent(in) :: child_entity        !! the child's entity type, or `''`
        character(len=:), allocatable, intent(out) :: url   !! the link
        character(len=:), allocatable, intent(out) :: text  !! the text to show
        logical, intent(out) :: found                       !! false if there is no such entity
    end subroutine link_resolver