diff --git a/ChangeLog.rst b/ChangeLog.rst index d8004e9e..797b842a 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -60,6 +60,20 @@ (`#2564 `_). Thanks `@phprus (Vladislav Shchapov) `_. +* Added ``fmt::group_digits`` that formats integers with a non-localized digit + separator (comma) for groups of three digits. + For example (`godbolt `__): + + .. code:: c++ + + #include + + int main() { + fmt::print("{} dollars", fmt::group_digits(1000000)); + } + + prints ``1,000,000 dollars``. + * Added support for faint, conceal, reverse and blink text styles (`#2394 `_): @@ -68,6 +82,8 @@ Thanks `@benit8 (Benoît Lormeau) `_ and `@data-man (Dmitry Atamanov) `_. +* Decimal point is now localized when using the ``L`` specifier. + * Added experimental support for compile-time floating point formatting (`#2426 `_, `#2470 `_). @@ -94,29 +110,58 @@ Thanks `@alexezeder (Alexey Ochapov) `_. -* Implemented escaping of string range elements. For example: +* Implemented escaping of string range elements. + For example (`godbolt `__): .. code:: c++ #include + #include int main() { - fmt::print("{}", std::vector{"\naan"}; + fmt::print("{}", std::vector{"\naan"}); } is now printed as:: - ["\naan"] + ["\naan"] instead of:: - [" - aan"] + [" + aan"] + +* Switched to JSON-like representation of maps and sets for consistency with + Python's `str.format``. + For example (`godbolt `__): + + .. code:: c++ + + #include + #include + + int main() { + fmt::print("{}", std::map{{"answer", 42}}); + } + + is now printed as:: + + {"answer": 42} * Extended ``fmt::join`` to support C++20-only ranges (`#2549 `_). Thanks `@BRevzin (Barry Revzin) `_. +* Optimized handling of non-const-iterable ranges and implemented initial + support for non-const-formattable types. + +* Disabled implicit conversions of scoped enums to integers that was + accidentally introduced in earlier versions + (`#1841 `_). + +* Deprecated implicit conversion of ``[const] signed char*`` and + ``[const] unsigned char*`` to C strings. + * Deprecated ``_format``, a legacy UDL-based format API (`#2646 `_). Thanks `@alexezeder (Alexey Ochapov) `_. @@ -238,6 +283,7 @@ `#2408 `_, `#2414 `_, `#2427 `_, + `#2432 `_, `#2442 `_, `#2434 `_, `#2439 `_, @@ -291,6 +337,7 @@ `@jcelerier (Jean-Michaël Celerier) `_, `@mborn-adi (Mathias Born) `_, `@BrukerJWD (Jonathan W) `_, + `@spyridon97 (Spiros Tsalikis) `_, `@phprus (Vladislav Shchapov) `_, `@oliverlee (Oliver Lee) `_, `@joshessman-llnl (Josh Essman) `_,