MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / QiFunc_replace

Method QiFunc_replace

source/src/scriptinterpreter.cpp:793–793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

791struct QiFunc_replace : public QiFunc
792{
793 QiFunc_replace() : QiFunc(2, 3) {}
794 QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override
795 {
796 return QiVar::replace_u8(args[0].toString(), args[1].toString(), args.size() > 2 ? args[2].toString() : std::string(""));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected