include/boost/url/grammar/impl/range_rule.hpp
84.7% Lines (521/615)
87.0% List of functions (120/138)
Functions (138)
Function
Calls
Lines
Blocks
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl_base::~impl_base()
:42
133x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::impl_base::~impl_base()
:42
902x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl_base::move(void*)
:46
1x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::impl_base::move(void*)
:46
0
0.0%
0.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl_base::copy(void*) const
:54
1x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::impl_base::copy(void*) const
:54
0
0.0%
0.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl_base::first(char const*&, char const*) const
:61
1x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::impl_base::first(char const*&, char const*) const
:61
0
0.0%
0.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl_base::next(char const*&, char const*) const
:70
1x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::impl_base::next(char const*&, char const*) const
:70
0
0.0%
0.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, true>::impl1(boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> const&)
:88
1x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> >, true>::impl1(boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> > const&)
:88
1x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >, true>::impl1(boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> > const&)
:88
11x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, true>::impl1(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, true>&&)
:96
3x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> >, true>::impl1(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> >, true>&&)
:96
3x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >, true>::impl1(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >, true>&&)
:96
43x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, true>::impl1(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, true> const&)
:97
0
0.0%
0.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> >, true>::impl1(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> >, true> const&)
:97
0
0.0%
0.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >, true>::impl1(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >, true> const&)
:97
2x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, true>::move(void*)
:100
3x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> >, true>::move(void*)
:100
3x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >, true>::move(void*)
:100
43x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, true>::copy(void*) const
:108
0
0.0%
0.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> >, true>::copy(void*) const
:108
0
0.0%
0.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >, true>::copy(void*) const
:108
2x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, true>::first(char const*&, char const*) const
:115
0
0.0%
0.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> >, true>::first(char const*&, char const*) const
:115
1x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >, true>::first(char const*&, char const*) const
:115
4x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, true>::next(char const*&, char const*) const
:125
0
0.0%
0.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> >, true>::next(char const*&, char const*) const
:125
3x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >, true>::next(char const*&, char const*) const
:125
5x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::range_rule_test::big_rule, false>::impl1(boost::urls::grammar::range_rule_test::big_rule const&)
:144
6x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::range_rule_test::big_rule, false>::impl1(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::range_rule_test::big_rule, false>&&)
:158
14x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::range_rule_test::big_rule, false>::impl1(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::range_rule_test::big_rule, false> const&)
:159
2x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::range_rule_test::big_rule, false>::get() const
:162
15x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::range_rule_test::big_rule, false>::~impl1()
:168
22x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::range_rule_test::big_rule, false>::move(void*)
:175
14x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::range_rule_test::big_rule, false>::copy(void*) const
:183
2x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::range_rule_test::big_rule, false>::first(char const*&, char const*) const
:190
2x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl1<boost::urls::grammar::range_rule_test::big_rule, false>::next(char const*&, char const*) const
:200
5x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> >, true>::impl2(boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> const&, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> > const&)
:221
1x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >, true>::impl2(boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> const&, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> > const&)
:221
5x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::impl2<boost::urls::detail::segment_template_rule_t, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::detail::segment_template_rule_t>, true>::impl2(boost::urls::detail::segment_template_rule_t const&, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::detail::segment_template_rule_t> const&)
:221
113x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> >, true>::impl2(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> >, true>&&)
:232
3x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >, true>::impl2(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >, true>&&)
:232
15x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::impl2<boost::urls::detail::segment_template_rule_t, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::detail::segment_template_rule_t>, true>::impl2(boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::impl2<boost::urls::detail::segment_template_rule_t, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::detail::segment_template_rule_t>, true>&&)
:232
564x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> >, true>::impl2(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> >, true> const&)
:233
0
0.0%
0.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >, true>::impl2(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >, true> const&)
:233
0
0.0%
0.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::impl2<boost::urls::detail::segment_template_rule_t, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::detail::segment_template_rule_t>, true>::impl2(boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::impl2<boost::urls::detail::segment_template_rule_t, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::detail::segment_template_rule_t>, true> const&)
:233
225x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> >, true>::move(void*)
:236
3x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >, true>::move(void*)
:236
15x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::impl2<boost::urls::detail::segment_template_rule_t, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::detail::segment_template_rule_t>, true>::move(void*)
:236
564x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> >, true>::copy(void*) const
:244
0
0.0%
0.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >, true>::copy(void*) const
:244
0
0.0%
0.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::impl2<boost::urls::detail::segment_template_rule_t, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::detail::segment_template_rule_t>, true>::copy(void*) const
:244
225x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> >, true>::first(char const*&, char const*) const
:251
1x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >, true>::first(char const*&, char const*) const
:251
4x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::impl2<boost::urls::detail::segment_template_rule_t, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::detail::segment_template_rule_t>, true>::first(char const*&, char const*) const
:251
112x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> >, true>::next(char const*&, char const*) const
:262
3x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >, true>::next(char const*&, char const*) const
:262
6x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::impl2<boost::urls::detail::segment_template_rule_t, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::detail::segment_template_rule_t>, true>::next(char const*&, char const*) const
:262
326x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_first_rule, boost::urls::grammar::range_rule_test::big_rule, false>::impl2(boost::urls::grammar::range_rule_test::big_first_rule const&, boost::urls::grammar::range_rule_test::big_rule const&)
:282
2x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_rule, boost::urls::grammar::range_rule_test::big_rule, false>::impl2(boost::urls::grammar::range_rule_test::big_rule const&, boost::urls::grammar::range_rule_test::big_rule const&)
:282
2x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_first_rule, boost::urls::grammar::range_rule_test::big_rule, false>::impl2(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_first_rule, boost::urls::grammar::range_rule_test::big_rule, false>&&)
:300
8x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_rule, boost::urls::grammar::range_rule_test::big_rule, false>::impl2(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_rule, boost::urls::grammar::range_rule_test::big_rule, false>&&)
:300
6x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_first_rule, boost::urls::grammar::range_rule_test::big_rule, false>::impl2(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_first_rule, boost::urls::grammar::range_rule_test::big_rule, false> const&)
:301
2x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_rule, boost::urls::grammar::range_rule_test::big_rule, false>::impl2(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_rule, boost::urls::grammar::range_rule_test::big_rule, false> const&)
:301
0
0.0%
0.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_first_rule, boost::urls::grammar::range_rule_test::big_rule, false>::get() const
:304
4x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_rule, boost::urls::grammar::range_rule_test::big_rule, false>::get() const
:304
9x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_first_rule, boost::urls::grammar::range_rule_test::big_rule, false>::~impl2()
:310
12x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_rule, boost::urls::grammar::range_rule_test::big_rule, false>::~impl2()
:310
8x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_first_rule, boost::urls::grammar::range_rule_test::big_rule, false>::move(void*)
:317
8x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_rule, boost::urls::grammar::range_rule_test::big_rule, false>::move(void*)
:317
6x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_first_rule, boost::urls::grammar::range_rule_test::big_rule, false>::copy(void*) const
:325
2x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_rule, boost::urls::grammar::range_rule_test::big_rule, false>::copy(void*) const
:325
0
0.0%
0.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_first_rule, boost::urls::grammar::range_rule_test::big_rule, false>::first(char const*&, char const*) const
:332
0
0.0%
0.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_rule, boost::urls::grammar::range_rule_test::big_rule, false>::first(char const*&, char const*) const
:332
2x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_first_rule, boost::urls::grammar::range_rule_test::big_rule, false>::next(char const*&, char const*) const
:342
0
0.0%
0.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::impl2<boost::urls::grammar::range_rule_test::big_rule, boost::urls::grammar::range_rule_test::big_rule, false>::next(char const*&, char const*) const
:342
5x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::get()
:356
231x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::get()
:356
1466x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::get() const
:365
48x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::get() const
:365
663x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::any_rule()
:374
1x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::any_rule(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >&&)
:385
95x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::any_rule(boost::urls::grammar::any_rule<boost::urls::detail::segment_template>&&)
:385
564x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::any_rule(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > const&)
:393
4x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::any_rule(boost::urls::grammar::any_rule<boost::urls::detail::segment_template> const&)
:393
225x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::operator=(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >&&)
:402
2x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::operator=(boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > const&)
:415
4x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::~any_rule()
:427
129x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::~any_rule()
:427
902x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::any_rule<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >(boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> const&)
:436
1x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::any_rule<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> > >(boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> > const&)
:436
1x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::any_rule<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> > >(boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> > const&)
:436
11x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::any_rule<boost::urls::grammar::range_rule_test::big_rule>(boost::urls::grammar::range_rule_test::big_rule const&)
:436
6x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::any_rule<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> > >(boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> const&, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> > const&)
:461
1x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::any_rule<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> > >(boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> const&, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> > const&)
:461
5x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::any_rule<boost::urls::grammar::range_rule_test::big_first_rule, boost::urls::grammar::range_rule_test::big_rule>(boost::urls::grammar::range_rule_test::big_first_rule const&, boost::urls::grammar::range_rule_test::big_rule const&)
:461
2x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::any_rule<boost::urls::grammar::range_rule_test::big_rule, boost::urls::grammar::range_rule_test::big_rule>(boost::urls::grammar::range_rule_test::big_rule const&, boost::urls::grammar::range_rule_test::big_rule const&)
:461
2x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::any_rule<boost::urls::detail::segment_template_rule_t, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::detail::segment_template_rule_t> >(boost::urls::detail::segment_template_rule_t const&, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::detail::segment_template_rule_t> const&)
:461
113x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::first(char const*&, char const*) const
:493
14x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::first(char const*&, char const*) const
:493
112x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >::next(char const*&, char const*) const
:505
27x
100.0%
100.0%
boost::urls::grammar::any_rule<boost::urls::detail::segment_template>::next(char const*&, char const*) const
:505
326x
100.0%
100.0%
boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > >::~range()
:520
100x
100.0%
100.0%
boost::urls::grammar::range<boost::urls::detail::segment_template, boost::urls::grammar::any_rule<boost::urls::detail::segment_template> >::~range()
:520
789x
100.0%
100.0%
boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > >::range()
:524
1x
100.0%
100.0%
boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > >::range(boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > >&&)
:528
68x
100.0%
100.0%
boost::urls::grammar::range<boost::urls::detail::segment_template, boost::urls::grammar::any_rule<boost::urls::detail::segment_template> >::range(boost::urls::grammar::range<boost::urls::detail::segment_template, boost::urls::grammar::any_rule<boost::urls::detail::segment_template> >&&)
:528
451x
100.0%
100.0%
boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > >::range(boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > > const&)
:541
4x
100.0%
100.0%
boost::urls::grammar::range<boost::urls::detail::segment_template, boost::urls::grammar::any_rule<boost::urls::detail::segment_template> >::range(boost::urls::grammar::range<boost::urls::detail::segment_template, boost::urls::grammar::any_rule<boost::urls::detail::segment_template> > const&)
:541
225x
100.0%
100.0%
boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > >::operator=(boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > >&&)
:553
2x
100.0%
100.0%
boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > >::operator=(boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > > const&)
:574
4x
100.0%
100.0%
boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > >::iterator::operator*() const
:617
27x
100.0%
100.0%
boost::urls::grammar::range<boost::urls::detail::segment_template, boost::urls::grammar::any_rule<boost::urls::detail::segment_template> >::iterator::operator*() const
:617
707x
100.0%
100.0%
boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > >::iterator::operator==(boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > >::iterator const&) const
:623
41x
100.0%
75.0%
boost::urls::grammar::range<boost::urls::detail::segment_template, boost::urls::grammar::any_rule<boost::urls::detail::segment_template> >::iterator::operator==(boost::urls::grammar::range<boost::urls::detail::segment_template, boost::urls::grammar::any_rule<boost::urls::detail::segment_template> >::iterator const&) const
:623
438x
100.0%
75.0%
boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > >::iterator::operator!=(boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > >::iterator const&) const
:634
39x
100.0%
100.0%
boost::urls::grammar::range<boost::urls::detail::segment_template, boost::urls::grammar::any_rule<boost::urls::detail::segment_template> >::iterator::operator!=(boost::urls::grammar::range<boost::urls::detail::segment_template, boost::urls::grammar::any_rule<boost::urls::detail::segment_template> >::iterator const&) const
:634
438x
100.0%
100.0%
boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > >::iterator::operator++()
:641
27x
100.0%
91.0%
boost::urls::grammar::range<boost::urls::detail::segment_template, boost::urls::grammar::any_rule<boost::urls::detail::segment_template> >::iterator::operator++()
:641
326x
100.0%
92.0%
boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > >::iterator::iterator(boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > > const&)
:669
14x
100.0%
100.0%
boost::urls::grammar::range<boost::urls::detail::segment_template, boost::urls::grammar::any_rule<boost::urls::detail::segment_template> >::iterator::iterator(boost::urls::grammar::range<boost::urls::detail::segment_template, boost::urls::grammar::any_rule<boost::urls::detail::segment_template> > const&)
:669
112x
90.0%
92.0%
boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > >::iterator::iterator(boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > > const&, int)
:683
14x
100.0%
100.0%
boost::urls::grammar::range<boost::urls::detail::segment_template, boost::urls::grammar::any_rule<boost::urls::detail::segment_template> >::iterator::iterator(boost::urls::grammar::range<boost::urls::detail::segment_template, boost::urls::grammar::any_rule<boost::urls::detail::segment_template> > const&, int)
:683
112x
100.0%
100.0%
boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > >::begin() const
:696
14x
100.0%
100.0%
boost::urls::grammar::range<boost::urls::detail::segment_template, boost::urls::grammar::any_rule<boost::urls::detail::segment_template> >::begin() const
:696
112x
100.0%
100.0%
boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > >::end() const
:706
14x
100.0%
100.0%
boost::urls::grammar::range<boost::urls::detail::segment_template, boost::urls::grammar::any_rule<boost::urls::detail::segment_template> >::end() const
:706
112x
100.0%
100.0%
boost::urls::grammar::range<boost::core::basic_string_view<char>, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> > >::range(boost::core::basic_string_view<char>, unsigned long, boost::urls::grammar::any_rule<boost::core::basic_string_view<char> >&&)
:730
27x
100.0%
100.0%
boost::urls::grammar::range<boost::urls::detail::segment_template, boost::urls::grammar::any_rule<boost::urls::detail::segment_template> >::range(boost::core::basic_string_view<char>, unsigned long, boost::urls::grammar::any_rule<boost::urls::detail::segment_template>&&)
:730
113x
100.0%
100.0%
boost::urls::grammar::implementation_defined::range_rule_t<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t>, void>::parse(char const*&, char const*) const
:747
1x
43.3%
36.0%
boost::urls::grammar::implementation_defined::range_rule_t<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> >, void>::parse(char const*&, char const*) const
:747
1x
70.0%
51.0%
boost::urls::grammar::implementation_defined::range_rule_t<boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alpha_chars_t> >, void>::parse(char const*&, char const*) const
:747
15x
90.0%
86.0%
boost::urls::grammar::implementation_defined::range_rule_t<boost::urls::grammar::range_rule_test::big_rule, void>::parse(char const*&, char const*) const
:747
8x
90.0%
86.0%
boost::urls::grammar::implementation_defined::range_rule_t<boost::urls::detail::segment_template_rule_t, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::detail::segment_template_rule_t> >::parse(char const*&, char const*) const
:817
113x
71.0%
51.0%
boost::urls::grammar::implementation_defined::range_rule_t<boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t>, boost::urls::grammar::implementation_defined::tuple_rule_t<boost::urls::grammar::implementation_defined::squelch_rule_t<boost::urls::grammar::implementation_defined::ch_delim_rule>, boost::urls::grammar::implementation_defined::token_rule_t<boost::urls::grammar::implementation_defined::alnum_chars_t> > >::parse(char const*&, char const*) const
:817
1x
70.0%
51.0%
| Line | TLA | Hits | Source Code |
|---|---|---|---|
| 1 | // | ||
| 2 | // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot 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_GRAMMAR_IMPL_RANGE_HPP | ||
| 12 | #define BOOST_URL_GRAMMAR_IMPL_RANGE_HPP | ||
| 13 | |||
| 14 | #include <boost/url/detail/except.hpp> | ||
| 15 | #include <boost/url/grammar/error.hpp> | ||
| 16 | #include <boost/url/grammar/recycled.hpp> | ||
| 17 | #include <boost/core/empty_value.hpp> | ||
| 18 | #include <boost/assert.hpp> | ||
| 19 | #include <boost/core/detail/static_assert.hpp> | ||
| 20 | #include <exception> | ||
| 21 | #include <iterator> | ||
| 22 | #include <new> | ||
| 23 | #include <utility> | ||
| 24 | #include <type_traits> | ||
| 25 | |||
| 26 | #include <stddef.h> // ::max_align_t | ||
| 27 | |||
| 28 | namespace boost { | ||
| 29 | namespace urls { | ||
| 30 | namespace grammar { | ||
| 31 | |||
| 32 | //------------------------------------------------ | ||
| 33 | // | ||
| 34 | // any_rule | ||
| 35 | // | ||
| 36 | //------------------------------------------------ | ||
| 37 | |||
| 38 | template<class T> | ||
| 39 | struct any_rule<T>::impl_base | ||
| 40 | { | ||
| 41 | virtual | ||
| 42 | 1035x | ~impl_base() = default; | |
| 43 | |||
| 44 | virtual | ||
| 45 | void | ||
| 46 | 1x | move(void* dest) noexcept | |
| 47 | { | ||
| 48 | 2x | ::new(dest) impl_base( | |
| 49 | 1x | std::move(*this)); | |
| 50 | 1x | } | |
| 51 | |||
| 52 | virtual | ||
| 53 | void | ||
| 54 | 1x | copy(void* dest) const noexcept | |
| 55 | { | ||
| 56 | 1x | ::new(dest) impl_base(*this); | |
| 57 | 1x | } | |
| 58 | |||
| 59 | virtual | ||
| 60 | system::result<T> | ||
| 61 | 1x | first( | |
| 62 | char const*&, | ||
| 63 | char const*) const noexcept | ||
| 64 | { | ||
| 65 | 1x | return system::error_code{}; | |
| 66 | } | ||
| 67 | |||
| 68 | virtual | ||
| 69 | system::result<T> | ||
| 70 | 1x | next( | |
| 71 | char const*&, | ||
| 72 | char const*) const noexcept | ||
| 73 | { | ||
| 74 | 1x | return system::error_code{}; | |
| 75 | } | ||
| 76 | }; | ||
| 77 | |||
| 78 | //------------------------------------------------ | ||
| 79 | |||
| 80 | // small | ||
| 81 | template<class T> | ||
| 82 | template<class R, bool Small> | ||
| 83 | struct any_rule<T>::impl1 | ||
| 84 | : impl_base | ||
| 85 | , private empty_value<R> | ||
| 86 | { | ||
| 87 | explicit | ||
| 88 | 13x | impl1(R const& next) noexcept | |
| 89 | : empty_value<R>( | ||
| 90 | empty_init, | ||
| 91 | 13x | next) | |
| 92 | { | ||
| 93 | 13x | } | |
| 94 | |||
| 95 | private: | ||
| 96 | 49x | impl1(impl1&&) noexcept = default; | |
| 97 | 2x | impl1(impl1 const&) noexcept = default; | |
| 98 | |||
| 99 | void | ||
| 100 | 49x | move(void* dest | |
| 101 | ) noexcept override | ||
| 102 | { | ||
| 103 | 98x | ::new(dest) impl1( | |
| 104 | 49x | std::move(*this)); | |
| 105 | 49x | } | |
| 106 | |||
| 107 | void | ||
| 108 | 2x | copy(void* dest | |
| 109 | ) const noexcept override | ||
| 110 | { | ||
| 111 | 2x | ::new(dest) impl1(*this); | |
| 112 | 2x | } | |
| 113 | |||
| 114 | system::result<T> | ||
| 115 | 5x | first( | |
| 116 | char const*& it, | ||
| 117 | char const* end) | ||
| 118 | const noexcept override | ||
| 119 | { | ||
| 120 | 5x | return grammar::parse( | |
| 121 | 5x | it, end, this->get()); | |
| 122 | } | ||
| 123 | |||
| 124 | system::result<T> | ||
| 125 | 8x | next( | |
| 126 | char const*& it, | ||
| 127 | char const* end) | ||
| 128 | const noexcept override | ||
| 129 | { | ||
| 130 | 8x | return grammar::parse( | |
| 131 | 8x | it, end, this->get()); | |
| 132 | } | ||
| 133 | }; | ||
| 134 | |||
| 135 | //------------------------------------------------ | ||
| 136 | |||
| 137 | // big | ||
| 138 | template<class T> | ||
| 139 | template<class R> | ||
| 140 | struct any_rule<T>::impl1<R, false> | ||
| 141 | : impl_base | ||
| 142 | { | ||
| 143 | explicit | ||
| 144 | 6x | impl1(R const& next) noexcept | |
| 145 | 6x | { | |
| 146 | 6x | ::new(p_->addr()) impl{next}; | |
| 147 | 6x | } | |
| 148 | |||
| 149 | private: | ||
| 150 | struct impl | ||
| 151 | { | ||
| 152 | R r; | ||
| 153 | }; | ||
| 154 | |||
| 155 | recycled_ptr< | ||
| 156 | aligned_storage<impl>> p_; | ||
| 157 | |||
| 158 | 14x | impl1(impl1&&) noexcept = default; | |
| 159 | 2x | impl1(impl1 const&) noexcept = default; | |
| 160 | |||
| 161 | impl const& | ||
| 162 | 15x | get() const noexcept | |
| 163 | { | ||
| 164 | return *reinterpret_cast< | ||
| 165 | 15x | impl const*>(p_->addr()); | |
| 166 | } | ||
| 167 | |||
| 168 | 22x | ~impl1() | |
| 169 | { | ||
| 170 | 22x | if(p_) | |
| 171 | 8x | get().~impl(); | |
| 172 | 44x | } | |
| 173 | |||
| 174 | void | ||
| 175 | 14x | move(void* dest | |
| 176 | ) noexcept override | ||
| 177 | { | ||
| 178 | 28x | ::new(dest) impl1( | |
| 179 | 14x | std::move(*this)); | |
| 180 | 14x | } | |
| 181 | |||
| 182 | void | ||
| 183 | 2x | copy(void* dest | |
| 184 | ) const noexcept override | ||
| 185 | { | ||
| 186 | 2x | ::new(dest) impl1(*this); | |
| 187 | 2x | } | |
| 188 | |||
| 189 | system::result<T> | ||
| 190 | 2x | first( | |
| 191 | char const*& it, | ||
| 192 | char const* end) | ||
| 193 | const noexcept override | ||
| 194 | { | ||
| 195 | 2x | return grammar::parse( | |
| 196 | 2x | it, end, this->get().r); | |
| 197 | } | ||
| 198 | |||
| 199 | system::result<T> | ||
| 200 | 5x | next( | |
| 201 | char const*& it, | ||
| 202 | char const* end) | ||
| 203 | const noexcept override | ||
| 204 | { | ||
| 205 | 5x | return grammar::parse( | |
| 206 | 5x | it, end, this->get().r); | |
| 207 | } | ||
| 208 | }; | ||
| 209 | |||
| 210 | //------------------------------------------------ | ||
| 211 | |||
| 212 | // small | ||
| 213 | template<class T> | ||
| 214 | template< | ||
| 215 | class R0, class R1, bool Small> | ||
| 216 | struct any_rule<T>::impl2 | ||
| 217 | : impl_base | ||
| 218 | , private empty_value<R0, 0> | ||
| 219 | , private empty_value<R1, 1> | ||
| 220 | { | ||
| 221 | 119x | impl2( | |
| 222 | R0 const& first, | ||
| 223 | R1 const& next) noexcept | ||
| 224 | : empty_value<R0,0>( | ||
| 225 | empty_init, first) | ||
| 226 | , empty_value<R1,1>( | ||
| 227 | 119x | empty_init, next) | |
| 228 | { | ||
| 229 | 119x | } | |
| 230 | |||
| 231 | private: | ||
| 232 | 582x | impl2(impl2&&) noexcept = default; | |
| 233 | 225x | impl2(impl2 const&) noexcept = default; | |
| 234 | |||
| 235 | void | ||
| 236 | 582x | move(void* dest | |
| 237 | ) noexcept override | ||
| 238 | { | ||
| 239 | 1164x | ::new(dest) impl2( | |
| 240 | 582x | std::move(*this)); | |
| 241 | 582x | } | |
| 242 | |||
| 243 | void | ||
| 244 | 225x | copy(void* dest | |
| 245 | ) const noexcept override | ||
| 246 | { | ||
| 247 | 225x | ::new(dest) impl2(*this); | |
| 248 | 225x | } | |
| 249 | |||
| 250 | system::result<T> | ||
| 251 | 117x | first( | |
| 252 | char const*& it, | ||
| 253 | char const* end) | ||
| 254 | const noexcept override | ||
| 255 | { | ||
| 256 | 5x | return grammar::parse(it, end, | |
| 257 | empty_value< | ||
| 258 | 117x | R0,0>::get()); | |
| 259 | } | ||
| 260 | |||
| 261 | system::result<T> | ||
| 262 | 335x | next( | |
| 263 | char const*& it, | ||
| 264 | char const* end) | ||
| 265 | const noexcept override | ||
| 266 | { | ||
| 267 | 9x | return grammar::parse(it, end, | |
| 268 | empty_value< | ||
| 269 | 335x | R1,1>::get()); | |
| 270 | } | ||
| 271 | }; | ||
| 272 | |||
| 273 | //------------------------------------------------ | ||
| 274 | |||
| 275 | // big | ||
| 276 | template<class T> | ||
| 277 | template< | ||
| 278 | class R0, class R1> | ||
| 279 | struct any_rule<T>::impl2<R0, R1, false> | ||
| 280 | : impl_base | ||
| 281 | { | ||
| 282 | 4x | impl2( | |
| 283 | R0 const& first, | ||
| 284 | R1 const& next) noexcept | ||
| 285 | 4x | { | |
| 286 | 4x | ::new(p_->addr()) impl{ | |
| 287 | first, next}; | ||
| 288 | 4x | } | |
| 289 | |||
| 290 | private: | ||
| 291 | struct impl | ||
| 292 | { | ||
| 293 | R0 first; | ||
| 294 | R1 next; | ||
| 295 | }; | ||
| 296 | |||
| 297 | recycled_ptr< | ||
| 298 | aligned_storage<impl>> p_; | ||
| 299 | |||
| 300 | 14x | impl2(impl2&&) noexcept = default; | |
| 301 | 2x | impl2(impl2 const&) noexcept = default; | |
| 302 | |||
| 303 | impl const& | ||
| 304 | 13x | get() const noexcept | |
| 305 | { | ||
| 306 | return *reinterpret_cast< | ||
| 307 | 13x | impl const*>(p_->addr()); | |
| 308 | } | ||
| 309 | |||
| 310 | 20x | ~impl2() | |
| 311 | { | ||
| 312 | 20x | if(p_) | |
| 313 | 6x | get().~impl(); | |
| 314 | 40x | } | |
| 315 | |||
| 316 | void | ||
| 317 | 14x | move(void* dest | |
| 318 | ) noexcept override | ||
| 319 | { | ||
| 320 | 28x | ::new(dest) impl2( | |
| 321 | 14x | std::move(*this)); | |
| 322 | 14x | } | |
| 323 | |||
| 324 | void | ||
| 325 | 2x | copy(void* dest | |
| 326 | ) const noexcept override | ||
| 327 | { | ||
| 328 | 2x | ::new(dest) impl2(*this); | |
| 329 | 2x | } | |
| 330 | |||
| 331 | system::result<T> | ||
| 332 | 2x | first( | |
| 333 | char const*& it, | ||
| 334 | char const* end) | ||
| 335 | const noexcept override | ||
| 336 | { | ||
| 337 | 2x | return grammar::parse( | |
| 338 | 2x | it, end, get().first); | |
| 339 | } | ||
| 340 | |||
| 341 | system::result<T> | ||
| 342 | 5x | next( | |
| 343 | char const*& it, | ||
| 344 | char const* end) | ||
| 345 | const noexcept override | ||
| 346 | { | ||
| 347 | 5x | return grammar::parse( | |
| 348 | 5x | it, end, get().next); | |
| 349 | } | ||
| 350 | }; | ||
| 351 | |||
| 352 | //------------------------------------------------ | ||
| 353 | |||
| 354 | template<class T> | ||
| 355 | typename any_rule<T>::impl_base& | ||
| 356 | 1697x | any_rule<T>:: | |
| 357 | get() noexcept | ||
| 358 | { | ||
| 359 | return *reinterpret_cast< | ||
| 360 | 1697x | impl_base*>(sb_.addr()); | |
| 361 | } | ||
| 362 | |||
| 363 | template<class T> | ||
| 364 | typename any_rule<T>::impl_base const& | ||
| 365 | 711x | any_rule<T>:: | |
| 366 | get() const noexcept | ||
| 367 | { | ||
| 368 | return *reinterpret_cast< | ||
| 369 | 711x | impl_base const*>(sb_.addr()); | |
| 370 | } | ||
| 371 | |||
| 372 | |||
| 373 | template<class T> | ||
| 374 | 1x | any_rule<T>:: | |
| 375 | any_rule() noexcept | ||
| 376 | { | ||
| 377 | 1x | ::new(sb_.addr()) impl_base{}; | |
| 378 | 1x | char const* it = nullptr; | |
| 379 | 1x | get().first(it, nullptr); | |
| 380 | 1x | get().next(it, nullptr); | |
| 381 | 1x | } | |
| 382 | |||
| 383 | |||
| 384 | template<class T> | ||
| 385 | 659x | any_rule<T>:: | |
| 386 | any_rule(any_rule&& other) noexcept | ||
| 387 | { | ||
| 388 | 659x | other.get().move(sb_.addr()); | |
| 389 | 659x | } | |
| 390 | |||
| 391 | |||
| 392 | template<class T> | ||
| 393 | 229x | any_rule<T>:: | |
| 394 | any_rule(any_rule const& other) noexcept | ||
| 395 | { | ||
| 396 | 229x | other.get().copy(sb_.addr()); | |
| 397 | 229x | } | |
| 398 | |||
| 399 | |||
| 400 | template<class T> | ||
| 401 | any_rule<T>& | ||
| 402 | 2x | any_rule<T>:: | |
| 403 | operator=(any_rule&& other) noexcept | ||
| 404 | { | ||
| 405 | 2x | if(this == &other) | |
| 406 | 1x | return *this; | |
| 407 | 1x | get().~impl_base(); | |
| 408 | 1x | other.get().move(sb_.addr()); | |
| 409 | 1x | return *this; | |
| 410 | } | ||
| 411 | |||
| 412 | |||
| 413 | template<class T> | ||
| 414 | any_rule<T>& | ||
| 415 | 4x | any_rule<T>:: | |
| 416 | operator=(any_rule const& other) noexcept | ||
| 417 | { | ||
| 418 | 4x | if(this == &other) | |
| 419 | 1x | return *this; | |
| 420 | 3x | get().~impl_base(); | |
| 421 | 3x | other.get().copy(sb_.addr()); | |
| 422 | 3x | return *this; | |
| 423 | } | ||
| 424 | |||
| 425 | |||
| 426 | template<class T> | ||
| 427 | 1031x | any_rule<T>:: | |
| 428 | ~any_rule() | ||
| 429 | { | ||
| 430 | 1031x | get().~impl_base(); | |
| 431 | 1031x | } | |
| 432 | |||
| 433 | |||
| 434 | template<class T> | ||
| 435 | template<class R> | ||
| 436 | 19x | any_rule<T>:: | |
| 437 | any_rule( | ||
| 438 | R const& next) | ||
| 439 | { | ||
| 440 | static_assert( | ||
| 441 | ::boost::urls::grammar::is_rule<R>::value, | ||
| 442 | "Rule requirements not met"); | ||
| 443 | static_assert( | ||
| 444 | std::is_same<typename R::value_type, T>::value, | ||
| 445 | "Rule value_type mismatch"); | ||
| 446 | |||
| 447 | BOOST_CORE_STATIC_ASSERT( | ||
| 448 | sizeof(impl1<R, false>) <= | ||
| 449 | BufferSize); | ||
| 450 | |||
| 451 | 19x | ::new(sb_.addr()) impl1<R, | |
| 452 | sizeof(impl1<R, true>) <= | ||
| 453 | BufferSize>(next); | ||
| 454 | 19x | } | |
| 455 | |||
| 456 | //------------------------------------------------ | ||
| 457 | |||
| 458 | template<class T> | ||
| 459 | template< | ||
| 460 | class R0, class R1> | ||
| 461 | 123x | any_rule<T>:: | |
| 462 | any_rule( | ||
| 463 | R0 const& first, | ||
| 464 | R1 const& next) | ||
| 465 | { | ||
| 466 | static_assert( | ||
| 467 | ::boost::urls::grammar::is_rule<R0>::value, | ||
| 468 | "Rule requirements not met"); | ||
| 469 | static_assert( | ||
| 470 | ::boost::urls::grammar::is_rule<R1>::value, | ||
| 471 | "Rule requirements not met"); | ||
| 472 | static_assert( | ||
| 473 | std::is_same<typename R0::value_type, T>::value, | ||
| 474 | "First rule value_type mismatch"); | ||
| 475 | static_assert( | ||
| 476 | std::is_same<typename R1::value_type, T>::value, | ||
| 477 | "Next rule value_type mismatch"); | ||
| 478 | |||
| 479 | BOOST_CORE_STATIC_ASSERT( | ||
| 480 | sizeof(impl2<R0, R1, false>) <= | ||
| 481 | BufferSize); | ||
| 482 | |||
| 483 | 123x | ::new(sb_.addr()) impl2<R0, R1, | |
| 484 | sizeof(impl2<R0, R1, true> | ||
| 485 | ) <= BufferSize>( | ||
| 486 | first, next); | ||
| 487 | 123x | } | |
| 488 | |||
| 489 | //------------------------------------------------ | ||
| 490 | |||
| 491 | template<class T> | ||
| 492 | system::result<T> | ||
| 493 | 126x | any_rule<T>:: | |
| 494 | first( | ||
| 495 | char const*& it, | ||
| 496 | char const* end) const noexcept | ||
| 497 | { | ||
| 498 | 126x | return get().first(it, end); | |
| 499 | } | ||
| 500 | |||
| 501 | //------------------------------------------------ | ||
| 502 | |||
| 503 | template<class T> | ||
| 504 | system::result<T> | ||
| 505 | 353x | any_rule<T>:: | |
| 506 | next( | ||
| 507 | char const*& it, | ||
| 508 | char const* end) const noexcept | ||
| 509 | { | ||
| 510 | 353x | return get().next(it, end); | |
| 511 | } | ||
| 512 | |||
| 513 | //------------------------------------------------ | ||
| 514 | // | ||
| 515 | // range | ||
| 516 | // | ||
| 517 | //------------------------------------------------ | ||
| 518 | |||
| 519 | template<class T, class RangeRule> | ||
| 520 | 889x | range<T, RangeRule>:: | |
| 521 | ~range() = default; | ||
| 522 | |||
| 523 | template<class T, class RangeRule> | ||
| 524 | 1x | range<T, RangeRule>:: | |
| 525 | range() noexcept = default; | ||
| 526 | |||
| 527 | template<class T, class RangeRule> | ||
| 528 | 519x | range<T, RangeRule>:: | |
| 529 | range( | ||
| 530 | range&& other) noexcept | ||
| 531 | : detail::range_base_storage< | ||
| 532 | 519x | RangeRule>(std::move(other.rule())) | |
| 533 | 519x | , s_(other.s_) | |
| 534 | 1038x | , n_(other.n_) | |
| 535 | { | ||
| 536 | 519x | other.s_ = {}; | |
| 537 | 519x | other.n_ = 0; | |
| 538 | 519x | } | |
| 539 | |||
| 540 | template<class T, class RangeRule> | ||
| 541 | 229x | range<T, RangeRule>:: | |
| 542 | range( | ||
| 543 | range const& other) noexcept | ||
| 544 | : detail::range_base_storage< | ||
| 545 | RangeRule>(other.rule()) | ||
| 546 | 229x | , s_(other.s_) | |
| 547 | 229x | , n_(other.n_) | |
| 548 | { | ||
| 549 | 229x | } | |
| 550 | |||
| 551 | template<class T, class RangeRule> | ||
| 552 | auto | ||
| 553 | 2x | range<T, RangeRule>:: | |
| 554 | operator=(range&& other) noexcept | ||
| 555 | -> range& | ||
| 556 | { | ||
| 557 | 2x | if(this == &other) | |
| 558 | 1x | return *this; | |
| 559 | static_cast< | ||
| 560 | detail::range_base_storage< | ||
| 561 | 1x | RangeRule>&>(*this) = | |
| 562 | 1x | std::move(static_cast< | |
| 563 | detail::range_base_storage< | ||
| 564 | RangeRule>&>(other)); | ||
| 565 | 1x | s_ = other.s_; | |
| 566 | 1x | n_ = other.n_; | |
| 567 | 1x | other.s_ = {}; | |
| 568 | 1x | other.n_ = 0; | |
| 569 | 1x | return *this; | |
| 570 | } | ||
| 571 | |||
| 572 | template<class T, class RangeRule> | ||
| 573 | auto | ||
| 574 | 4x | range<T, RangeRule>:: | |
| 575 | operator=(range const& other) noexcept | ||
| 576 | -> range& | ||
| 577 | { | ||
| 578 | 4x | if(this == &other) | |
| 579 | 1x | return *this; | |
| 580 | static_cast< | ||
| 581 | detail::range_base_storage< | ||
| 582 | 3x | RangeRule>&>(*this) = | |
| 583 | static_cast< | ||
| 584 | detail::range_base_storage< | ||
| 585 | RangeRule> const&>(other); | ||
| 586 | 3x | s_ = other.s_; | |
| 587 | 3x | n_ = other.n_; | |
| 588 | 3x | return *this; | |
| 589 | } | ||
| 590 | |||
| 591 | //------------------------------------------------ | ||
| 592 | // | ||
| 593 | // iterator | ||
| 594 | // | ||
| 595 | //------------------------------------------------ | ||
| 596 | |||
| 597 | template<class T, class RangeRule> | ||
| 598 | class range<T, RangeRule>:: | ||
| 599 | iterator | ||
| 600 | { | ||
| 601 | public: | ||
| 602 | using value_type = T; | ||
| 603 | using reference = T const&; | ||
| 604 | using pointer = void const*; | ||
| 605 | using difference_type = | ||
| 606 | std::ptrdiff_t; | ||
| 607 | using iterator_category = | ||
| 608 | std::forward_iterator_tag; | ||
| 609 | |||
| 610 | iterator() = default; | ||
| 611 | iterator( | ||
| 612 | iterator const&) = default; | ||
| 613 | iterator& operator=( | ||
| 614 | iterator const&) = default; | ||
| 615 | |||
| 616 | reference | ||
| 617 | 734x | operator*() const noexcept | |
| 618 | { | ||
| 619 | 734x | return *rv_; | |
| 620 | } | ||
| 621 | |||
| 622 | bool | ||
| 623 | 479x | operator==( | |
| 624 | iterator const& other) const noexcept | ||
| 625 | { | ||
| 626 | // can't compare iterators | ||
| 627 | // from different containers! | ||
| 628 | 479x | BOOST_ASSERT(r_ == other.r_); | |
| 629 | |||
| 630 | 479x | return p_ == other.p_; | |
| 631 | } | ||
| 632 | |||
| 633 | bool | ||
| 634 | 477x | operator!=( | |
| 635 | iterator const& other) const noexcept | ||
| 636 | { | ||
| 637 | 477x | return !(*this == other); | |
| 638 | } | ||
| 639 | |||
| 640 | iterator& | ||
| 641 | 353x | operator++() noexcept | |
| 642 | { | ||
| 643 | 353x | BOOST_ASSERT( | |
| 644 | p_ != nullptr); | ||
| 645 | 353x | auto const end = | |
| 646 | 353x | r_->s_.data() + | |
| 647 | 353x | r_->s_.size(); | |
| 648 | 353x | rv_ = r_->rule().next(p_, end); | |
| 649 | 353x | if( !rv_ ) | |
| 650 | 123x | p_ = nullptr; | |
| 651 | 353x | return *this; | |
| 652 | } | ||
| 653 | |||
| 654 | iterator | ||
| 655 | operator++(int) noexcept | ||
| 656 | { | ||
| 657 | auto tmp = *this; | ||
| 658 | ++*this; | ||
| 659 | return tmp; | ||
| 660 | } | ||
| 661 | |||
| 662 | private: | ||
| 663 | friend class range<T, RangeRule>; | ||
| 664 | |||
| 665 | range<T, RangeRule> const* r_ = nullptr; | ||
| 666 | char const* p_ = nullptr; | ||
| 667 | system::result<T> rv_; | ||
| 668 | |||
| 669 | 126x | iterator( | |
| 670 | range<T, RangeRule> const& r) noexcept | ||
| 671 | 126x | : r_(&r) | |
| 672 | 126x | , p_(r.s_.data()) | |
| 673 | { | ||
| 674 | 126x | auto const end = | |
| 675 | 126x | r_->s_.data() + | |
| 676 | 126x | r_->s_.size(); | |
| 677 | 126x | rv_ = r_->rule().first(p_, end); | |
| 678 | 126x | if( !rv_ ) | |
| 679 | 3x | p_ = nullptr; | |
| 680 | 126x | } | |
| 681 | |||
| 682 | constexpr | ||
| 683 | 126x | iterator( | |
| 684 | range<T, RangeRule> const& r, | ||
| 685 | int) noexcept | ||
| 686 | 126x | : r_(&r) | |
| 687 | 126x | , p_(nullptr) | |
| 688 | { | ||
| 689 | 126x | } | |
| 690 | }; | ||
| 691 | |||
| 692 | //------------------------------------------------ | ||
| 693 | |||
| 694 | template<class T, class RangeRule> | ||
| 695 | typename range<T, RangeRule>::iterator | ||
| 696 | 126x | range<T, RangeRule>:: | |
| 697 | begin() const noexcept | ||
| 698 | { | ||
| 699 | 126x | return iterator(*this); | |
| 700 | } | ||
| 701 | |||
| 702 | //------------------------------------------------ | ||
| 703 | |||
| 704 | template<class T, class RangeRule> | ||
| 705 | typename range<T, RangeRule>::iterator | ||
| 706 | 126x | range<T, RangeRule>:: | |
| 707 | end() const noexcept | ||
| 708 | { | ||
| 709 | 126x | return iterator(*this, 0); | |
| 710 | } | ||
| 711 | |||
| 712 | //------------------------------------------------ | ||
| 713 | |||
| 714 | template<class T, class RangeRule> | ||
| 715 | range<T, RangeRule>:: | ||
| 716 | range( | ||
| 717 | core::string_view s, | ||
| 718 | std::size_t n, | ||
| 719 | RangeRule const& rule) noexcept | ||
| 720 | : detail::range_base_storage< | ||
| 721 | RangeRule>(rule) | ||
| 722 | , s_(s) | ||
| 723 | , n_(n) | ||
| 724 | { | ||
| 725 | } | ||
| 726 | |||
| 727 | //------------------------------------------------ | ||
| 728 | |||
| 729 | template<class T, class RangeRule> | ||
| 730 | 140x | range<T, RangeRule>:: | |
| 731 | range( | ||
| 732 | core::string_view s, | ||
| 733 | std::size_t n, | ||
| 734 | RangeRule&& rule) noexcept | ||
| 735 | : detail::range_base_storage< | ||
| 736 | 140x | RangeRule>(std::move(rule)) | |
| 737 | 140x | , s_(s) | |
| 738 | 140x | , n_(n) | |
| 739 | { | ||
| 740 | 140x | } | |
| 741 | |||
| 742 | //------------------------------------------------ | ||
| 743 | |||
| 744 | template<class R> | ||
| 745 | BOOST_URL_CXX20_CONSTEXPR | ||
| 746 | auto | ||
| 747 | 25x | implementation_defined::range_rule_t<R>:: | |
| 748 | parse( | ||
| 749 | char const*& it, | ||
| 750 | char const* end) const -> | ||
| 751 | system::result<value_type> | ||
| 752 | { | ||
| 753 | using T = typename R::value_type; | ||
| 754 | |||
| 755 | 25x | std::size_t n = 0; | |
| 756 | 25x | auto const it0 = it; | |
| 757 | 25x | auto it1 = it; | |
| 758 | 25x | auto rv = (grammar::parse)( | |
| 759 | 25x | it, end, next_); | |
| 760 | 25x | if( !rv ) | |
| 761 | { | ||
| 762 | 3x | if(rv.error() != error::end_of_range) | |
| 763 | { | ||
| 764 | // rewind unless error::end_of_range | ||
| 765 | 3x | it = it1; | |
| 766 | } | ||
| 767 | 3x | if(n < N_) | |
| 768 | { | ||
| 769 | // too few | ||
| 770 | 2x | BOOST_URL_CONSTEXPR_RETURN_EC( | |
| 771 | error::mismatch); | ||
| 772 | } | ||
| 773 | // good | ||
| 774 | 2x | return range<T>( | |
| 775 | 1x | core::string_view(it0, it - it0), | |
| 776 | 3x | n, any_rule<T>(next_)); | |
| 777 | } | ||
| 778 | 31x | for(;;) | |
| 779 | { | ||
| 780 | 53x | ++n; | |
| 781 | 53x | it1 = it; | |
| 782 | 53x | rv = (grammar::parse)( | |
| 783 | 53x | it, end, next_); | |
| 784 | 53x | if( !rv ) | |
| 785 | { | ||
| 786 | 18x | if(rv.error() != error::end_of_range) | |
| 787 | { | ||
| 788 | // rewind unless error::end_of_range | ||
| 789 | 18x | it = it1; | |
| 790 | } | ||
| 791 | 18x | break; | |
| 792 | } | ||
| 793 | 35x | if(n >= M_) | |
| 794 | { | ||
| 795 | // too many | ||
| 796 | 4x | BOOST_URL_CONSTEXPR_RETURN_EC( | |
| 797 | error::mismatch); | ||
| 798 | } | ||
| 799 | } | ||
| 800 | 18x | if(n < N_) | |
| 801 | { | ||
| 802 | // too few | ||
| 803 | 2x | BOOST_URL_CONSTEXPR_RETURN_EC( | |
| 804 | error::mismatch); | ||
| 805 | } | ||
| 806 | // good | ||
| 807 | 32x | return range<T>( | |
| 808 | 16x | core::string_view(it0, it - it0), | |
| 809 | 48x | n, any_rule<T>(next_)); | |
| 810 | } | ||
| 811 | |||
| 812 | //------------------------------------------------ | ||
| 813 | |||
| 814 | template<class R0, class R1> | ||
| 815 | BOOST_URL_CXX20_CONSTEXPR | ||
| 816 | auto | ||
| 817 | 131x | implementation_defined::range_rule_t<R0, R1>:: | |
| 818 | parse( | ||
| 819 | char const*& it, | ||
| 820 | char const* end) const -> | ||
| 821 | system::result<range<typename | ||
| 822 | R0::value_type>> | ||
| 823 | { | ||
| 824 | using T = typename R0::value_type; | ||
| 825 | |||
| 826 | 131x | std::size_t n = 0; | |
| 827 | 131x | auto const it0 = it; | |
| 828 | 131x | auto it1 = it; | |
| 829 | 131x | auto rv = (grammar::parse)( | |
| 830 | 131x | it, end, first_); | |
| 831 | 131x | if( !rv ) | |
| 832 | { | ||
| 833 | 4x | if(rv.error() != error::end_of_range) | |
| 834 | { | ||
| 835 | 4x | it = it1; | |
| 836 | } | ||
| 837 | 4x | if(n < N_) | |
| 838 | { | ||
| 839 | 3x | BOOST_URL_CONSTEXPR_RETURN_EC( | |
| 840 | error::mismatch); | ||
| 841 | } | ||
| 842 | 2x | return range<T>( | |
| 843 | 1x | core::string_view(it0, it - it0), | |
| 844 | 3x | n, any_rule<T>(first_, next_)); | |
| 845 | } | ||
| 846 | 236x | for(;;) | |
| 847 | { | ||
| 848 | 363x | ++n; | |
| 849 | 363x | it1 = it; | |
| 850 | 363x | rv = (grammar::parse)( | |
| 851 | 363x | it, end, next_); | |
| 852 | 363x | if( !rv ) | |
| 853 | { | ||
| 854 | 123x | if(rv.error() != error::end_of_range) | |
| 855 | { | ||
| 856 | // rewind unless error::end_of_range | ||
| 857 | 123x | it = it1; | |
| 858 | } | ||
| 859 | 123x | break; | |
| 860 | } | ||
| 861 | 240x | if(n >= M_) | |
| 862 | { | ||
| 863 | // too many | ||
| 864 | 4x | BOOST_URL_CONSTEXPR_RETURN_EC( | |
| 865 | error::mismatch); | ||
| 866 | } | ||
| 867 | } | ||
| 868 | 123x | if(n < N_) | |
| 869 | { | ||
| 870 | // too few | ||
| 871 | 1x | BOOST_URL_CONSTEXPR_RETURN_EC( | |
| 872 | error::mismatch); | ||
| 873 | } | ||
| 874 | // good | ||
| 875 | 244x | return range<T>( | |
| 876 | 122x | core::string_view(it0, it - it0), | |
| 877 | 366x | n, any_rule<T>(first_, next_)); | |
| 878 | 113x | } | |
| 879 | |||
| 880 | } // grammar | ||
| 881 | } // urls | ||
| 882 | } // boost | ||
| 883 | |||
| 884 | #endif | ||
| 885 |