100.00% Lines (2/2)
100.00% Functions (1/1)
| TLA | Baseline | Branch | ||||||
|---|---|---|---|---|---|---|---|---|
| Line | Hits | Code | Line | Hits | Code | |||
| 1 | // | 1 | // | |||||
| 2 | // Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com) | 2 | // Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com) | |||||
| 3 | // | 3 | // | |||||
| 4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | 4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | |||||
| 5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | 5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |||||
| 6 | // | 6 | // | |||||
| 7 | // Official repository: https://github.com/cppalliance/http | 7 | // Official repository: https://github.com/cppalliance/http | |||||
| 8 | // | 8 | // | |||||
| 9 | 9 | |||||||
| 10 | #ifndef BOOST_HTTP_DETAIL_SV_HPP | 10 | #ifndef BOOST_HTTP_DETAIL_SV_HPP | |||||
| 11 | #define BOOST_HTTP_DETAIL_SV_HPP | 11 | #define BOOST_HTTP_DETAIL_SV_HPP | |||||
| 12 | 12 | |||||||
| 13 | #include <boost/core/detail/string_view.hpp> | 13 | #include <boost/core/detail/string_view.hpp> | |||||
| 14 | 14 | |||||||
| 15 | namespace boost { | 15 | namespace boost { | |||||
| 16 | namespace http { | 16 | namespace http { | |||||
| 17 | namespace detail { | 17 | namespace detail { | |||||
| 18 | 18 | |||||||
| 19 | // Pulling in the UDL directly breaks in some places on MSVC, | 19 | // Pulling in the UDL directly breaks in some places on MSVC, | |||||
| 20 | // so introduce a namespace for this purprose. | 20 | // so introduce a namespace for this purprose. | |||||
| 21 | namespace string_literals { | 21 | namespace string_literals { | |||||
| 22 | inline | 22 | inline | |||||
| 23 | core::string_view | 23 | core::string_view | |||||
| HITCBC | 24 | 9623 | operator""_sv( | 24 | 9623 | operator""_sv( | ||
| 25 | char const* p, | 25 | char const* p, | |||||
| 26 | std::size_t n) noexcept | 26 | std::size_t n) noexcept | |||||
| 27 | { | 27 | { | |||||
| HITCBC | 28 | 9623 | return core::string_view(p, n); | 28 | 9623 | return core::string_view(p, n); | ||
| 29 | } | 29 | } | |||||
| 30 | } // string_literals | 30 | } // string_literals | |||||
| 31 | 31 | |||||||
| 32 | } // detail | 32 | } // detail | |||||
| 33 | } // http | 33 | } // http | |||||
| 34 | } // boost | 34 | } // boost | |||||
| 35 | 35 | |||||||
| 36 | #endif | 36 | #endif | |||||