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/ToBeReviewed/STRING/strtok.html

    r338 r402  
    193193 
    194194          <h3>Examples</h3><div class="preformat"> 
    195        If old is 'foo44 bar', then strtok( old, '44' ) would return 
    196        'foo', and upon return, old will be left with ' bar'.  If /TRIM 
    197        were set, old would be 'bar' on return. 
    198  
    199        If old='xyz', then new=strtok(old,'a') would return with 
    200        new='xyz' and old=''. 
     195 If old is 'foo44 bar', then strtok( old, '44' ) would return 
     196 'foo', and upon return, old will be left with ' bar'.  If /TRIM 
     197 were set, old would be 'bar' on return. 
     198 
     199 not ok ++ 
     200   IDL> old='foo44 bar' 
     201   IDL> res=strtok( old, '44' ) 
     202   IDL> print,res 
     203       0           5 
     204   IDL> print,old 
     205      foo44 bar 
     206 
     207   IDL> old='foo44 bar' 
     208   IDL> res=strtok( old, '44',/TRIM ) 
     209   IDL> print,res 
     210       0           5 
     211   IDL> print,old 
     212      foo44 bar 
     213 
     214 not ok ++ 
     215 If old='xyz', then new=strtok(old,'a') would return with 
     216 new='xyz' and old=''. 
     217   IDL> old='xyz' 
     218   IDL> new=strtok( old, 'a' ) 
     219   IDL> print,new 
     220           0 
     221   IDL> print,old 
     222   xyz 
     223 
    201224</div> 
    202225          <h3>Version history</h3> 
    203226           
    204227          <h4>Version</h4><div class="preformat"> 
    205  $Id: strtok.pro 325 2007-12-06 10:04:53Z pinsard $ 
     228 $Id: strtok.pro 374 2008-08-08 15:12:27Z pinsard $ 
    206229</div> 
    207230          <h4>History</h4><div class="preformat"> 
Note: See TracChangeset for help on using the changeset viewer.