![]() |
Institut für Astronomie und AstrophysikAbteilung AstronomieSand 1, D-72076 Tübingen, Germany |
![]() |
cafequotestr
Adds string quotation marks if required.
cafe
Tasks/Subtasks with parameters.
newarg = cafequotestr, str
str - String containing comma separated arguments
which are to be processed.
Each item which is not a number, an option (/foo) or
enclosed in parentheses "()" will be enveloped with
string marks.
For this the string will be parsed with cafeparse()
to be separated properly in its items.
If str is a string array its arguments will be
checked for quotation but no further splitting will
be performed. The return
keyvalpair - all string items are given as key/value pairs
which have the form key=value. In this case
the value only has to be quoted. If the value
is missing the key will be set at 1.
This option is needed for subtask
parameters.
Returns string containing the same arguments as the input
but with proper quoting.
If the input is a string array also a string array with
the same dimensions as the input will be returned.
None
$Id: cafequotestr.pro,v 1.5 2004/06/21 17:22:33 goehler Exp $
$Log: cafequotestr.pro,v $
Revision 1.5 2004/06/21 17:22:33 goehler
fix: do not force all quotings to '' but keep proper use of ""
Revision 1.4 2004/06/14 17:36:02 goehler
fix: proper quoting using '' instead ""
Revision 1.3 2003/06/17 14:45:26 goehler
fix: quote ranges of numbers (0-10) properly.
Revision 1.2 2003/06/10 08:35:40 goehler
fix: recognize double precission floating constants
Revision 1.1 2003/04/28 07:38:16 goehler
moved parameter determination into separate function cafequotestr
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]