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

ID 767251
Date 3/22/2024
Public
Document Table of Contents

MBPrev

NLS Function: Returns the position of the first lead byte or single-byte character immediately preceding the given string position in a multibyte-character string. This routine is only available for Windows.

Module

USE IFNLS

result = MBPrev (string,position)

string

(Input) Character*(*). Is a string to be searched for the first lead byte or single-byte character before the current position. It can contain multibyte characters.

position

(Input) INTEGER(4). The position in string to search from. It must be the position of a lead byte or single-byte character. Cannot be the position of the trail (second) byte of a multibyte character.

Results

The result type is INTEGER(4). The result is the position of the first lead byte or single-byte character in string immediately preceding the position given in position, or 0 if no preceding first byte is found in string.

See Also