Position of a substring within a string.
Returns the position of the start of the leftmost or rightmost occurrence of string substring in string, counting from one. If substring is not present in string, zero is returned.
This method is elemental and returns a default integer scalar value.
Position of a sequence of character within a character sequence.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(string_class), | intent(in) | :: | string | |||
class(string_class), | intent(in) | :: | substring | |||
logical, | intent(in), | optional | :: | back |
Position of a sequence of character within a character sequence.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(string_class), | intent(in) | :: | string | |||
type(string_type), | intent(in) | :: | substring | |||
logical, | intent(in), | optional | :: | back |
Position of a sequence of character within a character sequence.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(string_class), | intent(in) | :: | string | |||
character(len=*), | intent(in) | :: | substring | |||
logical, | intent(in), | optional | :: | back |
Position of a sequence of character within a character sequence.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(string_type), | intent(in) | :: | string | |||
class(string_class), | intent(in) | :: | substring | |||
logical, | intent(in), | optional | :: | back |
Position of a sequence of character within a character sequence.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string | |||
class(string_class), | intent(in) | :: | substring | |||
logical, | intent(in), | optional | :: | back |