TAG_TEST Name
TAG_TEST Purpose
Test if given tag is in given structure.
Category
Calling Sequence
flag = tag_test(ss, tag) Inputs
ss = given structure. in
tag = given tag. in
Keyword Parameters
Keywords
MINLEN=mn Minimum tag length to match (def=exact match).
SS may have the tag abbreviated down to mn characters.
(But tag must be at least as long as appears in ss).
INDEX=ind Index of first match (-1 means none).
Outputs
flag = test result: out
0=tag not found, 1=tag found.
Common Blocks
Notes
Note: useful for testing if tag occurs. Example:
if tag_test(ss,'cmd') then call_procedure,ss.cmd
Modification History
R. Sterner, 1998 Jun 30
R. Sterner, 2005 Jan 19 --- Added INDEX=ind.
R. Sterner, 2006 Sep 27 --- Added MINLEN.
R. Sterner, 2010 May 07 --- Converted arrays from () to [].
Copyright (C) 1998, Johns Hopkins University/Applied Physics Laboratory
This software may be used, copied, or redistributed as long as it is not
sold and this copyright notice is reproduced on each copy made. This
routine is provided as is without any express or implied warranties
whatsoever. Other limitations apply as described in the file disclaimer.txt.