comparison scripts/strings/strrep.m @ 2311:2b5788792cad

[project @ 1996-07-11 20:18:38 by jwe]
author jwe
date Thu, 11 Jul 1996 20:18:38 +0000
parents 5cffc4b8de57
children 204cc7db6f4a
comparison
equal deleted inserted replaced
2310:e2a8f216373d 2311:2b5788792cad
15 ### You should have received a copy of the GNU General Public License 15 ### You should have received a copy of the GNU General Public License
16 ### along with Octave; see the file COPYING. If not, write to the Free 16 ### along with Octave; see the file COPYING. If not, write to the Free
17 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA 17 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA
18 ### 02111-1307, USA. 18 ### 02111-1307, USA.
19 19
20 ## usage: strrep (s, x, y)
21 ##
22 ## Replace all occurences of the substring x of the string s with the
23 ## string y.
24
20 function t = strrep (s, x, y) 25 function t = strrep (s, x, y)
21 26
22 ## usage: strrep (s, x, y) 27 ## Written by Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> on 1994/10/11
23 ##
24 ## Replace all occurences of the substring x of the string s with the
25 ## string y.
26
27 ## Written by Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> on 1994/10/11
28 ## Updated by Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> on 1996/05/25 28 ## Updated by Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> on 1996/05/25
29 29
30 if (nargin <> 3) 30 if (nargin <> 3)
31 usage ("strrep (s, x, y)"); 31 usage ("strrep (s, x, y)");
32 endif 32 endif