Description:
Find the
indices of the first and last non-blank characters in the given string. If the string is all blank, the
first index is returned set to the end of the string and the last index is returned set to zero,
i.e. INDEX1 is greater than INDEX2. If the string has no length, i.e. it is a substring with
the first index greater than the second, both indices are returned set to zero.
Invocation
CALL CHR_FANDL( STRING, INDEX1, INDEX2 )
Arguments
STRING = CHARACTER
(
)
(Given)
The character string.
INDEX1 = INTEGER (Returned)
The position of first non-blank
character.
INDEX2 = INTEGER (Returned)
The position of last non-blank character.
Copyright © 2018 East Asian Observatory