Overload intrinsic function count for counting substring occurences into strings.
Count the number of occurences of a substring into a string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
String. |
||
character(len=*), | intent(in) | :: | substring |
Substring. |
Number of occurrences.