count Interface

public interface count

Overload intrinsic function count for counting substring occurences into strings.

Calls

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

Module Procedures

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

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

Arguments

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

String.

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

Substring.

Return Value integer(kind=I4P)

Number of occurrences.