You copied the Doc URL to your clipboard.

Elemental character and logical functions

Elemental character logical conversion functions.

Elemental character and logical functions

Intrinsic

Description

Num. of Arguments

Argument Type

Result

ACHAR

Return character in specified ASCII collating position.

1

INTEGER

CHARACTER

ADJUSTL

Left adjust string.

1

CHARACTER

CHARACTER

ADJUSTR

Right adjust string.

1

CHARACTER

CHARACTER

CHAR

Return character with specified ASCII value.

1

LOGICAL*1 INTEGER

CHARACTER CHARACTER

IACHAR

Return position of character in ASCII collating sequence.

1

CHARACTER

INTEGER

ICHAR

Return position of character in the character set's collating sequence.

1

CHARACTER

INTEGER

INDEX

Return starting position of substring within first string.

2


3
CHARACTER,
CHARACTER

CHARACTER,
CHARACTER,
LOGICAL
INTEGER


INTEGER

LEN

Return the length of string.

1

CHARACTER

INTEGER

LEN_TRIM

Return the length of the supplied string minus the number of trailing blanks.

1

CHARACTER

INTEGER

LGE

Test the supplied strings to determine if the first string is lexically greater than or equal to the second.

Note: From F2008, character kind ASCII is also supported.

2

CHARACTER, CHARACTER

LOGICAL

LGT

Test the supplied strings to determine if the first string is lexically greater than the second.

Note: From F2008, character kind ASCII is also supported.

2

CHARACTER, CHARACTER

LOGICAL

LLE

Test the supplied strings to determine if the first string is lexically less than or equal to the second.

Note: From F2008, character kind ASCII is also supported.

2

CHARACTER, CHARACTER

LOGICAL

LLT

Test the supplied strings to determine if the first string is lexically less than the second.

Note: From F2008, character kind ASCII is also supported.

2

CHARACTER, CHARACTER

LOGICAL

LOGICAL

Logical conversion.

1
2
LOGICAL
LOGICAL, INTEGER
LOGICAL
LOGICAL

SCAN

Scan string for characters in set.

2


3
CHARACTER,
CHARACTER

CHARACTER,
CHARACTER,
LOGICAL
INTEGER


INTEGER

VERIFY

Determine if string contains all characters in set.

2


3
CHARACTER,
CHARACTER

CHARACTER,
CHARACTER,
LOGICAL
INTEGER


INTEGER
Was this page helpful? Yes No