split_string Interface

public interface split_string

Splits a string by the specified delimiter character.


Contents


Module Procedures

private pure function split_string_char(txt, delim) result(rst)

Splits a string by the supplied delimiter character.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: txt

The string on which to operate.

character(len=1), intent(in) :: delim

The delimiter character.

Return Value type(string), allocatable, dimension(:)

An array containing the resulting sub-strings.

private pure function split_string_str(txt, delim) result(rst)

Splits a string by the supplied delimiter character.

Arguments

Type IntentOptional Attributes Name
type(string), intent(in) :: txt

The string on which to operate.

character(len=1), intent(in) :: delim

The delimiter character.

Return Value type(string), allocatable, dimension(:)

An array containing the resulting sub-strings.