mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-09 12:50:05 +00:00
Update changelog and docs
This commit is contained in:
parent
47a0eec2e8
commit
a13d1b12e5
36
ChangeLog.md
36
ChangeLog.md
@ -29,7 +29,8 @@
|
||||
For example ([godbolt](https://godbolt.org/z/YajfKjhhr)):
|
||||
|
||||
```c++
|
||||
#include <fmt/chrono.h>
|
||||
#include <source_location>
|
||||
#include <fmt/std.h>
|
||||
|
||||
int main() {
|
||||
fmt::print("{}\n", std::source_location::current());
|
||||
@ -79,6 +80,12 @@
|
||||
- Made `format_as` work with references
|
||||
(https://github.com/fmtlib/fmt/pull/3739). Thanks @tchaikov.
|
||||
|
||||
- Fixed formatting of invalid UTF-8 with precision
|
||||
(https://github.com/fmtlib/fmt/issues/3284).
|
||||
|
||||
- Fixed an inconsistency between `fmt::to_string` and `fmt::format`
|
||||
(https://github.com/fmtlib/fmt/issues/3684).
|
||||
|
||||
- Disallowed unsafe uses of `fmt::styled`
|
||||
(https://github.com/fmtlib/fmt/issues/3625):
|
||||
|
||||
@ -89,11 +96,20 @@
|
||||
|
||||
Pass `fmt::styled(...)` as a parameter instead.
|
||||
|
||||
- Added a null check when formatting C strings with the `s` specifier
|
||||
(https://github.com/fmtlib/fmt/issues/3706).
|
||||
|
||||
- Disallowed the `c` specifier for `bool`
|
||||
(https://github.com/fmtlib/fmt/pull/3734). Thanks @js324.
|
||||
(https://github.com/fmtlib/fmt/issues/3726,
|
||||
https://github.com/fmtlib/fmt/pull/3734). Thanks @js324.
|
||||
|
||||
- Made the default formatting unlocalized in `fmt::ostream_formatter` for
|
||||
consistency with the rest of the library
|
||||
(https://github.com/fmtlib/fmt/issues/3460).
|
||||
|
||||
- Fixed localized formatting in bases other than decimal
|
||||
(https://github.com/fmtlib/fmt/pull/3750). Thanks @js324.
|
||||
(https://github.com/fmtlib/fmt/issues/3693,
|
||||
https://github.com/fmtlib/fmt/pull/3750). Thanks @js324.
|
||||
|
||||
- Fixed a performance regression in experimental `fmt::ostream::print`
|
||||
(https://github.com/fmtlib/fmt/issues/3674).
|
||||
@ -124,7 +140,7 @@
|
||||
https://github.com/fmtlib/fmt/pull/3702,
|
||||
https://github.com/fmtlib/fmt/pull/3749). Thanks @pklima and @tchaikov.
|
||||
|
||||
- Fixed various warnings and compilation issues
|
||||
- Fixed various warnings, compilation and test issues
|
||||
(https://github.com/fmtlib/fmt/issues/3607,
|
||||
https://github.com/fmtlib/fmt/pull/3610,
|
||||
https://github.com/fmtlib/fmt/pull/3624,
|
||||
@ -137,11 +153,16 @@
|
||||
https://github.com/fmtlib/fmt/pull/3652,
|
||||
https://github.com/fmtlib/fmt/issues/3654,
|
||||
https://github.com/fmtlib/fmt/pull/3663,
|
||||
https://github.com/fmtlib/fmt/issues/3670,
|
||||
https://github.com/fmtlib/fmt/pull/3680,
|
||||
https://github.com/fmtlib/fmt/issues/3694,
|
||||
https://github.com/fmtlib/fmt/pull/3695,
|
||||
https://github.com/fmtlib/fmt/pull/369,
|
||||
https://github.com/fmtlib/fmt/pull/3699,
|
||||
https://github.com/fmtlib/fmt/issues/3705,
|
||||
https://github.com/fmtlib/fmt/issues/3710,
|
||||
https://github.com/fmtlib/fmt/issues/3712,
|
||||
https://github.com/fmtlib/fmt/pull/3713,
|
||||
https://github.com/fmtlib/fmt/issues/3714,
|
||||
https://github.com/fmtlib/fmt/pull/3716,
|
||||
https://github.com/fmtlib/fmt/pull/3723,
|
||||
https://github.com/fmtlib/fmt/issues/3738,
|
||||
@ -156,7 +177,9 @@
|
||||
https://github.com/fmtlib/fmt/pull/3755,
|
||||
https://github.com/fmtlib/fmt/issues/3760,
|
||||
https://github.com/fmtlib/fmt/pull/3762,
|
||||
https://github.com/fmtlib/fmt/pull/3764).
|
||||
https://github.com/fmtlib/fmt/issues/3763,
|
||||
https://github.com/fmtlib/fmt/pull/3764,
|
||||
https://github.com/fmtlib/fmt/issues/3774).
|
||||
Thanks @danakj, @vinayyadav3016, @cyyever, @phprus, @qimiko, @saschasc,
|
||||
@gsjaardema, @lazka, @Zhaojun-Liu, @carlsmedstad, @hotwatermorning,
|
||||
@cptFracassa, @kuguma, @PeterJohnson, @H1X4Dev, @asantoni, @eltociear,
|
||||
@ -172,6 +195,7 @@
|
||||
https://github.com/fmtlib/fmt/issues/3673,
|
||||
https://github.com/fmtlib/fmt/pull/3677,
|
||||
https://github.com/fmtlib/fmt/pull/3737,
|
||||
https://github.com/fmtlib/fmt/issues/3742,
|
||||
https://github.com/fmtlib/fmt/pull/3744).
|
||||
Thanks @idzm, @perlun, @joycebrum, @fennewald, @reinhardt1053, @GeorgeLS.
|
||||
|
||||
|
@ -229,9 +229,10 @@ The available integer presentation types are:
|
||||
| none | The same as ``'d'``. |
|
||||
+---------+----------------------------------------------------------+
|
||||
|
||||
Integer presentation types can also be used with character and Boolean values.
|
||||
Boolean values are formatted using textual representation, either ``true`` or
|
||||
``false``, if the presentation type is not specified.
|
||||
Integer presentation types can also be used with character and Boolean values
|
||||
with the only exception that ``'c'`` cannot be used with `bool`. Boolean values
|
||||
are formatted using textual representation, either ``true`` or ``false``, if the
|
||||
presentation type is not specified.
|
||||
|
||||
The available presentation types for floating-point values are:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user