Description:
The
routine searches the string STR to identify a sub-string containing a parenthesised expression
and returns the character positions of the opening and closing parentheses in the F and
L arguments. Allowance is made for nested parentheses. If a parenthesised expression
was not found, then the returned value of F will be greater than the returned value of L.
Invocation
CALL CHR_FPARX( STR, OPPAR, CLPAR, F, L )
Arguments
STR = CHARACTER
(
) (Given)
String to be searched.
OPPAR = CHARACTER
( 1 ) (Given)
The opening parenthesis character.
CLPAR = CHARACTER
( 1 )
(Given)
The closing parenthesis character.
F = INTEGER (Returned)
Character position of the
opening parenthesis.
L = INTEGER (Returned)
Character position of the closing parenthesis.
Copyright © 2018 East Asian Observatory