- Timestamp:
- 07/23/09 11:18:49 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/idldoc_html_output/Obsolete/strrepl.html
r338 r402 174 174 175 175 <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!') 191 190 a!eeee!a!eeee!a!eeee! 192 191 IDL> print, strrepl(a,'b','0000') 193 192 a0000ca0000ca0000 194 193 IDL> print, strrepl(a,'toto','0000') 195 194 abcabcabc 196 195 </div> … … 198 197 199 198 <h4>Version</h4><div class="preformat"> 200 $Id: strrepl.pro 3 25 2007-12-06 10:04:53Z pinsard $199 $Id: strrepl.pro 371 2008-08-07 09:32:02Z pinsard $ 201 200 </div> 202 201 <h4>History</h4><div class="preformat">
Note: See TracChangeset
for help on using the changeset viewer.