comparison scripts/strings/strrep.m @ 11910:9d46d257f6ef release-3-0-x

strrep.m: specify what is the return value
author Francesco Potortì <pot@gnu.org>
date Mon, 12 Jan 2009 10:56:19 +0100
parents a1dbe9d80eee
children
comparison
equal deleted inserted replaced
11909:759e54fb0eed 11910:9d46d257f6ef
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 ## Replaces all occurrences of the substring @var{x} of the string @var{s}
23 ## with the string @var{y}. For example, 23 ## with the string @var{y} and returns 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