| 9 | #include <cassert> |
| 10 | |
| 11 | bool |
| 12 | DecoderPlugin::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]] |
| 24 | static bool |