10constexpr bool startsWith(std::string_view s, T start) {
11#ifdef __cpp_lib_starts_ends_with
12 return s.starts_with(start);
14 return s.find(start) == 0;
19constexpr bool contains(std::string_view s, T c) {
20#ifdef __cpp_lib_string_contains
23 return s.find(c) != std::string_view::npos;
28std::string
upper(
const std::string& str);
31std::string
lower(
const std::string& a);
Helper structure for the Matroska tags lookup table.
Definition matroskavideo.hpp:39
std::string lower(const std::string &a)
Returns the lowercase version of str.
Definition utils.cpp:14
std::string upper(const std::string &str)
Returns the uppercase version of str.
Definition utils.cpp:8