Branch: Tag:

2001-02-06

2001-02-06 23:48:23 by Martin Nilsson <mani@lysator.liu.se>

Added missing use of replace

Rev: src/builtin_functions.c:1.341

5:   \*/   /**/   #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.340 2001/02/06 15:43:01 grubba Exp $"); + RCSID("$Id: builtin_functions.c,v 1.341 2001/02/06 23:48:23 nilsson Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"
3037:      /*! @decl string replace(string s, string from, string to)    *! @decl string replace(string s, array(string) from, array(string) to) +  *! @decl string replace(string s, mapping(string:string) replacements)    *! @decl array replace(array a, mixed from, mixed to)    *! @decl mapping replace(mapping a, mixed from, mixed to)    *!
3050:    *!    *! If the first argument is a string, and the others array(string), a string    *! with every occurrance of @[from][@i{i@}] in @[s] replaced with -  *! @[to][@i{i@}] will be returned. +  *! @[to][@i{i@}] will be returned. Instead of the arrays @[from] and @[to] +  *! a mapping eqivivalent to mkmapping(from,to) can be used.    *!    *! If the first argument is an array or mapping, the values of @[a] which    *! are @[`==()] with @[from] will be replaced with @[to] destructively.