mirror of https://github.com/Icinga/icinga2.git
parent
900b33dc5d
commit
50310fb5bc
|
@ -150,7 +150,7 @@ Object::Ptr String::GetPrototype(void)
|
|||
prototype->Set("substr", new Function("String#substr", WrapFunction(StringSubstr), { "start", "len" }, true));
|
||||
prototype->Set("upper", new Function("String#upper", WrapFunction(StringUpper), {}, true));
|
||||
prototype->Set("lower", new Function("String#lower", WrapFunction(StringLower), {}, true));
|
||||
prototype->Set("split", new Function("String#split", WrapFunction(StringSplit), {}, true));
|
||||
prototype->Set("split", new Function("String#split", WrapFunction(StringSplit), { "delims" }, true));
|
||||
prototype->Set("find", new Function("String#find", WrapFunction(StringFind), { "str", "start" }, true));
|
||||
prototype->Set("contains", new Function("String#contains", WrapFunction(StringContains), { "str" }, true));
|
||||
prototype->Set("replace", new Function("String#replace", WrapFunction(StringReplace), { "search", "replacement" }, true));
|
||||
|
|
|
@ -217,7 +217,7 @@ Value MacroProcessor::EvaluateFunction(const Function::Ptr& func, const Resolver
|
|||
|
||||
resolvers_this->Set("macro", new Function("macro (temporary)", boost::bind(&MacroProcessor::InternalResolveMacrosShim,
|
||||
_1, boost::cref(resolvers), cr, MacroProcessor::EscapeCallback(), resolvedMacros, useResolvedMacros,
|
||||
recursionLevel + 1)));
|
||||
recursionLevel + 1), { "str" }));
|
||||
resolvers_this->Set("resolve_arguments", new Function("resolve_arguments (temporary)", boost::bind(&MacroProcessor::InternalResolveArgumentsShim,
|
||||
_1, boost::cref(resolvers), cr, resolvedMacros, useResolvedMacros,
|
||||
recursionLevel + 1)));
|
||||
|
|
Loading…
Reference in New Issue