Ignore:
Timestamp:
08/07/08 11:32:02 (16 years ago)
Author:
pinsard
Message:

improvements of headers (alignments of IDL prompt in examples)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Obsolete/strrepl.pro

    r325 r371  
    2525; 
    2626; @examples 
    27 ;        ; Convert one letter into upper case 
    2827; 
    29 ;        abc = 'abcdefghijklmnopqrstuvwxyz' 
    30 ;        print,strrepl(abc,strpos(abc,'m'),'M') 
     28;  Convert one letter into upper case 
    3129; 
    32 ;        ; prints "abcdefghijklMnopqrstuvwxyz" 
     30;   IDL> abc = 'abcdefghijklmnopqrstuvwxyz' 
     31;   IDL> print,strrepl(abc,strpos(abc,'m'),'M') 
     32;   abcdefghijklMnopqrstuvwxyz 
    3333; 
    3434; 
    35 ;        ; Use with strwhere function 
    36 ;        a = 'abcabcabc' 
    37 ;        print,strrepl(a,strwhere(a,'a'),'#') 
     35;  Use with strwhere function 
     36;   IDL> a = 'abcabcabc' 
     37;   IDL> print,strrepl(a,strwhere(a,'a'),'#') 
     38;   #bc#bc#bc#bc#bc 
    3839; 
    39 ;        ; prints  "#bc#bc#bc#bc#bc" 
    40 ; 
    41 ;       IDL> print, strrepl(a,'bc','!eeee!') 
     40;   IDL> print, strrepl(a,'bc','!eeee!') 
    4241;       a!eeee!a!eeee!a!eeee! 
    43 ;       IDL> print, strrepl(a,'b','0000') 
     42;   IDL> print, strrepl(a,'b','0000') 
    4443;       a0000ca0000ca0000 
    45 ;       IDL> print, strrepl(a,'toto','0000') 
     44;   IDL> print, strrepl(a,'toto','0000') 
    4645;       abcabcabc 
    4746; 
Note: See TracChangeset for help on using the changeset viewer.