Improve locale support

This commit is contained in:
Victor Zverovich
2022-08-31 08:05:17 -07:00
parent 0b0f7cfbfc
commit 64e29893cf
5 changed files with 112 additions and 13 deletions

View File

@@ -22,6 +22,9 @@ template FMT_API auto locale_ref::get<std::locale>() const -> std::locale;
// Explicit instantiations for char.
template FMT_API auto write_int(unsigned long long, locale_ref)
-> std::basic_string<char>;
template FMT_API auto thousands_sep_impl(locale_ref)
-> thousands_sep_result<char>;
template FMT_API auto decimal_point_impl(locale_ref) -> char;
@@ -37,6 +40,9 @@ template FMT_API void vformat_to(buffer<char>&, string_view,
// Explicit instantiations for wchar_t.
template FMT_API auto write_int(unsigned long long, locale_ref)
-> std::basic_string<wchar_t>;
template FMT_API auto thousands_sep_impl(locale_ref)
-> thousands_sep_result<wchar_t>;
template FMT_API auto decimal_point_impl(locale_ref) -> wchar_t;