Intel® Fortran Compiler 17.0 Developer Guide and Reference
NLS Function: Performs the same function as SCAN except that the strings manipulated can contain multibyte characters.
USE IFNLS
result = MBSCAN (string,set[,back])
string |
(Input) Character*(*). String to be searched for the presence of any character in set. |
set |
(Input) Character*(*). Characters to search for. |
back |
(Input; optional) LOGICAL(4). If specified, determines direction of the search. If back is .FALSE. or is omitted, the search starts at the beginning of string and moves toward the end. If back is .TRUE., the search starts end of string and moves toward the beginning. |
The result type is INTEGER(4). If back is .FALSE. or is omitted, it returns the position of the leftmost character in string that is in set. If back is .TRUE., it returns the rightmost character in string that is in set. If no characters in string are in set, it returns 0.