libs/url/src/detail/vformat.cpp

100.0% Lines (4/4) 100.0% Functions (1/1) 100.0% Branches (3/3)
libs/url/src/detail/vformat.cpp
Line Branch Hits Source Code
1 //
2 // Copyright (c) 2022 Alan de Freitas (alandefreitas@gmail.com)
3 //
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)
6 //
7 // Official repository: https://github.com/boostorg/url
8 //
9
10
11 #include <boost/url/detail/config.hpp>
12 #include <boost/url/detail/vformat.hpp>
13 #include "pattern.hpp"
14
15 namespace boost {
16 namespace urls {
17 namespace detail {
18
19 void
20 155 vformat_to(
21 url_base& u,
22 core::string_view fmt,
23 detail::format_args args)
24 {
25
1/1
✓ Branch 1 taken 155 times.
166 parse_pattern(fmt)
26
2/2
✓ Branch 2 taken 148 times.
✓ Branch 5 taken 144 times.
155 .value().apply(u, args);
27 144 }
28
29
30 } // detail
31 } // urls
32 } // boost
33
34