next up previous
Next: CHR_ISALF - Return whether a character is alphabetic
Up: Routine Descriptions
Previous: CHR_INDEX - Return the index of a substring in a string

CHR_INSET  -  Return whether a string is a member of a given set

Description:
The character string is compared with each of the values given in the given set. The strings in the set can be any length and can differ in length throughout the set. Each value is separated by a comma. Upper and lowercase are treated as being equivalent and trailing blanks are ignored.

Invocation:
RESULT = CHR_INSET( SET, STRING )

Arguments:
SET = CHARACTER ( ) (Given)
The set of character values. It takes the form 'string1,string2,.......,stringN' where each of the substring values from string1 to stringN can be of different lengths.
STRING = CHARACTER ( ) (Given)
The character string to be checked for membership of the set.

Returned Value:
CHR_INSET = LOGICAL
Returns .TRUE. if the character string is a member of the given set, returns .FALSE. otherwise.



next up previous
Next: CHR_ISALF - Return whether a character is alphabetic
Up: Routine Descriptions
Previous: CHR_INDEX - Return the index of a substring 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