starts_with Interface

public interface starts_with

Check whether a string starts with substring or not

Version: experimental


Module Procedures

private elemental function starts_with_string_string(string, substring) result(match)

Check whether a string starts with substring or not

Arguments

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

Return Value logical

private elemental function starts_with_string_char(string, substring) result(match)

Check whether a string starts with substring or not

Arguments

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

Return Value logical

private elemental function starts_with_char_string(string, substring) result(match)

Check whether a string starts with substring or not

Arguments

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

Return Value logical

private pure function starts_with_char_char(string, substring) result(match)

Check whether a string starts with substring or not

Arguments

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

Return Value logical