
Next:
CHR_ACHR
-
Return the character for a given ASCII value
Up: Routine Descriptions
Previous: Routine Descriptions
CHR_ABBRV
-
Return whether two strings are equal apart from case,
permitting abbreviations
- Description:
-
Returns a logical result indicating whether two strings
are the same, apart from case. In assessing this, the first
string is allowed to be an abbreviation of the second string,
as long as it contains a specified minimum number of characters.
- Invocation:
-
RESULT = CHR_ABBRV( STR1, STR2, NCHAR )
- Arguments:
-
-
STR1 = CHARACTER
(
) (Given)
-
The first string, which may be an abbreviation.
-
STR2 = CHARACTER
(
) (Given)
-
The second string.
-
NCHAR = INTEGER (Given)
-
The minimum number of characters to which the first string may
be abbreviated (a smaller number will be accepted if there are
actually fewer than NCHAR characters in STR2).
- Returned Value:
-
-
CHR_ABBRV = LOGICAL
-
Whether the two strings match after allowing for case and
abbreviation of the first string to no less than NCHAR
characters.

Next:
CHR_ACHR
-
Return the character for a given ASCII value
Up: Routine Descriptions
Previous: Routine Descriptions
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