count Interface

public interface count

Builtin count overloading.

Calls

interface~~count~~CallsGraph interface~count stringifor_string_t::count proc~count_substring stringifor_string_t::count_substring interface~count->proc~count_substring

Contents


Module Procedures

private elemental function count_substring(s, substring) result(No)

Count the number of occurences of a substring into a string.

Read more…

Arguments

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

String.

character(len=*), intent(in) :: substring

Substring.

Return Value integer(kind=I4P)

Number of occurrences.