next up previous
Next: CHR_SIZE - Return the declared size of a string
Up: Routine Descriptions
Previous: CHR_SCOMP - Compare two character strings using the ASCII character set

CHR_SIMLR  -  Return whether two strings are equal, apart from case

Description:
Determine whether two strings are the same, ignoring distinctions between upper and lowercase letters. Their lengths must be identical after removing trailing blanks.

Invocation:
RESULT = CHR_SIMLR( STR1, STR2 )

Arguments:
STR1 = CHARACTER ( ) (Given)
The first string.
STR2 = CHARACTER ( ) (Given)
The second string.

Returned Value:
CHR_SIMLR = LOGICAL
Returned as .TRUE. if the two strings are the same ignoring case distinctions; otherwise .FALSE.



next up previous
Next: CHR_SIZE - Return the declared size of a string
Up: Routine Descriptions
Previous: CHR_SCOMP - Compare two character strings using the ASCII 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