diff scripts/strings/strrep.m @ 3361:4f40efa995c1

[project @ 1999-11-19 21:19:37 by jwe]
author jwe
date Fri, 19 Nov 1999 21:19:44 +0000
parents c17387059fd3
children f8dde1807dee
line wrap: on
line diff
--- a/scripts/strings/strrep.m	Fri Nov 19 05:15:27 1999 +0000
+++ b/scripts/strings/strrep.m	Fri Nov 19 21:19:44 1999 +0000
@@ -17,10 +17,16 @@
 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 
-## usage:  strrep (s, x, y)
-##
-## Replace all occurences of the substring x of the string s with the
-## string y.
+## -*- texinfo -*-
+## @deftypefn {Function File} {} strrep (@var{s}, @var{x}, @var{y})
+## Replaces all occurrences of the substring @var{x} of the string @var{s}
+## with the string @var{y}.  For example,
+## 
+## @example
+## strrep ("This is a test string", "is", "&%$")
+##      @result{} "Th&%$ &%$ a test string"
+## @end example
+## @end deftypefn
 
 ## Author: Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at>
 ## Created: 11 November 1994