12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>back(Optional; input) 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. Ifback 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 theleftmost character in string that is in set. If back is .TRUE., it returns the rightmost character instring that is in set. If no characters in string are in set, it returns 0.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “MBINDEX”, “MBVERIFY”, the SCAN intrinsic function in the Language <strong>Reference</strong>MBStrLeadNLS Function: Performs a context-sensitive test to determine whether a given character byte in astring is a multibyte-character lead byte. This function is only available on Windows* systems.Module: USE IFNLSSyntaxresult = MBStrLead (string, position)string(Input) Character*(*). String containing the character byte to be tested for lead status.position(Input) INTEGER(4). Position in string of the character byte in the string to be tested.Results:The result type is LOGICAL(4). The result is .TRUE. if the character byte in position of string is alead byte; otherwise, .FALSE..MBStrLead is passed a whole string and can identify any byte within the string as a lead or trailbyte because it performs a context-sensitive test, scanning all the way back to the beginning of astring if necessary to establish context.MBLead is passed only one character at a time and must start on a lead byte and step through astring one character at a time to establish context for the character. So, MBStrLead can be muchslower than MBLead (up to n times slower, where n is the length of the string).CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB2-212

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!