OSSIA
Open Scenario System for Interactive Application
string_algorithms.hpp
1 #pragma once
2 #include <ossia/detail/string_view.hpp>
3 
4 namespace ossia
5 {
6 constexpr bool string_starts_with(std::string_view src, std::string_view prefix) noexcept
7 {
8 #if defined(__cpp_lib_starts_ends_with) && __cpp_lib_starts_ends_with >= 201711L
9  return src.starts_with(prefix);
10 #else
11  return src.rfind(prefix, 0) == 0;
12 #endif
13 }
14 }
Definition: git_info.h:7