pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2001-02-06
2001-02-06 23:48:23 by Martin Nilsson <mani@lysator.liu.se>
bd33e799e7774a33e8ff1b42553dd2c8cc6357cd (
7
lines) (+
5
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
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.