@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 */
| 539 | @param ignoreCase ignore case when matching |
| 540 | */ |
| 541 | luabind::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 | |
| 561 | luabind::object CtrlrPanel::getModulatorsWildcardLua (const String &wildcardMatch, const String &propertyToMatch, const bool ignoreCase) |
| 562 | { |
nothing calls this directly
no test coverage detected