Mercurial > hg > octave-nkf
comparison scripts/strings/strrep.m @ 8525:bf6befcfa70a
strrep.m: doc fix
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 15 Jan 2009 14:40:02 -0500 |
parents | cadc73247d65 |
children | eb63fbe60fab |
comparison
equal
deleted
inserted
replaced
8524:937921654627 | 8525:bf6befcfa70a |
---|---|
17 ## along with Octave; see the file COPYING. If not, see | 17 ## along with Octave; see the file COPYING. If not, see |
18 ## <http://www.gnu.org/licenses/>. | 18 ## <http://www.gnu.org/licenses/>. |
19 | 19 |
20 ## -*- texinfo -*- | 20 ## -*- texinfo -*- |
21 ## @deftypefn {Function File} {} strrep (@var{s}, @var{x}, @var{y}) | 21 ## @deftypefn {Function File} {} strrep (@var{s}, @var{x}, @var{y}) |
22 ## Replaces all occurrences of the substring @var{x} of the string @var{s} | 22 ## Replace all occurrences of the substring @var{x} of the string @var{s} |
23 ## with the string @var{y} and returns the result. For example, | 23 ## with the string @var{y} and return the result. For example, |
24 ## | 24 ## |
25 ## @example | 25 ## @example |
26 ## strrep ("This is a test string", "is", "&%$") | 26 ## strrep ("This is a test string", "is", "&%$") |
27 ## @result{} "Th&%$ &%$ a test string" | 27 ## @result{} "Th&%$ &%$ a test string" |
28 ## @end example | 28 ## @end example |