format.cc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Formatting library for C++
  2. //
  3. // Copyright (c) 2012 - 2016, Victor Zverovich
  4. // All rights reserved.
  5. //
  6. // For the license information refer to format.h.
  7. #include "fmt/format-inl.h"
  8. FMT_BEGIN_NAMESPACE
  9. namespace detail {
  10. template FMT_API auto dragonbox::to_decimal(float x) noexcept
  11. -> dragonbox::decimal_fp<float>;
  12. template FMT_API auto dragonbox::to_decimal(double x) noexcept
  13. -> dragonbox::decimal_fp<double>;
  14. #if FMT_USE_LOCALE
  15. // DEPRECATED! locale_ref in the detail namespace
  16. template FMT_API locale_ref::locale_ref(const std::locale& loc);
  17. template FMT_API auto locale_ref::get<std::locale>() const -> std::locale;
  18. #endif
  19. // Explicit instantiations for char.
  20. template FMT_API auto thousands_sep_impl(locale_ref)
  21. -> thousands_sep_result<char>;
  22. template FMT_API auto decimal_point_impl(locale_ref) -> char;
  23. // DEPRECATED!
  24. template FMT_API void buffer<char>::append(const char*, const char*);
  25. // DEPRECATED!
  26. template FMT_API void vformat_to(buffer<char>&, string_view,
  27. typename vformat_args<>::type, locale_ref);
  28. // Explicit instantiations for wchar_t.
  29. template FMT_API auto thousands_sep_impl(locale_ref)
  30. -> thousands_sep_result<wchar_t>;
  31. template FMT_API auto decimal_point_impl(locale_ref) -> wchar_t;
  32. template FMT_API void buffer<wchar_t>::append(const wchar_t*, const wchar_t*);
  33. } // namespace detail
  34. FMT_END_NAMESPACE