ryu.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Copyright 2018 Ulf Adams
  2. //
  3. // The contents of this file may be used under the terms of the Apache License,
  4. // Version 2.0.
  5. //
  6. // (See accompanying file LICENSE-Apache or copy at
  7. // http://www.apache.org/licenses/LICENSE-2.0)
  8. //
  9. // Alternatively, the contents of this file may be used under the terms of
  10. // the Boost Software License, Version 1.0.
  11. // (See accompanying file LICENSE-Boost or copy at
  12. // https://www.boost.org/LICENSE_1_0.txt)
  13. //
  14. // Unless required by applicable law or agreed to in writing, this software
  15. // is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. // KIND, either express or implied.
  17. /*
  18. This is a derivative work
  19. */
  20. #ifndef BOOST_JSON_DETAIL_RYU_HPP
  21. #define BOOST_JSON_DETAIL_RYU_HPP
  22. #include <boost/json/detail/config.hpp>
  23. BOOST_JSON_NS_BEGIN
  24. namespace detail {
  25. namespace ryu {
  26. BOOST_JSON_DECL
  27. int d2s_buffered_n(double f, char* result) noexcept;
  28. BOOST_JSON_DECL
  29. void d2s_buffered(double f, char* result) noexcept;
  30. BOOST_JSON_DECL
  31. char* d2s(double f) noexcept;
  32. } // ryu
  33. } // detail
  34. BOOST_JSON_NS_END
  35. #endif