split Interface

public interface split

Function for splitting a scalar character or String into a vector of tokens.

For a user reference, see split.


Functions

private pure recursive module function split_char(substring, separator) result(tokens)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: substring
character(len=*), intent(in), optional :: separator

Return Value type(String), allocatable, (:)

private pure recursive module function split_string(substring, separator) result(tokens)

Arguments

Type IntentOptional Attributes Name
class(String), intent(in) :: substring
character(len=*), intent(in), optional :: separator

Return Value type(String), allocatable, (:)