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. In this version both character sequences are represented by a string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(string_type), | intent(in) | :: | string | |||
type(string_type), | intent(in) | :: | substring | |||
logical, | intent(in), | optional | :: | back |
Position of a sequence of character within a character sequence. In this version the main character sequence is represented by a string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(string_type), | intent(in) | :: | string | |||
character(len=*), | intent(in) | :: | substring | |||
logical, | intent(in), | optional | :: | back |
Position of a sequence of character within a character sequence. In this version the sub character sequence is represented by a string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string | |||
type(string_type), | intent(in) | :: | substring | |||
logical, | intent(in), | optional | :: | back |