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
18  
params_view::
18  
params_view::
19  
params_view(
19  
params_view(
20  
    detail::query_ref const& ref,
20  
    detail::query_ref const& ref,
21  
    encoding_opts opt) noexcept
21  
    encoding_opts opt) noexcept
22  
    : params_base(ref, opt)
22  
    : params_base(ref, opt)
23  
{
23  
{
24  
}
24  
}
25  

25  

26  
//------------------------------------------------
26  
//------------------------------------------------
27  

27  

28  
inline
28  
inline
29  
params_view::
29  
params_view::
30  
params_view(
30  
params_view(
31  
    params_view const& other,
31  
    params_view const& other,
32  
    encoding_opts opt) noexcept
32  
    encoding_opts opt) noexcept
33  
    : params_base(other.ref_, opt)
33  
    : params_base(other.ref_, opt)
34  
{
34  
{
35  
}
35  
}
36  

36  

37  
inline
37  
inline
38  
params_view::
38  
params_view::
39  
params_view(
39  
params_view(
40  
    core::string_view s)
40  
    core::string_view s)
41  
    : params_view(
41  
    : params_view(
42  
        parse_query(s).value(
42  
        parse_query(s).value(
43  
            BOOST_URL_POS),
43  
            BOOST_URL_POS),
44  
        {true, false, false})
44  
        {true, false, false})
45  
{
45  
{
46  
}
46  
}
47  

47  

48  
inline
48  
inline
49  
params_view::
49  
params_view::
50  
params_view(
50  
params_view(
51  
    core::string_view s,
51  
    core::string_view s,
52  
    encoding_opts opt)
52  
    encoding_opts opt)
53  
    : params_view(
53  
    : params_view(
54  
        parse_query(s).value(
54  
        parse_query(s).value(
55  
            BOOST_URL_POS),
55  
            BOOST_URL_POS),
56  
        opt)
56  
        opt)
57  
{
57  
{
58  
}
58  
}
59  

59  

60  
} // urls
60  
} // urls
61  
} // boost
61  
} // boost
62  

62  

63  
#endif
63  
#endif