Commit Graph

16 Commits

Author SHA256 Message Date
Dominique Leuenberger
3c9173e3ce Accepting request 756026 from devel:libraries:c_c++
- Update to version 6.1.2
  * Fixed ABI compatibility with libfmt.so.6.0.0 (#1471).
  * Fixed handling types convertible to std::string_view (#1451).
    Thanks @denizevrenci (Deniz Evrenci).
  * Made CUDA test an opt-in enabled via the FMT_CUDA_TEST CMake
    option.
  * Fixed sign conversion warnings (#1440). Thanks @0x8000-0000
    (Florin Iucha).
- Update to version 6.1.1
  * Added a missing decimal point in exponent notation with
    trailing zeros.
  * Removed deprecated format_arg_store::TYPES.
- Update to version 6.1.0
  * {fmt} now formats IEEE 754 ``float`` and ``double`` using
    the shortest decimal representation with correct rounding by
    default:
    .. code:: c++
       #include <cmath>
       #include <fmt/core.h>
       int main() {
         fmt::print("{}", M_PI);
       }
    prints ``3.141592653589793``.
  * Made the fast binary to decimal floating-point formatter the
    default, simplified it and improved performance. {fmt} is now
    15 times faster than libc++'s ``std::ostringstream``, 11
    times faster than ``printf`` and 10% faster than
    double-conversion on `dtoa-benchmark
    (https://github.com/fmtlib/dtoa-benchmark)
    ==================  =========  =======
    Function            Time (ns)  Speedup
    ==================  =========  =======
    ostringstream        1,346.30    1.00x
    ostrstream           1,195.74    1.13x
    sprintf                995.08    1.35x
    doubleconv              99.10   13.59x
    fmt                     88.34   15.24x
    ==================  =========  =======
  * {fmt} no longer converts ``float`` arguments to ``double``.
    In particular this improves the default (shortest)
    representation of floats and makes
    ``fmt::format`` consistent with ``std::format`` specs
    (#1336, #1353, #1360, #1361)
    .. code:: c++
       fmt::print("{}", 0.1f);
    prints ``0.1`` instead of ``0.10000000149011612``.
  * Made floating-point formatting output consistent with
    ``printf``/iostreams (#1376, #1417)
  * Added support for 128-bit integers (#1287)
    .. code:: c++
       fmt::print("{}", std::numeric_limits<__int128_t>::max());
    prints ``170141183460469231731687303715884105727``.
  * The overload of ``print`` that takes ``text_style`` is now
    atomic, i.e. the output from different threads doesn't
    interleave (#1351)
  * Made compile time in the header-only mode ~20% faster by
    reducing the number of template instantiations. ``wchar_t``
    overload of ``vprint`` was moved from
    ``fmt/core.h`` to ``fmt/format.h``.
  * Added an overload of ``fmt::join`` that works with tuples
    (#1322, #1330)
    .. code:: c++
       #include <tuple>
       #include <fmt/ranges.h>
       int main() {
         std::tuple<char, int, float> t{'a', 1, 2.0f};
         fmt::print("{}", t);
       }
    prints ``('a', 1, 2.0)``.
  * Changed formatting of octal zero with prefix from "0o0" to
    "0":
    .. code:: c++
       fmt::print("{:#o}", 0);
    prints ``0``.
  * The locale is now passed to ostream insertion (``<<``)
    operators (#1406)
    .. code:: c++
       #include <fmt/locale.h>
       #include <fmt/ostream.h>
       struct S {
         double value;
       };
       std::ostream& operator<<(std::ostream& os, S s) {
         return os << s.value;
       }
       int main() {
         auto s = fmt::format(std::locale("fr_FR.UTF-8"), "{}", S{0.42});
         // s == "0,42"
       }
  * Locale-specific number formatting now uses grouping (#1393,
    #1394)
  * Fixed handling of types with deleted implicit rvalue
    conversion to ``const char**`` (#1421)
    .. code:: c++
       struct mystring {
         operator const char*() const&;
         operator const char*() &;
         operator const char*() const&& = delete;
         operator const char*() && = delete;
       };
       mystring str;
       fmt::print("{}", str); // now compiles
  * Enums are now mapped to correct underlying types instead of
    ``int`` (#1286)
  * Enum classes are no longer implicitly converted to ``int``
    (#1424)
  * Added ``basic_format_parse_context`` for consistency with
    C++20 ``std::format`` and deprecated ``basic_parse_context``.
  * Fixed handling of UTF-8 in precision (#1389, #1390)
  * Added a CUDA test (#1285, #1317)
  * Improved documentation (#1276, #1291, #1296, #1315, #1332,
    #1337, #1395, #1418)
  * Various code improvements (#1358, #1407)
  * Fixed compile-time format string checks for user-defined
    types (#1292)
  * Worked around a false positive in
    ``unsigned-integer-overflow`` sanitizer (#1377)
  * Fixed various warnings and compilation issues (#1273, #1278,
    #1280, #1281, #1288, #1290, #1301, #1305, #1306, #1309,
    #1312, #1313, #1316, #1319, #1320, #1326, #1328, #1344,
    #1345, #1347, #1349, #1354, #1362, #1366, #1364, #1370,
    #1371, #1385, #1388, #1397, #1414, #1416, #1422, #1427,
    #1431, #1433)
- Dropped fmt-bigendian_1.patch, fmt-bigendian_2.patch,
  fmt-bigendian_3.patch and fmt-bigendian_4.patch (merged
  upstream)

OBS-URL: https://build.opensuse.org/request/show/756026
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fmt?expand=0&rev=5
2019-12-23 21:36:21 +00:00
Luigi Baldoni
aaeb35156e Accepting request 756025 from home:alois:branches:devel:libraries:c_c++
update to 6.1.2

OBS-URL: https://build.opensuse.org/request/show/756025
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/fmt?expand=0&rev=15
2019-12-12 09:45:08 +00:00
Luigi Baldoni
2cb6644d09 Accepting request 755829 from home:alois:branches:devel:libraries:c_c++
update to 6.1.1

OBS-URL: https://build.opensuse.org/request/show/755829
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/fmt?expand=0&rev=14
2019-12-11 11:37:52 +00:00
Dominique Leuenberger
390095d202 Accepting request 753962 from devel:libraries:c_c++
update to 6.0.0

OBS-URL: https://build.opensuse.org/request/show/753962
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fmt?expand=0&rev=4
2019-12-11 10:59:49 +00:00
Luigi Baldoni
05f4a8eecc - Added fmt-bigendian_1.patch, fmt-bigendian_2.patch,
fmt-bigendian_3.patch and fmt-bigendian_4.patch to fix tests
  on big endian targets

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/fmt?expand=0&rev=12
2019-12-04 11:16:33 +00:00
Luigi Baldoni
f9b3ea678d Accepting request 752966 from home:alois:branches:devel:libraries:c_c++
update to 6.1.0

OBS-URL: https://build.opensuse.org/request/show/752966
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/fmt?expand=0&rev=11
2019-12-02 15:29:26 +00:00
Luigi Baldoni
093c9ccab8 Accepting request 752684 from home:alois:branches:devel:libraries:c_c++
fix big endian build

OBS-URL: https://build.opensuse.org/request/show/752684
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/fmt?expand=0&rev=10
2019-12-01 09:17:42 +00:00
Luigi Baldoni
2a9e845bee Accepting request 752319 from home:alois:branches:devel:libraries:c_c++
update to 6.0.0

OBS-URL: https://build.opensuse.org/request/show/752319
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/fmt?expand=0&rev=9
2019-11-29 10:25:23 +00:00
Dominique Leuenberger
9444e91ab4 Accepting request 688601 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/688601
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fmt?expand=0&rev=3
2019-03-26 14:45:38 +00:00
Luigi Baldoni
d8e42642c2 Accepting request 688362 from home:olh:branches:devel:libraries:c_c++
- Install fmt.pc into libdir with
  0001-install-pkg-config-file-into-libdir.patch

OBS-URL: https://build.opensuse.org/request/show/688362
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/fmt?expand=0&rev=7
2019-03-26 08:29:23 +00:00
Dominique Leuenberger
aee9bbf180 Accepting request 665283 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/665283
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fmt?expand=0&rev=2
2019-01-15 08:17:24 +00:00
Luigi Baldoni
507c50d090 Accepting request 665005 from home:susnux:branches:devel:libraries:c_c++
- Update to version 5.3.0:
  * Introduced experimental chrono formatting support
  * Added experimental support for emphasis
   (bold, italic, underline, strikethrough), colored output to a
   file stream, and improved colored formatting API
  * Added support for 4-bit terminal colors
  * Made std::string_view work as a format string
  * Added wide string support to compile-time format string checks
  * Made colored print functions work with wide strings
  * Introduced experimental Unicode support
  * Removed undocumented basic_fixed_buffer which has been
   superseded by the iterator-based API
  * Disallowed repeated leading zeros in an argument ID
  * Deprecated fmt::visit, parse_context, and wparse_context.
   Use fmt::visit_format_arg, format_parse_context, and
   wformat_parse_context instead.
- Removed upstream merged fix-fmt_pc.patch

OBS-URL: https://build.opensuse.org/request/show/665005
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/fmt?expand=0&rev=5
2019-01-13 12:48:15 +00:00
Dominique Leuenberger
7b9578769d Accepting request 655907 from devel:libraries:c_c++
- Do without em dashes in summaries.
- Added baselibs.conf as source
- initial package for version 5.2.1

OBS-URL: https://build.opensuse.org/request/show/655907
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fmt?expand=0&rev=1
2018-12-12 16:28:05 +00:00
Luigi Baldoni
93626a2a41 Accepting request 655902 from home:jengelh:branches:devel:libraries:c_c++
- Do without em dashes in summaries.

OBS-URL: https://build.opensuse.org/request/show/655902
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/fmt?expand=0&rev=3
2018-12-06 21:57:59 +00:00
Luigi Baldoni
4c5415849e Accepting request 655681 from home:alois:branches:devel:libraries:c_c++
- Added baselibs.conf as source

OBS-URL: https://build.opensuse.org/request/show/655681
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/fmt?expand=0&rev=2
2018-12-06 13:39:12 +00:00
Ismail Dönmez
f52c0e470d Accepting request 655370 from home:alois:branches:devel:libraries:c_c++
- initial package for version 5.2.1

OBS-URL: https://build.opensuse.org/request/show/655370
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/fmt?expand=0&rev=1
2018-12-06 09:03:10 +00:00