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_html_output/Obsolete/strrepl.html

    r338 r402  
    174174 
    175175          <h3>Examples</h3><div class="preformat"> 
    176         ; Convert one letter into upper case 
    177  
    178         abc = 'abcdefghijklmnopqrstuvwxyz' 
    179         print,strrepl(abc,strpos(abc,'m'),'M') 
    180  
    181         ; prints "abcdefghijklMnopqrstuvwxyz" 
    182  
    183  
    184         ; Use with strwhere function 
    185         a = 'abcabcabc' 
    186         print,strrepl(a,strwhere(a,'a'),'#') 
    187  
    188         ; prints  "#bc#bc#bc#bc#bc" 
    189  
    190        IDL> print, strrepl(a,'bc','!eeee!') 
     176 
     177  Convert one letter into upper case 
     178 
     179   IDL> abc = 'abcdefghijklmnopqrstuvwxyz' 
     180   IDL> print,strrepl(abc,strpos(abc,'m'),'M') 
     181   abcdefghijklMnopqrstuvwxyz 
     182 
     183 
     184  Use with strwhere function 
     185   IDL> a = 'abcabcabc' 
     186   IDL> print,strrepl(a,strwhere(a,'a'),'#') 
     187   #bc#bc#bc#bc#bc 
     188 
     189   IDL> print, strrepl(a,'bc','!eeee!') 
    191190       a!eeee!a!eeee!a!eeee! 
    192        IDL> print, strrepl(a,'b','0000') 
     191   IDL> print, strrepl(a,'b','0000') 
    193192       a0000ca0000ca0000 
    194        IDL> print, strrepl(a,'toto','0000') 
     193   IDL> print, strrepl(a,'toto','0000') 
    195194       abcabcabc 
    196195</div> 
     
    198197           
    199198          <h4>Version</h4><div class="preformat"> 
    200  $Id: strrepl.pro 325 2007-12-06 10:04:53Z pinsard $ 
     199 $Id: strrepl.pro 371 2008-08-07 09:32:02Z pinsard $ 
    201200</div> 
    202201          <h4>History</h4><div class="preformat"> 
Note: See TracChangeset for help on using the changeset viewer.