Returns the starting position of a substring within a string.
Returns the starting position of a substring within a string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string), | intent(in) | :: | str |
The string to search. |
||
| type(string), | intent(in) | :: | substr |
The substring for which to search. |
||
| logical, | intent(in), | optional | :: | back |
occurrence rather than the first; else, if true, the index is the start of the first occurrence of the substring. |
The starting index of the substring.
Returns the starting position of a substring within a string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string), | intent(in) | :: | str |
The string to search. |
||
| character(len=*), | intent(in) | :: | substr |
The substring for which to search. |
||
| logical, | intent(in), | optional | :: | back |
occurrence rather than the first; else, if true, the index is the start of the first occurrence of the substring. |
The starting index of the substring.
Returns the starting position of a substring within a string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | str |
The string to search. |
||
| type(string), | intent(in) | :: | substr |
The substring for which to search. |
||
| logical, | intent(in), | optional | :: | back |
occurrence rather than the first; else, if true, the index is the start of the first occurrence of the substring. |
The starting index of the substring.