replace Function

public pure function replace(in_str, old, new) result(string)

Replaces old with new in in_str

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: in_str
character(len=1), intent(in) :: old
character(len=1), intent(in) :: new

Return Value character(len=len_trim(in_str))