LCOV - code coverage report
Current view: top level - libs/url/src - segments_view.cpp (source / functions) Hit Total Coverage
Test: coverage_filtered.info Lines: 9 9 100.0 %
Date: 2024-01-19 15:42:53 Functions: 2 2 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_VIEW_IPP
      12             : #define BOOST_URL_IMPL_SEGMENTS_VIEW_IPP
      13             : 
      14             : #include <boost/url/detail/config.hpp>
      15             : #include <boost/url/segments_view.hpp>
      16             : #include <boost/url/parse_path.hpp>
      17             : 
      18             : namespace boost {
      19             : namespace urls {
      20             : 
      21          87 : segments_view::
      22             : segments_view(
      23          87 :     detail::path_ref const& ref) noexcept
      24          87 :     : segments_base(ref)
      25             : {
      26          87 : }
      27             : 
      28          19 : segments_view::
      29             : segments_view(
      30          19 :     core::string_view s)
      31             :     : segments_view(
      32          19 :         parse_path(s).value(
      33          19 :             BOOST_URL_POS))
      34             : {
      35          13 : }
      36             : 
      37             : } // urls
      38             : } // boost
      39             : 
      40             : #endif

Generated by: LCOV version 1.15