spdlog/src/bundled_fmtlib_format.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.5 KiB
C++
Raw Normal View History

2024-04-26 05:51:28 +08:00
// Slightly modified version of fmt lib's format.cc source file.
2022-10-31 19:47:47 +08:00
// Copyright (c) 2012 - 2016, Victor Zverovich
// All rights reserved.
#ifndef SPDLOG_COMPILED_LIB
#error Please define SPDLOG_COMPILED_LIB to compile this file.
#endif
#if !defined(SPDLOG_FMT_EXTERNAL) && !defined(SPDLOG_USE_STD_FORMAT)
#include <spdlog/fmt/bundled/format-inl.h>
2022-10-31 19:47:47 +08:00
FMT_BEGIN_NAMESPACE
namespace detail {
2024-11-01 18:04:58 +08:00
template FMT_API auto dragonbox::to_decimal(float x) noexcept
-> dragonbox::decimal_fp<float>;
template FMT_API auto dragonbox::to_decimal(double x) noexcept
-> dragonbox::decimal_fp<double>;
2022-10-31 19:47:47 +08:00
2024-11-01 18:04:58 +08:00
#ifndef FMT_STATIC_THOUSANDS_SEPARATOR
2024-03-29 03:01:15 +08:00
template FMT_API locale_ref::locale_ref(const std::locale& loc);
2022-10-31 19:47:47 +08:00
template FMT_API auto locale_ref::get<std::locale>() const -> std::locale;
2024-11-01 18:04:58 +08:00
#endif
2022-10-31 19:47:47 +08:00
// Explicit instantiations for char.
2024-11-01 18:04:58 +08:00
template FMT_API auto thousands_sep_impl(locale_ref)
-> thousands_sep_result<char>;
2022-10-31 19:47:47 +08:00
template FMT_API auto decimal_point_impl(locale_ref) -> char;
2024-03-29 03:01:15 +08:00
template FMT_API void buffer<char>::append(const char*, const char*);
2022-10-31 19:47:47 +08:00
2024-11-01 18:04:58 +08:00
template FMT_API void vformat_to(buffer<char>&, string_view,
typename vformat_args<>::type, locale_ref);
2022-10-31 19:47:47 +08:00
// Explicit instantiations for wchar_t.
2024-11-01 18:04:58 +08:00
template FMT_API auto thousands_sep_impl(locale_ref)
-> thousands_sep_result<wchar_t>;
2022-10-31 19:47:47 +08:00
template FMT_API auto decimal_point_impl(locale_ref) -> wchar_t;
2024-03-29 03:01:15 +08:00
template FMT_API void buffer<wchar_t>::append(const wchar_t*, const wchar_t*);
2022-10-31 19:47:47 +08:00
} // namespace detail
2022-10-31 19:47:47 +08:00
FMT_END_NAMESPACE
#endif // !SPDLOG_FMT_EXTERNAL