95.00% Lines (19/20) 100.00% Functions (4/4)
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_VIEW_HPP 11   #ifndef BOOST_URL_IMPL_PARAMS_VIEW_HPP
12   #define BOOST_URL_IMPL_PARAMS_VIEW_HPP 12   #define BOOST_URL_IMPL_PARAMS_VIEW_HPP
13   13  
14   namespace boost { 14   namespace boost {
15   namespace urls { 15   namespace urls {
16   16  
17   inline 17   inline
HITCBC 18   5929 params_view:: 18   5929 params_view::
19   params_view( 19   params_view(
20   detail::query_ref const& ref, 20   detail::query_ref const& ref,
HITCBC 21   5929 encoding_opts opt) noexcept 21   5929 encoding_opts opt) noexcept
HITCBC 22   5929 : params_base(ref, opt) 22   5929 : params_base(ref, opt)
23   { 23   {
HITCBC 24   5929 } 24   5929 }
25   25  
26   //------------------------------------------------ 26   //------------------------------------------------
27   27  
28   inline 28   inline
HITCBC 29   6 params_view:: 29   6 params_view::
30   params_view( 30   params_view(
31   params_view const& other, 31   params_view const& other,
HITCBC 32   6 encoding_opts opt) noexcept 32   6 encoding_opts opt) noexcept
HITCBC 33   6 : params_base(other.ref_, opt) 33   6 : params_base(other.ref_, opt)
34   { 34   {
HITCBC 35   6 } 35   6 }
36   36  
37   inline 37   inline
HITCBC 38   11 params_view:: 38   11 params_view::
39   params_view( 39   params_view(
HITCBC 40   11 core::string_view s) 40   11 core::string_view s)
41   : params_view( 41   : params_view(
HITCBC 42   17 parse_query(s).value( 42   17 parse_query(s).value(
HITCBC 43   6 BOOST_URL_POS), 43   6 BOOST_URL_POS),
HITCBC 44   22 {true, false, false}) 44   22 {true, false, false})
45   { 45   {
HITCBC 46   5 } 46   5 }
47   47  
48   inline 48   inline
HITCBC 49   1 params_view:: 49   1 params_view::
50   params_view( 50   params_view(
51   core::string_view s, 51   core::string_view s,
HITCBC 52   1 encoding_opts opt) 52   1 encoding_opts opt)
53   : params_view( 53   : params_view(
HITCBC 54   1 parse_query(s).value( 54   1 parse_query(s).value(
MISUBC 55   BOOST_URL_POS), 55   BOOST_URL_POS),
HITCBC 56   1 opt) 56   1 opt)
57   { 57   {
HITCBC 58   1 } 58   1 }
59   59  
60   } // urls 60   } // urls
61   } // boost 61   } // boost
62   62  
63   #endif 63   #endif