Ignore:
Timestamp:
07/23/09 11:18:49 (15 years ago)
Author:
smasson
Message:

update documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Documentation/idldoc_assistant_output/Obsolete/strrepl.html

    r338 r402  
    143143 
    144144    <h3>Examples</h3><pre> 
    145         ; Convert one letter into upper case 
    146  
    147         abc = 'abcdefghijklmnopqrstuvwxyz' 
    148         print,strrepl(abc,strpos(abc,'m'),'M') 
    149  
    150         ; prints "abcdefghijklMnopqrstuvwxyz" 
    151  
    152  
    153         ; Use with strwhere function 
    154         a = 'abcabcabc' 
    155         print,strrepl(a,strwhere(a,'a'),'#') 
    156  
    157         ; prints  "#bc#bc#bc#bc#bc" 
    158  
    159        IDL> print, strrepl(a,'bc','!eeee!') 
     145 
     146  Convert one letter into upper case 
     147 
     148   IDL> abc = 'abcdefghijklmnopqrstuvwxyz' 
     149   IDL> print,strrepl(abc,strpos(abc,'m'),'M') 
     150   abcdefghijklMnopqrstuvwxyz 
     151 
     152 
     153  Use with strwhere function 
     154   IDL> a = 'abcabcabc' 
     155   IDL> print,strrepl(a,strwhere(a,'a'),'#') 
     156   #bc#bc#bc#bc#bc 
     157 
     158   IDL> print, strrepl(a,'bc','!eeee!') 
    160159       a!eeee!a!eeee!a!eeee! 
    161        IDL> print, strrepl(a,'b','0000') 
     160   IDL> print, strrepl(a,'b','0000') 
    162161       a0000ca0000ca0000 
    163        IDL> print, strrepl(a,'toto','0000') 
     162   IDL> print, strrepl(a,'toto','0000') 
    164163       abcabcabc 
    165164 
     
    167166     
    168167    <h4>Version</h4> 
    169  $Id: strrepl.pro 325 2007-12-06 10:04:53Z pinsard $ 
     168 $Id: strrepl.pro 371 2008-08-07 09:32:02Z pinsard $ 
    170169 
    171170    <h4>History</h4> 
Note: See TracChangeset for help on using the changeset viewer.