[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Sand 1, D-72076 Tübingen, Germany
[Uni logo]


cafequotestr Source code in cafequotestr.pro

cafequotestr

Name
           cafequotestr
Purpose
           Adds string quotation marks if required.
Category
           cafe
SUBCATEGORY:
           Tasks/Subtasks with parameters.
SYNTAX:
           newarg = cafequotestr, str
Input Parameters
           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
OPTIONS:
           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.
Output 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.
Side Effects
           None
Revision History
           $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

Last modified by pro2html on 2005 January 04 at 16:31 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically