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

    r338 r402  
    162162 
    163163    <h3>Examples</h3><pre> 
    164        If old is 'foo44 bar', then strtok( old, '44' ) would return 
    165        'foo', and upon return, old will be left with ' bar'.  If /TRIM 
    166        were set, old would be 'bar' on return. 
    167  
    168        If old='xyz', then new=strtok(old,'a') would return with 
    169        new='xyz' and old=''. 
     164 If old is 'foo44 bar', then strtok( old, '44' ) would return 
     165 'foo', and upon return, old will be left with ' bar'.  If /TRIM 
     166 were set, old would be 'bar' on return. 
     167 
     168 not ok ++ 
     169   IDL> old='foo44 bar' 
     170   IDL> res=strtok( old, '44' ) 
     171   IDL> print,res 
     172       0           5 
     173   IDL> print,old 
     174      foo44 bar 
     175 
     176   IDL> old='foo44 bar' 
     177   IDL> res=strtok( old, '44',/TRIM ) 
     178   IDL> print,res 
     179       0           5 
     180   IDL> print,old 
     181      foo44 bar 
     182 
     183 not ok ++ 
     184 If old='xyz', then new=strtok(old,'a') would return with 
     185 new='xyz' and old=''. 
     186   IDL> old='xyz' 
     187   IDL> new=strtok( old, 'a' ) 
     188   IDL> print,new 
     189           0 
     190   IDL> print,old 
     191   xyz 
     192 
    170193 
    171194    </pre><h3>Version history</h3> 
    172195     
    173196    <h4>Version</h4> 
    174  $Id: strtok.pro 325 2007-12-06 10:04:53Z pinsard $ 
     197 $Id: strtok.pro 374 2008-08-08 15:12:27Z pinsard $ 
    175198 
    176199    <h4>History</h4> 
Note: See TracChangeset for help on using the changeset viewer.