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

Method ParsePluginPath

libraries/lib-vst3/VST3Utils.cpp:74–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74bool VST3Utils::ParsePluginPath(const wxString& pluginPath, wxString* modulePath,
75 std::string* effectUIDString)
76{
77 const auto sep = pluginPath.Find(';', true);
78 if(sep != wxNOT_FOUND &&
79 //modulePath not empty
80 sep > 0 &&
81 //effectUIDString not empty
82 static_cast<size_t>(sep) < pluginPath.Length() - 1)
83 {
84 if(modulePath != nullptr)
85 *modulePath = pluginPath.Left(sep);
86 if(effectUIDString != nullptr)
87 *effectUIDString = pluginPath.Mid(static_cast<size_t>(sep) + 1);
88 return true;
89 }
90 return false;
91}
92
93wxString VST3Utils::ToWxString(const Steinberg::Vst::TChar* str)
94{

Callers

nothing calls this directly

Calls 2

LengthMethod · 0.80
FindMethod · 0.45

Tested by

no test coverage detected