STR_PARSE
Name
STR_PARSE
Purpose
Parse tag=str_val pairs in an input string.
Category
Calling Sequence
str_parse, txt, out
Inputs
txt = Input text to parse. in
Syntax: "tag1=val1, tag2=val2 ..."
Commas are optional. Values must be delimited by
quotes, single or double. Unquoted values are ignored.
Any Extra text will be ignored. Values may contain
quotes.
Keyword Parameters
Keywords
/QUIET do not print error messages.
ERROR=err Error flag: 0=ok.
MSG=msg Error message.
Outputs
out = returned structure with results. out
out={count:cnt,tag:tags,val:vals}
Common Blocks
Notes
Notes: txt may have multiple tag=str_val pairs, each is
located based on an = character. Errors will indicate
missing quotes, extra text is quietly ignored.
Modification History
R. Sterner, 2012 Apr 18
Copyright (C) 2012, 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.