Changeset 142 for trunk/SRC/ToBeReviewed/STRING/tostr.pro
- Timestamp:
- 07/21/06 14:47:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/STRING/tostr.pro
r134 r142 3 3 ;------------------------------------------------------------ 4 4 ;+ 5 ; NAME: tostr (to string)6 5 ; 7 ; PURPOSE: convertit un input en un string. 6 ; @file_comments 7 ; Convert an input in a string. 8 8 ; 9 ; CATEGORY:9 ; @categories 10 10 ; 11 ; CALLING SEQUENCE: res=tostr(input) 12 ; 13 ; INPUTS: input ne peut pas contenir ou etre de type: 11 ; @param INPUT {in}{required} 12 ; input can not contain or be of the type of: 14 13 ; 15 14 ; Complex floating, structure, Double-precision complex, Pointer, Object … … 17 16 ; Integer, Unsigned 64-bit Integer 18 17 ; 19 ; KEYWORD PARAMETERS: none 18 ; @returns 19 ; a string 20 20 ; 21 ; OUTPUTS: un string 21 ; @restrictions 22 ; If keywdvalue is an array, it will be convert in a vector. 22 23 ; 23 ; COMMON BLOCKS: 24 ; 25 ; SIDE EFFECTS: 26 ; 27 ; Si un element de input contient un tableau, il sera 28 ; convertit en vecteur. 29 ; 30 ; RESTRICTIONS: 31 ; 32 ; attention cette fonction comporte des boucles, des if et des cases 33 ; ds tous les sens. Elle ne doit donc pas etre utilisee avec des 34 ; inputs de grosse taille (avec bcp d''elements et avec des 35 ; elements etant de gros tableaux). 36 ; EXAMPLE: 24 ; @restrictions 25 ; Beware, this function has loops, ifs ad cases everywhere. So it can 26 ; not be used by big keywords (with a lot of elements which are big 27 ; arrays). 28 ; 29 ; @examples 37 30 ; IDL> help, tostr(1),tostr('a'),tostr(indgen(4)),tostr(['a','jkfjo']) 38 31 ; <Expression> STRING = '1' … … 43 36 ; ['c''est bon','c''est bon'] 44 37 ; 45 ; MODIFICATION HISTORY:Sebastien Masson (smasson@lodyc.jussieu.fr) 38 ; @history 39 ; Sebastien Masson (smasson@lodyc.jussieu.fr) 46 40 ; 18/10/1999 41 ; 42 ; @version 43 ; $Id$ 44 ; 47 45 ;- 48 46 ;------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.