- Timestamp:
- 07/23/09 11:18:49 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/idldoc_html_output/ToBeReviewed/STRING/strtok.html
r338 r402 193 193 194 194 <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 201 224 </div> 202 225 <h3>Version history</h3> 203 226 204 227 <h4>Version</h4><div class="preformat"> 205 $Id: strtok.pro 3 25 2007-12-06 10:04:53Z pinsard $228 $Id: strtok.pro 374 2008-08-08 15:12:27Z pinsard $ 206 229 </div> 207 230 <h4>History</h4><div class="preformat">
Note: See TracChangeset
for help on using the changeset viewer.