TLA Line data Source code
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/boostorg/url
9 : //
10 :
11 : #ifndef BOOST_URL_IMPL_PARAMS_ENCODED_VIEW_HPP
12 : #define BOOST_URL_IMPL_PARAMS_ENCODED_VIEW_HPP
13 :
14 : namespace boost {
15 : namespace urls {
16 :
17 : inline
18 HIT 385 : params_encoded_view::
19 : params_encoded_view(
20 385 : detail::query_ref const& ref) noexcept
21 385 : : params_encoded_base(ref)
22 : {
23 385 : }
24 :
25 : inline
26 26 : params_encoded_view::
27 : params_encoded_view(
28 26 : core::string_view s)
29 : : params_encoded_view(
30 26 : parse_query(s).value(
31 6 : BOOST_URL_POS))
32 : {
33 20 : }
34 :
35 : inline
36 63 : params_encoded_view::
37 : operator
38 : params_view() const noexcept
39 : {
40 63 : return { ref_, encoding_opts{ true, false, false} };
41 : }
42 :
43 : } // urls
44 : } // boost
45 :
46 : #endif
|