MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / getModulatorsWildcardLua

Method getModulatorsWildcardLua

Source/Lua/CtrlrLuaManager.cpp:541–559  ·  view source on GitHub ↗

@brief Get a list of modulators using a wildcard applied to their names @param wildcardMatch the wildcard to use @param ignoreCase ignore case when matching */

Source from the content-addressed store, hash-verified

539@param ignoreCase ignore case when matching
540*/
541luabind::object CtrlrPanel::getModulatorsWildcardLua (const String &wildcardMatch, const bool ignoreCase)
542{
543 using namespace luabind;
544 object table = newtable (getCtrlrLuaManager().getLuaState());
545
546 for (int i = 0; i<ctrlrModulators.size(); i++)
547 {
548 if (ctrlrModulators[i]->getName().matchesWildcard (wildcardMatch, ignoreCase))
549 {
550 table[i + 1] = ctrlrModulators[i];
551 }
552 else
553 {
554 table[i + 1] = 0;
555 }
556 }
557
558 return (table);
559}
560
561luabind::object CtrlrPanel::getModulatorsWildcardLua (const String &wildcardMatch, const String &propertyToMatch, const bool ignoreCase)
562{

Callers

nothing calls this directly

Calls 7

newtableFunction · 0.85
matchesWildcardMethod · 0.80
getNameMethod · 0.65
getLuaStateMethod · 0.45
sizeMethod · 0.45
toStringMethod · 0.45
getPropertyMethod · 0.45

Tested by

no test coverage detected