cable_output_substitute Function

public function cable_output_substitute(template, names, values, error) result(text)

Replace each {name} in template with the matching entry of values.

Unknown names and unmatched braces leave the text unchanged and are described in error, which is not allocated if the template is valid.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: template
character(len=*), intent(in) :: names(:)
character(len=*), intent(in) :: values(:)
character(len=:), intent(out), allocatable :: error

Return Value character(len=:), allocatable