100.00% Lines (11/11) 100.00% Functions (3/3)
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   // Copyright (c) 2022 Alan de Freitas (alandefreitas@gmail.com) 3   // Copyright (c) 2022 Alan de Freitas (alandefreitas@gmail.com)
4   // 4   //
5   // Distributed under the Boost Software License, Version 1.0. (See accompanying 5   // Distributed under the Boost Software License, Version 1.0. (See accompanying
6   // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 6   // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7   // 7   //
8   // Official repository: https://github.com/boostorg/url 8   // Official repository: https://github.com/boostorg/url
9   // 9   //
10   10  
11   #ifndef BOOST_URL_IMPL_PARAMS_ENCODED_VIEW_HPP 11   #ifndef BOOST_URL_IMPL_PARAMS_ENCODED_VIEW_HPP
12   #define BOOST_URL_IMPL_PARAMS_ENCODED_VIEW_HPP 12   #define BOOST_URL_IMPL_PARAMS_ENCODED_VIEW_HPP
13   13  
14   namespace boost { 14   namespace boost {
15   namespace urls { 15   namespace urls {
16   16  
17   inline 17   inline
HITCBC 18   3463 params_encoded_view:: 18   3463 params_encoded_view::
19   params_encoded_view( 19   params_encoded_view(
HITCBC 20   3463 detail::query_ref const& ref) noexcept 20   3463 detail::query_ref const& ref) noexcept
HITCBC 21   3463 : params_encoded_base(ref) 21   3463 : params_encoded_base(ref)
22   { 22   {
HITCBC 23   3463 } 23   3463 }
24   24  
25   inline 25   inline
HITCBC 26   26 params_encoded_view:: 26   26 params_encoded_view::
27   params_encoded_view( 27   params_encoded_view(
HITCBC 28   26 core::string_view s) 28   26 core::string_view s)
29   : params_encoded_view( 29   : params_encoded_view(
HITCBC 30   26 parse_query(s).value( 30   26 parse_query(s).value(
HITCBC 31   6 BOOST_URL_POS)) 31   6 BOOST_URL_POS))
32   { 32   {
HITCBC 33   20 } 33   20 }
34   34  
35   inline 35   inline
HITCBC 36   63 params_encoded_view:: 36   63 params_encoded_view::
37   operator 37   operator
38   params_view() const noexcept 38   params_view() const noexcept
39   { 39   {
HITCBC 40   63 return { ref_, encoding_opts{ true, false, false} }; 40   63 return { ref_, encoding_opts{ true, false, false} };
41   } 41   }
42   42  
43   } // urls 43   } // urls
44   } // boost 44   } // boost
45   45  
46   #endif 46   #endif