14 #include <restinio/impl/to_lower_lut.hpp> 15 #include <restinio/string_view.hpp> 27 uchar_at(
const char *
const from,
const std::size_t at )
noexcept 29 return static_cast<
unsigned char >( from[ at ] );
43 std::size_t size )
noexcept 47 const unsigned char *
const table = to_lower_lut<
unsigned char >();
49 for( std::size_t i = 0; i < size; ++i )
50 if( table[ uchar_at( a, i ) ] != table[ uchar_at( b, i ) ] )
66 std::size_t b_size )
noexcept 68 if( a_size == b_size )
70 return is_equal_caseless( a, b, a_size );
84 return is_equal_caseless( a.data(), a.size(), b.data(), b.size() );
bool is_equal_caseless(const char *a, std::size_t a_size, const char *b, std::size_t b_size) noexcept
Comparator for fields names.
constexpr auto uchar_at(const char *const from, const std::size_t at) noexcept
RESTINIO_NODISCARD char to_lower_case(unsigned char ch)
bool is_equal_caseless(const char *a, const char *b, std::size_t size) noexcept
Comparator for fields names.
bool is_equal_caseless(string_view_t a, string_view_t b) noexcept
Comparator for fields names.
std::enable_if< std::is_same< Parameter_Container, query_string_params_t >::value||std::is_same< Parameter_Container, router::route_params_t >::value, optional_t< Value_Type > >::type opt_value(const Parameter_Container ¶ms, string_view_t key)
Gets the value of a parameter specified by key wrapped in optional_t<Value_Type> if parameter exists ...