Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | key |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | place |
function get(key) result(valout)
character(len=*),intent(in) :: key
character(len=:),allocatable :: valout
integer :: place
! find where string is or should be
call locate(keywords,key,place)
if(place.lt.1)then
valout=''
else
valout=values(place)(:counts(place))
endif
end function get