LCOV - code coverage report
Current view: top level - libs/url/src - segments_encoded_view.cpp (source / functions) Hit Total Coverage
Test: coverage_filtered.info Lines: 11 11 100.0 %
Date: 2024-02-29 20:02:55 Functions: 3 3 100.0 %

          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_SEGMENTS_ENCODED_VIEW_IPP
      12             : #define BOOST_URL_IMPL_SEGMENTS_ENCODED_VIEW_IPP
      13             : 
      14             : #include <boost/url/detail/config.hpp>
      15             : #include <boost/url/segments_encoded_view.hpp>
      16             : #include <boost/url/parse_path.hpp>
      17             : 
      18             : namespace boost {
      19             : namespace urls {
      20             : 
      21         824 : segments_encoded_view::
      22             : segments_encoded_view(
      23         824 :     detail::path_ref const& ref) noexcept
      24         824 :     : segments_encoded_base(ref)
      25             : {
      26         824 : }
      27             : 
      28         106 : segments_encoded_view::
      29             : segments_encoded_view(
      30         106 :     core::string_view s)
      31             :     : segments_encoded_view(
      32         106 :         parse_path(s).value(
      33         106 :             BOOST_URL_POS))
      34             : {
      35         100 : }
      36             : 
      37          41 : segments_encoded_view::
      38             : operator
      39             : segments_view() const noexcept
      40             : {
      41          41 :     return { ref_ };
      42             : }
      43             : 
      44             : } // urls
      45             : } // boost
      46             : 
      47             : #endif

Generated by: LCOV version 1.15