from_chars.hpp 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2022 Peter Dimov
  2. // Copyright 2023 Matt Borland
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // https://www.boost.org/LICENSE_1_0.txt
  5. #ifndef BOOST_JSON_DETAIL_CHARCONV_FROM_CHARS_HPP_INCLUDED
  6. #define BOOST_JSON_DETAIL_CHARCONV_FROM_CHARS_HPP_INCLUDED
  7. #include <boost/json/detail/charconv/detail/config.hpp>
  8. #include <boost/json/detail/charconv/detail/from_chars_result.hpp>
  9. #include <boost/json/detail/charconv/chars_format.hpp>
  10. #include <system_error>
  11. namespace boost { namespace json { namespace detail { namespace charconv {
  12. //----------------------------------------------------------------------------------------------------------------------
  13. // Floating Point
  14. //----------------------------------------------------------------------------------------------------------------------
  15. namespace detail {
  16. std::errc errno_to_errc(int errno_value) noexcept;
  17. } // Namespace detail
  18. BOOST_JSON_DECL from_chars_result from_chars(const char* first, const char* last, double& value, chars_format fmt = chars_format::general) noexcept;
  19. } // namespace charconv
  20. } // namespace detail
  21. } // namespace json
  22. } // namespace boost
  23. #endif // #ifndef BOOST_JSON_DETAIL_CHARCONV_FROM_CHARS_HPP_INCLUDED