9.234. SCAN
9.234 SCAN — Scan a string for the presence of a set of characters
- Description:
-
Scans a STRING for any of the characters in a SET of characters.
If BACK is either absent or equals
FALSE
, this function returns the position of the leftmost character of STRING that is in SET. If BACK equalsTRUE
, the rightmost position is returned. If no character of SET is found in STRING, the result is zero. - Standard:
-
Fortran 95 and later, with KIND argument Fortran 2003 and later
- Class:
-
Elemental function
- Syntax:
-
RESULT = SCAN(STRING, SET[, BACK [, KIND]])
- Arguments:
-
登录查看完整内容