From d9b90029bf70fa9ffd1d8ffbe21fc3270cc28ab4 Mon Sep 17 00:00:00 2001
From: Victor Zverovich
+ >fmt::format("{:d}", "I am not a number");
will give a compile-time error because fmt::format("The answer is {:d}", "forty-two");
d
is not a valid
format specifier for strings. APIs like
@@ -55,8 +55,8 @@ hide:
-The library minimizes dynamic memory allocations and allows
-format string compilation.
+The library minimizes dynamic memory allocations and can optionally
+compile format strings to optimal code.
{fmt} provides portable Unicode support on major operating systems
- with UTF-8 and normal char
strings. For example:
+ with UTF-8 and char
strings. For example:
fmt::print("Слава Україні!");
@@ -89,8 +89,8 @@ The library minimizes dynamic memory allocations and allows
Code using {fmt} is usually several times faster to compile than the
- equivalent iostreams code and while printf
is faster still, the
- gap is narrowing.
+ equivalent iostreams code and while printf
compiles faster still,
+ the gap is narrowing.