MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / find_command

Function find_command

src/command/command.cpp:29–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27static CommandMap cmd_map;
28
29static iterator find_command(std::string_view name) {
30 if (auto it = cmd_map.find(name); it != cmd_map.end())
31 return it;
32 throw CommandNotFound(agi::format(_("'%s' is not a valid command name"), name));
33}
34
35void reg(std::unique_ptr<Command> cmd) {
36 auto name = cmd->name();

Callers 3

unregFunction · 0.85
getFunction · 0.85
callFunction · 0.85

Calls 2

formatFunction · 0.50
endMethod · 0.45

Tested by

no test coverage detected