mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-28 06:36:02 +00:00
Update changelog
This commit is contained in:
parent
4e21baff43
commit
b9f2c27661
@ -73,6 +73,50 @@
|
||||
|
||||
prints "1.1". Use the ``#`` specifier to keep trailing zeros.
|
||||
|
||||
* The ``'L'`` specifier for locale-specific numeric formatting can now be
|
||||
combined with presentation specifiers as in ``std::format``. For example:
|
||||
|
||||
.. code:: c++
|
||||
|
||||
#include <fmt/core.h>
|
||||
#include <locale>
|
||||
|
||||
int main() {
|
||||
std::locale::global(std::locale("fr_FR.UTF-8"));
|
||||
fmt::print("{0:.2Lf}", 0.42);
|
||||
}
|
||||
|
||||
prints "0,42".
|
||||
|
||||
* Added support for the ``'s'`` format specifier that gives textual
|
||||
representation of ``bool``
|
||||
(`#2109 <https://github.com/fmtlib/fmt/pull/2109>`_). For example:
|
||||
|
||||
.. code:: c++
|
||||
|
||||
#include <fmt/core.h>
|
||||
|
||||
int main() {
|
||||
fmt::print("{:s}", true);
|
||||
}
|
||||
|
||||
prints "true".
|
||||
Thanks `@powercoderlol (Ivan Polyakov) <https://github.com/powercoderlol>`_.
|
||||
|
||||
* Fixed handling of empty format strings during format string compilation
|
||||
(`#2042 <https://github.com/fmtlib/fmt/issues/2042>`_):
|
||||
|
||||
.. code:: c++
|
||||
|
||||
auto s = fmt::format(FMT_COMPILE(""));
|
||||
|
||||
Thanks `@alexezeder (Alexey Ochapov) <https://github.com/alexezeder>`_.
|
||||
|
||||
* Fixed handling of enums in ``fmt::to_string``
|
||||
(`#2036 <https://github.com/fmtlib/fmt/issues/2036>`_).
|
||||
|
||||
* Fixed width computation.
|
||||
|
||||
* The experimental fast output stream (``fmt::ostream``) is now truncated by
|
||||
default for consistency with ``fopen``. For example:
|
||||
|
||||
@ -91,17 +135,15 @@
|
||||
writes "Ford" to the file "guide". To preserve the old file content if any
|
||||
pass ``fmt::file::WRONLY | fmt::file::CREATE`` flags to ``fmt::output_file``.
|
||||
|
||||
* Fixed handling of enums in ``fmt::to_string``
|
||||
(`#2036 <https://github.com/fmtlib/fmt/issues/2036>`_)
|
||||
* Fixed writing to ``stdout`` when it is redirected to ``NUL`` on Windows
|
||||
(`#2080 <https://github.com/fmtlib/fmt/issues/2080>`_).
|
||||
|
||||
* Fixed handling of empty format strings during format string compilation
|
||||
(`#2042 <https://github.com/fmtlib/fmt/issues/2042>`_):
|
||||
* Added ``fmt/args.h`` to the install target.
|
||||
|
||||
.. code:: c++
|
||||
|
||||
auto s = fmt::format(FMT_COMPILE(""));
|
||||
|
||||
Thanks `@alexezeder (Alexey Ochapov) <https://github.com/alexezeder>`_.
|
||||
* Added the ``FMT_MASTER_PROJECT`` CMake option to control build and install
|
||||
targets when {fmt} is included via ``add_subdirectory``
|
||||
(`#2100 <https://github.com/fmtlib/fmt/pull/2100>`_).
|
||||
Thanks `@randomizedthinking <https://github.com/randomizedthinking>`_.
|
||||
|
||||
* Fixed various warnings and compilation issues
|
||||
(`#2038 <https://github.com/fmtlib/fmt/issues/2038>`_,
|
||||
@ -112,17 +154,26 @@
|
||||
`#2065 <https://github.com/fmtlib/fmt/pull/2065>`_,
|
||||
`#2067 <https://github.com/fmtlib/fmt/pull/2067>`_,
|
||||
`#2068 <https://github.com/fmtlib/fmt/pull/2068>`_,
|
||||
`#2073 <https://github.com/fmtlib/fmt/pull/2073>`_).
|
||||
`#2073 <https://github.com/fmtlib/fmt/pull/2073>`_,
|
||||
`#2106 <https://github.com/fmtlib/fmt/pull/2106>`_,
|
||||
`#2107 <https://github.com/fmtlib/fmt/pull/2107>`_).
|
||||
Thanks `@yeswalrus (Walter Gray) <https://github.com/yeswalrus>`_,
|
||||
`@Finkman <https://github.com/Finkman>`_,
|
||||
`@HazardyKnusperkeks (Björn Schäpers) <https://github.com/HazardyKnusperkeks>`_,
|
||||
`@dkavolis (Daumantas Kavolis) <https://github.com/dkavolis>`_
|
||||
`@concatime (Issam Maghni) <https://github.com/concatime>`_.
|
||||
`@concatime (Issam Maghni) <https://github.com/concatime>`_,
|
||||
`@chronoxor (Ivan Shynkarenka) <https://github.com/chronoxor>`_.
|
||||
|
||||
* Improved documentation
|
||||
(`#2051 <https://github.com/fmtlib/fmt/pull/2051>`_,
|
||||
`#2057 <https://github.com/fmtlib/fmt/issues/2057>`_).
|
||||
Thanks `@imba-tjd (谭九鼎) <https://github.com/imba-tjd>`_.
|
||||
`#2057 <https://github.com/fmtlib/fmt/issues/2057>`_,
|
||||
`#2081 <https://github.com/fmtlib/fmt/pull/2081>`_).
|
||||
Thanks `@imba-tjd (谭九鼎) <https://github.com/imba-tjd>`_,
|
||||
`@0x416c69 (AlιAѕѕaѕѕιN) <https://github.com/0x416c69>`_.
|
||||
|
||||
* Improved continuous integration
|
||||
(`#2110 <https://github.com/fmtlib/fmt/pull/2110>`_).
|
||||
Thanks `@alexezeder (Alexey Ochapov) <https://github.com/alexezeder>`_.
|
||||
|
||||
7.1.3 - 2020-11-24
|
||||
------------------
|
||||
|
Loading…
Reference in New Issue
Block a user