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
}
ossia
Definition:
git_info.h:7
src
ossia
detail
string_algorithms.hpp
Generated on Thu May 2 2024 19:57:38 for OSSIA by
1.9.1