Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:29:25

0001 //
0002 // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
0003 //
0004 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0005 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 // Official repository: https://github.com/boostorg/beast
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 // Pulling in the UDL directly breaks in some places on MSVC,
0021 // so introduce a namespace for this purprose.
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 } // string_literals
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 } // detail
0041 } // beast
0042 } // boost
0043 
0044 #endif