MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / SupportsUri

Method SupportsUri

src/decoder/DecoderPlugin.cxx:11–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include <cassert>
10
11bool
12DecoderPlugin::SupportsUri(const char *uri) const noexcept
13{
14 if (protocols != nullptr) {
15 const auto p = protocols();
16 return std::any_of(p.begin(), p.end(), [uri](const auto &schema)
17 { return StringStartsWithIgnoreCase(uri, schema.c_str()); } );
18 }
19
20 return false;
21}
22
23[[gnu::pure]]
24static bool

Callers 1

TryUriDecodeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected