
Next:
CHR_UCASE
-
Convert a string to uppercase
Up: Routine Descriptions
Previous:
CHR_TRCHR
-
Translate the specified characters in a string
CHR_TRUNC
-
Truncate a string at a given delimiter
- Description:
-
The given string is truncated at the first occurrence of the
given delimiter character. The delimiter character and all
subsequent characters are replaced by blanks. If no delimiter
character is found in the string, no truncation takes place.
This routine is effectively a combination of INDEX and CHR_TERM.
- Invocation:
-
CALL CHR_TRUNC( DELIM, STRING )
- Arguments:
-
-
DELIM = CHARACTER
1 (Given)
-
The truncation delimiter character.
-
STRING = CHARACTER
(
) (Given and Returned)
-
The string to be truncated. All characters from, and
including, the first occurrence of DELIM will be
replaced with blanks.

Next:
CHR_UCASE
-
Convert a string to uppercase
Up: Routine Descriptions
Previous:
CHR_TRCHR
-
Translate the specified characters in a string
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