HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/anaconda3/Library/include/boost/url/impl/parse.ipp
//
// Copyright (c) 2019 Vinnie Falco ([email protected])
// Copyright (c) 2022 Alan de Freitas ([email protected])
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/url
//

#ifndef BOOST_URL_IMPL_PARSE_IPP
#define BOOST_URL_IMPL_PARSE_IPP

#include <boost/url/parse.hpp>
#include <boost/url/rfc/absolute_uri_rule.hpp>
#include <boost/url/rfc/relative_ref_rule.hpp>
#include <boost/url/rfc/uri_rule.hpp>
#include <boost/url/rfc/uri_reference_rule.hpp>
#include <boost/url/rfc/origin_form_rule.hpp>
#include <boost/url/grammar/parse.hpp>

namespace boost {
namespace urls {

result<url_view>
parse_absolute_uri(
    string_view s)
{
    return grammar::parse(
        s, absolute_uri_rule);
}

result<url_view>
parse_origin_form(
    string_view s)
{
    return grammar::parse(
        s, origin_form_rule);
}

result<url_view>
parse_relative_ref(
    string_view s)
{
    return grammar::parse(
        s, relative_ref_rule);
}
result<url_view>
parse_uri(
    string_view s)
{
    return grammar::parse(
        s, uri_rule);
}

result<url_view>
parse_uri_reference(
    string_view s)
{
    return grammar::parse(
        s, uri_reference_rule);
}

} // urls
} // boost

#endif