include/boost/url/impl/segments_view.hpp
100.0% Lines (14/14)
100.0% List of functions (4/4)
Functions (4)
Function
Calls
Lines
Blocks
boost::urls::segments_view::segments_view()
:20
2x
100.0%
100.0%
boost::urls::segments_view::segments_view(boost::urls::detail::path_ref const&)
:24
5843x
100.0%
100.0%
boost::urls::segments_view::segments_view(boost::core::basic_string_view<char>)
:32
19x
100.0%
100.0%
boost::urls::segments_view::segments_view(boost::urls::segments_base::iterator, boost::urls::segments_base::iterator)
:42
20x
100.0%
100.0%
| Line | TLA | Hits | 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_SEGMENTS_VIEW_HPP | ||
| 12 | #define BOOST_URL_IMPL_SEGMENTS_VIEW_HPP | ||
| 13 | |||
| 14 | #include <boost/url/detail/segments_range.hpp> | ||
| 15 | |||
| 16 | namespace boost { | ||
| 17 | namespace urls { | ||
| 18 | |||
| 19 | inline | ||
| 20 | 2x | segments_view:: | |
| 21 | segments_view() noexcept = default; | ||
| 22 | |||
| 23 | inline | ||
| 24 | 5843x | segments_view:: | |
| 25 | segments_view( | ||
| 26 | 5843x | detail::path_ref const& ref) noexcept | |
| 27 | 5843x | : segments_base(ref) | |
| 28 | { | ||
| 29 | 5843x | } | |
| 30 | |||
| 31 | inline | ||
| 32 | 19x | segments_view:: | |
| 33 | segments_view( | ||
| 34 | 19x | core::string_view s) | |
| 35 | : segments_base( | ||
| 36 | 25x | parse_path(s).value( | |
| 37 | 19x | BOOST_URL_POS)) | |
| 38 | { | ||
| 39 | 13x | } | |
| 40 | |||
| 41 | inline | ||
| 42 | 20x | segments_view:: | |
| 43 | 20x | segments_view(iterator first, iterator last) noexcept | |
| 44 | 20x | : segments_base(detail::make_subref(first, last)) | |
| 45 | { | ||
| 46 | 20x | } | |
| 47 | |||
| 48 | } // urls | ||
| 49 | } // boost | ||
| 50 | |||
| 51 | #endif | ||
| 52 |