File indexing completed on 2025-01-18 09:29:25
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_BEAST_DETAIL_STRING_HPP
0011 #define BOOST_BEAST_DETAIL_STRING_HPP
0012
0013 #include <boost/beast/core/string_type.hpp>
0014
0015 namespace boost {
0016 namespace beast {
0017
0018 namespace detail {
0019
0020
0021
0022 namespace string_literals {
0023
0024 inline
0025 string_view
0026 operator"" _sv(char const* p, std::size_t n)
0027 {
0028 return string_view{p, n};
0029 }
0030
0031 }
0032
0033 inline
0034 char
0035 ascii_tolower(char c)
0036 {
0037 return ((static_cast<unsigned>(c) - 65U) < 26) ?
0038 c + 'a' - 'A' : c;
0039 }
0040 }
0041 }
0042 }
0043
0044 #endif