topchkeywd
String, keywords
Return value
stringout=stringin modified if keywdname has been found in stringin
Parameters
stringin
in
required
keywdname
in
required
keywdvalue
in
required
Keywords
SEPARATOR
AFTER
Examples
IDL> b='ok=111, year=[1997,1998,1999], age_capitaine=35'
IDL> print, b
ok=111, year=[1997,1998,1999], age_capitaine=35
IDL> print, chkeywd(b,'ok','c''est bon')
ok='c''est bon', year=[1997,1998,1999], age_capitaine=35
IDL> print, chkeywd(b,'YEAR',indgen(5),sep='=')
ok=111, year=[0,1,2,3,4], age_capitaine=35
IDL> print, chkeywd(b,'YEAR',indgen(5),sep=']',/after)
ok=111, year=[0,1,2,3,4], age_capitaine=35
IDL> b='ok=111, /year, /age_capitaine'
IDL> print, chkeywd(b,'year','c''est bon')
ok=111, year='c''est bon', /age_capitaine
Version history
Version
$Id: chkeywd.pro 142 2006-07-21 12:47:49Z navarro $
History
Sebastien Masson (smasson@lodyc.jussieu.fr)
18/10/1999
24/11/1999: adaptation for keywords starting by /
Known issues
Restrictions
If keywdvalue is an array, it will be convert in a vector.
Beware, this function has loops, ifs ad cases everywhere. So it can
not be used by big keywords (with a lot of elements which are big
arrays). The input keyword must not contain Complex floatings, structure,
Double-precision complex, Pointer, Object reference, Unsigned Integer,
Unsigned Longword Integer, 64-bit Integer or Unsigned 64-bit Integer.
Other attributes
Uses routines
common.pro