Clicky

Fortran Wiki
index (changes)

Skip the Navigation Links | Home Page | All Pages | Recently Revised | Authors | Feeds | Export |

Showing changes from revision #0 to #1: (追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)

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 - Shall be a scalar character, with intent(in)
  • back - (Optional) Shall be a scalar logical, with intent(in)
  • kind - (Optional) An integer initialization expression indicating the kind parameter of the result.

Return Value

The return value is of type integer and of kind kind. If kind is absent, the return value is of default integer kind.

See Also

scan, verify

category: intrinsics

Created on May 4, 2009 19:43:13 by Jason Blevins (71.70.142.190) (1034 characters / 0.0 pages)
Edit | Views: Print | TeX | Source | Linked from: Intrinsic procedures

AltStyle によって変換されたページ (->オリジナル) /