fdoc

subroutinemap_valuesprivate

subroutine map_values(table, sep, values)

The string entries of table in the form key<sep>value.

Arguments

NameTypeIntentAttributesDescription
tabletype(toml_table)inout

the table

sepcharacter(len=1)in

the separator

valuestype(string_t)inoutallocatabledimension(:)

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

Graphs

Calls

Called by