MCPcopy Create free account
hub / github.com/audacity/audacity / ByCommandId

Method ByCommandId

src/BatchCommands.cpp:428–435  ·  view source on GitHub ↗

linear search

Source from the content-addressed store, hash-verified

426
427// linear search
428auto MacroCommandsCatalog::ByCommandId( const CommandID &commandId ) const
429 -> Entries::const_iterator
430{
431 // Maybe this too should have a uniqueness check?
432 return std::find_if( begin(), end(),
433 [&](const Entry &entry)
434 { return entry.name.Internal() == commandId; });
435}
436
437// linear search
438auto MacroCommandsCatalog::ByTranslation(const wxString &translation) const

Callers 4

AddItemMethod · 0.80
SetCommandAndParamsMethod · 0.80
ApplyMacroMethod · 0.80
ApplyMethod · 0.80

Calls 2

beginFunction · 0.50
endFunction · 0.50

Tested by

no test coverage detected