Split a string str
into two strings, key
and val
based on space
delimiter.
A non-empty non-comment string should be passed to this subroutine. Keys can have corresponding empty values, but keys must always be present
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | str | |||
character(len=:), | intent(out), | allocatable | :: | key | ||
character(len=:), | intent(out), | allocatable | :: | val | ||
character(len=*), | intent(in), | optional | :: | delimiter |