Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 9/08/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

MBSCAN

NLS Function: Performs the same function as SCAN except that the strings manipulated can contain multibyte characters. This routine is only available for Windows.

Module

USE IFNLS

result = MBSCAN (string,set[,back])

string

(Input) Character*(*). Is the string to be searched for the presence of any character in set.

set

(Input) Character*(*). Are the 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.

Results

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.

See Also