function

First seen , last seen .

string_replace

See also: string_replace (function-call)

A built-in CFEngine function in the data category that returns a string. string_replace is called 12 times from 1 bundle or body in 1 policy file, on 100 hosts in your infrastructure.

Signature
string_replace(string, string, string, [option], ...)
Parameters
  1. string Source string (.*)
  2. string String or list of strings to replace (.*)
  3. string Replacement string or list of strings (.*)
  4. option Whether to expect strings or list of strings (strings,lists)
Variadic: at least 3 and at most 4 arguments.
Returns
string
Category
data