14 #include <restinio/string_view.hpp> 15 #include <restinio/compiler_features.hpp> 25 const string_view_t & where,
26 const string_view_t & what )
noexcept 28 return where.size() >= what.size() &&
29 0 == where.compare(0u, what.size(), what);
34 const string_view_t & where,
35 const string_view_t & what )
noexcept 37 return where.size() >= what.size() && 0 == where.compare(
38 where.size() - what.size(), what.size(), what);
std::enable_if< std::is_same< Parameter_Container, query_string_params_t >::value||std::is_same< Parameter_Container, router::route_params_t >::value, std::optional< Value_Type > >::type opt_value(const Parameter_Container ¶ms, string_view_t key)
Gets the value of a parameter specified by key wrapped in std::optional<Value_Type> if parameter exis...
bool starts_with(const string_view_t &where, const string_view_t &what) noexcept
bool ends_with(const string_view_t &where, const string_view_t &what) noexcept