tokenize Interface

public interface tokenize

Split a string into whitespace separated words.

Runs of whitespace are treated as a single separator and empty fields are discarded, so a string that is empty or entirely whitespace yields a zero sized result. Whitespace is the set defined by pic_ascii, that is space, horizontal tab, vertical tab, carriage return, line feed and form feed.

Calls

interface~~tokenize~~CallsGraph interface~tokenize tokenize proc~tokenize_char tokenize_char interface~tokenize->proc~tokenize_char proc~tokenize_string tokenize_string interface~tokenize->proc~tokenize_string proc~tokenize_string->proc~tokenize_char

Module Procedures

private pure function tokenize_char(string) result(tokens)

Split a character string into whitespace separated words.

Arguments

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

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

private pure function tokenize_string(string) result(tokens)

Split a string_type into whitespace separated words.

Arguments

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

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