Visible to Intel only — GUID: GUID-388EF1B3-11B1-43EB-8532-230A7B8B1E50
Visible to Intel only — GUID: GUID-388EF1B3-11B1-43EB-8532-230A7B8B1E50
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.