Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
25ff2efc
Commit
25ff2efc
authored
Jul 25, 2019
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update changelog
parent
9393fe26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
ChangeLog.rst
ChangeLog.rst
+10
-10
No files found.
ChangeLog.rst
View file @
25ff2efc
...
...
@@ -24,30 +24,30 @@
prints "value = 4,2".
* Introduced ``fmt::prepare`` function that allows precompilation of format
strings:
* Introduced the ``fmt::compile`` function that does format string compilation:
.. code:: c++
auto f = fmt::prepare<int>("{}");
#include <fmt/compile.h>
auto f = fmt::compile<int>("{}");
std::string s = f.format(42); // can be called multiple times to format
// different values
This API is experimental and will likely change in the next minor release.
// s == "42"
Thanks `@stryku (Mateusz Janek) <https://github.com/stryku>`_.
* Fixed handling of dynamic width in chrono formatter:
.. code:: c++
.. code:: c++
auto s = fmt::format("{0:{1}%H:%M:%S}", std::chrono::seconds(12345), 12);
// ^ width argument index ^ width
// s == "03:25:45 "
auto s = fmt::format("{0:{1}%H:%M:%S}", std::chrono::seconds(12345), 12);
// ^ width argument index ^ width
// s == "03:25:45 "
Thanks Howard Hinnant.
* Added `
fmt::format` and `fmt::vformat` overloads that take `text_style
`
* Added `
`fmt::format`` and ``fmt::vformat`` overloads that take ``text_style`
`
(`#993 <https://github.com/fmtlib/fmt/issues/993>`_,
`#994 <https://github.com/fmtlib/fmt/pull/994>`_):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment