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

Method exec

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

Source from the content-addressed store, hash-verified

776{
777 QiFunc_find() : QiFunc(2, 3) {}
778 QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override
779 {
780 size_t i = QiVar::find(args[0].toString(), args[1].toString(), args.size() > 2 ? args[2].toInteger() : 0);
781 return i == std::string::npos ? -1ll : i;
782 }
783};
784/*
785any value

Callers

nothing calls this directly

Calls 4

toIntegerMethod · 0.80
findMethod · 0.45
toStringMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected