
Next:
CHR_FILL
-
Fill a string with a given character
Up: Routine Descriptions
Previous:
CHR_ETOM
-
Translate a string from EBCDIC to the machine's character set
CHR_FANDL
-
Find the first and last non-blank characters in a string
- 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.

Next:
CHR_FILL
-
Fill a string with a given character
Up: Routine Descriptions
Previous:
CHR_ETOM
-
Translate a string from EBCDIC to the machine's character set
CHR Character Handling Routines
Starlink User Note 40
A C Charles
P C T Rees
A J Chipperfield
2 August 1995
E-mail:ussc@star.rl.ac.uk