12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- #ifndef BOOST_URL_DETAIL_REPLACEMENT_FIELD_RULE_HPP
- #define BOOST_URL_DETAIL_REPLACEMENT_FIELD_RULE_HPP
- #include <boost/url/error.hpp>
- #include <boost/core/detail/string_view.hpp>
- #include <boost/url/grammar/variant_rule.hpp>
- #include <boost/url/grammar/unsigned_rule.hpp>
- namespace boost {
- namespace urls {
- namespace detail {
- struct replacement_field_rule_t
- {
- using value_type = core::string_view;
- BOOST_URL_DECL
- system::result<value_type>
- parse(
- char const*& it,
- char const* end) const noexcept;
- };
- constexpr replacement_field_rule_t replacement_field_rule{};
- struct identifier_rule_t
- {
- using value_type = core::string_view;
- BOOST_URL_DECL
- system::result<value_type>
- parse(
- char const*& it,
- char const* end) const noexcept;
- };
- constexpr identifier_rule_t identifier_rule{};
- static constexpr auto arg_id_rule =
- grammar::variant_rule(
- identifier_rule,
- grammar::unsigned_rule<std::size_t>{});
- struct format_spec_rule_t
- {
- using value_type = core::string_view;
- system::result<value_type>
- parse(
- char const*& it,
- char const* end) const noexcept;
- };
- constexpr format_spec_rule_t format_spec_rule{};
- }
- }
- }
- #endif
|