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_PARSE_HPP
 
12 +
#define BOOST_URL_IMPL_PARSE_HPP
 
13 +

 
14 +
#include <boost/url/detail/config.hpp>
 
15 +
#include <boost/url/detail/except.hpp>
 
16 +

 
17 +
// Each RFC rule impl header defines the corresponding
 
18 +
// parse convenience function (e.g., parse_uri_reference
 
19 +
// is defined in rfc/impl/uri_reference_rule.hpp).
 
20 +
#include <boost/url/rfc/absolute_uri_rule.hpp>
 
21 +
#include <boost/url/rfc/relative_ref_rule.hpp>
 
22 +
#include <boost/url/rfc/uri_rule.hpp>
 
23 +
#include <boost/url/rfc/uri_reference_rule.hpp>
 
24 +
#include <boost/url/rfc/origin_form_rule.hpp>
 
25 +

 
26 +
namespace boost {
 
27 +
namespace urls {
 
28 +

 
29 +
inline
 
30 +
url_view::
 
31 +
url_view(core::string_view s)
 
32 +
    : url_view(parse_uri_reference(s
 
33 +
        ).value(BOOST_URL_POS))
 
34 +
{
 
35 +
}
 
36 +

 
37 +
} // urls
 
38 +
} // boost
 
39 +

 
40 +
#endif