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

Method FindFormat

libraries/lib-import-export/ExportPluginRegistry.cpp:71–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71std::tuple<ExportPlugin*, int>
72ExportPluginRegistry::FindFormat(const wxString& format, bool compareWithCase) const
73{
74 for(auto t: *this)
75 {
76 const auto [plugin, formatIndex] = t;
77 if(plugin->GetFormatInfo(formatIndex).format.IsSameAs(format, compareWithCase))
78 return t;
79 }
80 return {};
81}

Callers 4

TimerRecordDialogMethod · 0.80
ApplyMethod · 0.80
DoExportFunction · 0.80

Calls 2

IsSameAsMethod · 0.45
GetFormatInfoMethod · 0.45

Tested by

no test coverage detected