subroutinemap_valuesprivate
subroutine map_values(table, sep, values)
The string entries of table in the form key<sep>value.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| table | type(toml_table) | inout | the table | |
| sep | character(len=1) | in | the separator | |
| values | type(string_t) | inout | allocatabledimension(:) | the entries |
Calls
Source
Show the code
subroutine map_values(table, sep, values)
type(toml_table), intent(inout) :: table !! the table
character, intent(in) :: sep !! the separator
type(string_t), allocatable, intent(inout) :: values(:) !! the entries
type(toml_key), allocatable :: keys(:)
character(len=:), allocatable :: text
integer :: k
call table%get_keys(keys)
do k = 1, size(keys)
call get_value(table, keys(k)%key, text, '')
call push(values, keys(k)%key//sep//text)
end do
end subroutine map_values