spdlog/src/fmt.cpp

54 lines
2.3 KiB
C++
Raw Normal View History

#ifndef SPDLOG_COMPILED_LIB
#error Please define SPDLOG_COMPILED_LIB to compile this file.
#endif
// Slightly modified version of fmt lib's format.cc source file.
// Copyright (c) 2012 - 2016, Victor Zverovich
// All rights reserved.
#if !defined(SPDLOG_FMT_EXTERNAL)
#include "spdlog/fmt/bundled/format-inl.h"
FMT_BEGIN_NAMESPACE
2019-12-05 05:39:17 +08:00
template struct FMT_API internal::basic_data<void>;
// Workaround a bug in MSVC2013 that prevents instantiation of format_float.
2019-12-13 06:12:05 +08:00
int (*instantiate_format_float)(double, int, internal::float_specs, internal::buffer<char> &) = internal::format_float;
2019-12-05 05:39:17 +08:00
#ifndef FMT_STATIC_THOUSANDS_SEPARATOR
2019-12-13 06:12:05 +08:00
template FMT_API internal::locale_ref::locale_ref(const std::locale &loc);
template FMT_API std::locale internal::locale_ref::get<std::locale>() const;
2019-12-05 05:39:17 +08:00
#endif
// Explicit instantiations for char.
2019-12-05 05:39:17 +08:00
template FMT_API std::string internal::grouping_impl<char>(locale_ref);
template FMT_API char internal::thousands_sep_impl(locale_ref);
template FMT_API char internal::decimal_point_impl(locale_ref);
2019-12-05 05:39:17 +08:00
2019-12-13 06:12:05 +08:00
template FMT_API void internal::buffer<char>::append(const char *, const char *);
2019-12-05 05:39:17 +08:00
2019-12-13 06:12:05 +08:00
template FMT_API void internal::arg_map<format_context>::init(const basic_format_args<format_context> &args);
2019-12-05 05:39:17 +08:00
2019-12-13 06:12:05 +08:00
template FMT_API std::string internal::vformat<char>(string_view, basic_format_args<format_context>);
2019-12-05 05:39:17 +08:00
2019-12-13 06:12:05 +08:00
template FMT_API format_context::iterator internal::vformat_to(internal::buffer<char> &, string_view, basic_format_args<format_context>);
2019-12-05 05:39:17 +08:00
2019-12-13 06:12:05 +08:00
template FMT_API int internal::snprintf_float(double, int, internal::float_specs, internal::buffer<char> &);
template FMT_API int internal::snprintf_float(long double, int, internal::float_specs, internal::buffer<char> &);
template FMT_API int internal::format_float(double, int, internal::float_specs, internal::buffer<char> &);
template FMT_API int internal::format_float(long double, int, internal::float_specs, internal::buffer<char> &);
// Explicit instantiations for wchar_t.
2019-12-05 05:39:17 +08:00
template FMT_API std::string internal::grouping_impl<wchar_t>(locale_ref);
template FMT_API wchar_t internal::thousands_sep_impl(locale_ref);
template FMT_API wchar_t internal::decimal_point_impl(locale_ref);
2019-12-05 05:39:17 +08:00
2019-12-13 06:12:05 +08:00
template FMT_API void internal::buffer<wchar_t>::append(const wchar_t *, const wchar_t *);
2019-12-05 05:39:17 +08:00
2019-12-13 06:12:05 +08:00
template FMT_API std::wstring internal::vformat<wchar_t>(wstring_view, basic_format_args<wformat_context>);
FMT_END_NAMESPACE
#endif