1  
//
1  
//
2  
// Copyright (c) 2022 Alan de Freitas (alandefreitas@gmail.com)
2  
// Copyright (c) 2022 Alan de Freitas (alandefreitas@gmail.com)
3  
//
3  
//
4  
// Distributed under the Boost Software License, Version 1.0. (See accompanying
4  
// Distributed under the Boost Software License, Version 1.0. (See accompanying
5  
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5  
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6  
//
6  
//
7  
// Official repository: https://github.com/boostorg/url
7  
// Official repository: https://github.com/boostorg/url
8  
//
8  
//
9  

9  

10  

10  

11  
#include <boost/url/detail/config.hpp>
11  
#include <boost/url/detail/config.hpp>
12  
#include <boost/url/detail/vformat.hpp>
12  
#include <boost/url/detail/vformat.hpp>
13  
#include "pattern.hpp"
13  
#include "pattern.hpp"
14  

14  

15  
namespace boost {
15  
namespace boost {
16  
namespace urls {
16  
namespace urls {
17  
namespace detail {
17  
namespace detail {
18  

18  

19  
void
19  
void
20  
vformat_to(
20  
vformat_to(
21  
    url_base& u,
21  
    url_base& u,
22  
    core::string_view fmt,
22  
    core::string_view fmt,
23  
    detail::format_args args)
23  
    detail::format_args args)
24  
{
24  
{
25  
    parse_pattern(fmt)
25  
    parse_pattern(fmt)
26  
        .value().apply(u, args);
26  
        .value().apply(u, args);
27  
}
27  
}
28  

28  

29  

29  

30  
} // detail
30  
} // detail
31  
} // urls
31  
} // urls
32  
} // boost
32  
} // boost
33  

33