MyGit

9.1.0

fmtlib/fmt

版本发布时间: 2022-08-28 00:06:02

fmtlib/fmt最新发布版本:11.0.2(2024-07-20 22:32:04)

fmt::formatted_size now works at compile time (#3026). For example (godbolt):

#include <fmt/compile.h>

int main() {
  using namespace fmt::literals;
  constexpr size_t n = fmt::formatted_size("{}"_cf, 42);
  fmt::print("{}\n", n); // prints 2
}

Thanks @marksantaniello (Mark Santaniello).

Fixed handling of invalid UTF-8 (#3038, #3044, #3056). Thanks @phprus (Vladislav Shchapov) and @skeeto (Christopher Wellons).

Improved Unicode support in ostream overloads of print (#2994, #3001, #3025). Thanks @dimztimz (Dimitrij Mijoski).

Fixed handling of the sign specifier in localized formatting on systems with 32-bit wchar_t (#3041).

Added support for wide streams to fmt::streamed (#2994). Thanks @phprus (Vladislav Shchapov).

Added the n specifier that disables the output of delimiters when formatting ranges (#2981, #2983). For example (godbolt):

#include <fmt/ranges.h>
#include <vector>

int main() {
  auto v = std::vector{1, 2, 3};
  fmt::print("{:n}\n", v); // prints 1, 2, 3
}

Thanks @BRevzin (Barry Revzin).

Worked around problematic std::string_view constructors introduced in C++23 (#3030, #3050). Thanks @strega-nil-ms (nicole mazzuca).

Improve handling (exclusion) of recursive ranges (#2968, #2974). Thanks @Dani-Hub (Daniel Krügler).

Improved error reporting in format string compilation (#3055).

Improved the implementation of Dragonbox, the algorithm used for the default floating-point formatting (#2984). Thanks @jk-jeon (Junekey Jeon).

Fixed issues with floating-point formatting on exotic platforms.

Improved the implementation of chrono formatting (#3010). Thanks @phprus (Vladislav Shchapov).

Improved documentation (#2966, #3009, #3020, #3037). Thanks @mwinterb, @jcelerier (Jean-Michaël Celerier) and @remiburtin (Rémi Burtin).

Improved build configuration (#2991, #2995, #3004, #3007, #3040). Thanks @dimztimz (Dimitrij Mijoski) and @hwhsu1231 (Haowei Hsu).

Fixed various warnings and compilation issues (#2969, #2971, #2975, #2982, #2985, #2988, #3000, #3006, #3014, #3015, #3021, #3023, #3024, #3029, #3043, #3052, #3053, #3054). Thanks @h-friederich (Hannes Friederich), @dimztimz (Dimitrij Mijoski), @olupton (Olli Lupton), @bernhardmgruber (Bernhard Manfred Gruber), @phprus (Vladislav Shchapov).

Pull Requests

New Contributors

Full Changelog: https://github.com/fmtlib/fmt/compare/9.0.0...9.1.0

相关地址:原始地址 下载(tar) 下载(zip)

1、 fmt-9.1.0.zip 1.2MB

查看:2022-08-28发行的版本