9.140. INDEX

9.140 INDEX — Position of a substring within a string

Description:
Returns the position of the start of the first occurrence of string SUBSTRING as a substring in STRING, counting from one. If SUBSTRING is not present in STRING, zero is returned. If the BACK argument is present and true, the return value is the start of the last occurrence rather than the first.
Standard:
Fortran 77 and later, with KIND argument Fortran 2003 and later
Class:
Elemental function
Syntax:
RESULT = INDEX(STRING, SUBSTRING [, BACK [, KIND]])
Arguments:
登录查看完整内容
STRING Shall be a scalar CHARACTER, with INTENT(IN)
SUBSTRING