Line | Branch | Exec | Source |
---|---|---|---|
1 | // | ||
2 | // Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com) | ||
3 | // Copyright (c) 2022 Alan de Freitas (alandefreitas@gmail.com) | ||
4 | // | ||
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) | ||
7 | // | ||
8 | // Official repository: https://github.com/CPPAlliance/url | ||
9 | // | ||
10 | |||
11 | #ifndef BOOST_URL_IMPL_PARAMS_ENCODED_VIEW_IPP | ||
12 | #define BOOST_URL_IMPL_PARAMS_ENCODED_VIEW_IPP | ||
13 | |||
14 | #include <boost/url/detail/config.hpp> | ||
15 | #include <boost/url/params_encoded_view.hpp> | ||
16 | #include <boost/url/parse_query.hpp> | ||
17 | |||
18 | namespace boost { | ||
19 | namespace urls { | ||
20 | |||
21 | 787 | params_encoded_view:: | |
22 | params_encoded_view( | ||
23 | 787 | detail::query_ref const& ref) noexcept | |
24 | 787 | : params_encoded_base(ref) | |
25 | { | ||
26 | 787 | } | |
27 | |||
28 | 26 | params_encoded_view:: | |
29 | params_encoded_view( | ||
30 | 26 | core::string_view s) | |
31 | : params_encoded_view( | ||
32 | 26 | parse_query(s).value( | |
33 |
2/2✓ Branch 2 taken 20 times.
✓ Branch 3 taken 6 times.
|
26 | BOOST_URL_POS)) |
34 | { | ||
35 | 20 | } | |
36 | |||
37 | 63 | params_encoded_view:: | |
38 | operator | ||
39 | params_view() const noexcept | ||
40 | { | ||
41 | 63 | return { ref_, encoding_opts{} }; | |
42 | } | ||
43 | |||
44 | } // urls | ||
45 | } // boost | ||
46 | |||
47 | #endif | ||
48 |