Builtin count overloading.
Count the number of occurences of a substring into a string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | s |
String. |
||
character(len=*), | intent(in) | :: | substring |
Substring. |
Number of occurrences.