pct_format.hpp 983 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #ifndef BOOST_URL_DETAIL_PCT_FORMAT_HPP
  10. #define BOOST_URL_DETAIL_PCT_FORMAT_HPP
  11. #include <boost/core/detail/string_view.hpp>
  12. #include <boost/url/url.hpp>
  13. #include <boost/url/grammar/lut_chars.hpp>
  14. #include <boost/url/detail/format_args.hpp>
  15. namespace boost {
  16. namespace urls {
  17. namespace detail {
  18. // measure a single string
  19. BOOST_URL_DECL
  20. std::size_t
  21. pct_vmeasure(
  22. grammar::lut_chars const& cs,
  23. format_parse_context& pctx,
  24. measure_context& mctx);
  25. // format a single string
  26. BOOST_URL_DECL
  27. char*
  28. pct_vformat(
  29. grammar::lut_chars const& cs,
  30. format_parse_context& pctx,
  31. format_context& fctx);
  32. } // detail
  33. } // url
  34. } // boost
  35. #endif