From b64486dae96f81cc10b16956a33555f0c688289a Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 21 Mar 2018 07:51:56 -0700 Subject: [PATCH] Add format.cc --- src/format.cc | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/format.cc diff --git a/src/format.cc b/src/format.cc new file mode 100644 index 00000000..1e164f9d --- /dev/null +++ b/src/format.cc @@ -0,0 +1,46 @@ +// Formatting library for C++ +// +// Copyright (c) 2012 - 2016, Victor Zverovich +// All rights reserved. +// +// For the license information refer to format.h. + +#include "fmt/format-inl.h" + +namespace fmt { + +template struct internal::basic_data; + +// Explicit instantiations for char. + +template char internal::thousands_sep(locale_provider *lp); + +template void basic_fixed_buffer::grow(std::size_t); + +template void internal::arg_map::init( + const basic_format_args &args); + +template FMT_API int internal::char_traits::format_float( + char *buffer, std::size_t size, const char *format, + unsigned width, int precision, double value); + +template FMT_API int internal::char_traits::format_float( + char *buffer, std::size_t size, const char *format, + unsigned width, int precision, long double value); + +// Explicit instantiations for wchar_t. + +template wchar_t internal::thousands_sep(locale_provider *lp); + +template void basic_fixed_buffer::grow(std::size_t); + +template void internal::arg_map::init(const wformat_args &args); + +template FMT_API int internal::char_traits::format_float( + wchar_t *buffer, std::size_t size, const wchar_t *format, + unsigned width, int precision, double value); + +template FMT_API int internal::char_traits::format_float( + wchar_t *buffer, std::size_t size, const wchar_t *format, + unsigned width, int precision, long double value); +} // namespace fmt