abstract interfacelink_resolverprivate
subroutine link_resolver(data, name, entity, child, child_entity, url, text, found)
Find what a [[...]] link means.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| data | class(*) | in | what the resolver needs | |
| name | character(len=*) | in | the name | |
| entity | character(len=*) | in | its entity type, or | |
| child | character(len=*) | in | the child's name, or | |
| child_entity | character(len=*) | in | the child's entity type, or | |
| url | character(len=:) | out | allocatable | the link |
| text | character(len=:) | out | allocatable | the text to show |
| found | logical | out | 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