12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Descriptions of the Library Routines 2END DO100 FORMAT (L2, \)MBLead is passed only one character at a time and must start on a lead byte and step through astring to establish context for the character. MBLead does not correctly identify a nonlead byte if itis passed only the second byte of a multibyte character because the status of lead byte or trail bytedepends on context.The function MBStrLead is passed a whole string and can identify any byte within the string as alead or trail byte because it performs a context-sensitive test, scanning all the way back to thebeginning of a string if necessary to establish context. So, MBStrLead can be much slower thanMBLead (up to n times slower, where n is the length of the string).CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “MBStrLead”, “MBCharLen”MBLenNLS Function: Returns the number of characters in a multibyte-character string, includingtrailing blanks. This function is only available on Windows* systems.Module: USE IFNLSSyntaxresult = MBLen (string)string(Input) CHARACTER*(*). String whose characters are to be counted. Can contain multibytecharacters.Results:The result type is INTEGER(4). The result is the number of characters in string.MBLen recognizes multibyte-character sequences according to the multibyte codepage currentlyin use. It does not test for multibyte-character validity.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “MBLen_Trim”, “MBStrLead”2-207

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

Saved successfully!

Ooh no, something went wrong!