- Timestamp:
- 07/23/09 11:18:49 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/idldoc_assistant_output/Obsolete/strrepl.html
r338 r402 143 143 144 144 <h3>Examples</h3><pre> 145 ; Convert one letter into upper case 146 147 abc = 'abcdefghijklmnopqrstuvwxyz' 148 print,strrepl(abc,strpos(abc,'m'),'M') 149 150 ; prints "abcdefghijklMnopqrstuvwxyz" 151 152 153 ; Use with strwhere function 154 a = 'abcabcabc' 155 print,strrepl(a,strwhere(a,'a'),'#') 156 157 ; prints "#bc#bc#bc#bc#bc" 158 159 IDL> print, strrepl(a,'bc','!eeee!') 145 146 Convert one letter into upper case 147 148 IDL> abc = 'abcdefghijklmnopqrstuvwxyz' 149 IDL> print,strrepl(abc,strpos(abc,'m'),'M') 150 abcdefghijklMnopqrstuvwxyz 151 152 153 Use with strwhere function 154 IDL> a = 'abcabcabc' 155 IDL> print,strrepl(a,strwhere(a,'a'),'#') 156 #bc#bc#bc#bc#bc 157 158 IDL> print, strrepl(a,'bc','!eeee!') 160 159 a!eeee!a!eeee!a!eeee! 161 160 IDL> print, strrepl(a,'b','0000') 162 161 a0000ca0000ca0000 163 162 IDL> print, strrepl(a,'toto','0000') 164 163 abcabcabc 165 164 … … 167 166 168 167 <h4>Version</h4> 169 $Id: strrepl.pro 3 25 2007-12-06 10:04:53Z pinsard $168 $Id: strrepl.pro 371 2008-08-07 09:32:02Z pinsard $ 170 169 171 170 <h4>History</h4>
Note: See TracChangeset
for help on using the changeset viewer.