Beat Bolli
668fe2653c
doc: fix the chrono %C example value ( #3822 )
...
Assuming that the example date is always "Sat Nov 12 22:04:00 1955", the
result of the `%C` format string should be "19", not "55".
Signed-off-by: Beat Bolli <dev@drbeat.li>
2024-01-21 06:31:15 -08:00
Eicke Herbertz
6c617c9670
Update documentation ( #3789 )
...
Add a note about the numerical zero being ignored when an alignment flag is
present in the format specifier.
This change was introduced in a585571e90
to
be compatible with std::format, but misses documentation.
2024-01-04 10:35:55 -08:00
Victor Zverovich
a13d1b12e5
Update changelog and docs
2023-12-29 13:00:12 -08:00
Victor Zverovich
18ca2248df
Document '?'
2023-12-28 06:39:00 -08:00
Victor Zverovich
32190859ec
Fix handling of char
2022-12-30 09:11:42 -08:00
Cleroth
040dc2a5d4
small typo in syntax.rst
...
0x1e was misread as 0x13, it looks like
2022-12-23 10:29:14 -08:00
Victor Zverovich
d2e89c8b08
Document more chrono specs
2022-11-08 19:35:34 -10:00
Victor Zverovich
bd19593204
Document more chrono specs
2022-11-08 16:22:23 -10:00
Victor Zverovich
fd0d0ec8df
Document more chrono specs
2022-11-08 14:57:57 -10:00
Victor Zverovich
76705fc2ee
Update doc
2022-09-10 15:06:09 -07:00
Rémi Burtin
9ff0f3a7d6
Fix docs
2022-08-16 11:31:11 -07:00
jehelset
6a775e9560
Add support for 'std::variant' in C++17 ( #2941 )
...
Add support for 'std::variant' in C++17.
For C++17, if all the alternatives of a variant are formattable
the variant is now also formattable. In addition 'std::monostate'
is now formattable.
Moves implementation into 'std.h', and tests into 'std-test.cc'.
Avoid fold-expression since MSVC was crashing.
Add section for 'fmt/std.h' in API-docs.
2022-06-26 07:28:01 -07:00
Victor Zverovich
1f3d44b859
Update std::tm/chrono docs
2022-03-15 16:53:51 -07:00
Barry Revzin
c06bef7273
Adding comments for range formatting. ( #2706 )
...
* Adding comments for range formatting.
* Adding missing quotes
2022-01-08 16:37:21 -08:00
Victor Zverovich
3014b3d770
Clarify that C strings must be null-terminated
2021-12-26 07:23:43 -08:00
Victor Zverovich
f5371a75f4
locale.h -> format.h
2021-10-14 15:57:10 -07:00
Victor Zverovich
25af02f21a
positive -> nonnegative ( #2493 )
2021-09-10 08:52:54 -07:00
Victor Zverovich
36c2948225
Update docs
2021-06-08 08:25:50 -07:00
Mark de Wever
1f308a3cea
Update integer presentation types documentation.
...
Documents that the 'c' type is a valid type for integer types. Since
boolean uses the same types as integer its documentation is
automatically updated.
2021-05-24 10:55:08 -07:00
Victor Zverovich
b4b8917caf
Update docs
2021-01-17 09:36:06 -08:00
AlιAѕѕaѕѕιN
018688da2a
Correct a typo on syntax.rst (documentation) ( #2081 )
2020-12-31 16:23:42 -08:00
谭九鼎
a6fafe2f01
docs: use https for some links ( #2051 )
2020-12-05 06:41:38 -08:00
Victor Zverovich
32c4af8f0d
Document chrono
2020-11-07 10:38:51 -08:00
Victor Zverovich
a4fae96c96
Document chrono
2020-11-07 10:24:27 -08:00
Victor Zverovich
263bb0e68d
Document chrono
2020-11-07 10:19:40 -08:00
Victor Zverovich
0506b328b5
Document chrono
2020-11-07 09:59:57 -08:00
Victor Zverovich
4e426c19d0
Document chrono
2020-11-07 09:47:56 -08:00
Victor Zverovich
9795d87348
Update docs
2020-11-07 09:27:06 -08:00
Victor Zverovich
75b07598fe
Chrono docs
2020-11-07 07:56:53 -08:00
Kevin Puetz
981b517ccf
nested replacement fields may omit arg_id ( #1681 )
...
syntax.html already has examples like `fmt::format("{:.{}f}", 3.14, 1)` using this,
and https://en.cppreference.com/w/cpp/utility/format/formatter#width_and_precision shows that this is the case for the C++20 std::format
The Format Specification Mini-Language grammar seems to be the only one not showing this; update it to match.
2020-05-13 17:20:05 -07:00
Victor Zverovich
d1d653d895
Implement the L specifier
2020-04-02 06:58:38 -07:00
Victor Zverovich
0b2eb6501c
Add locale example
2020-01-20 08:42:16 -08:00
Victor Zverovich
a844d7ab81
Add namespaces
2020-01-19 19:20:48 -08:00
Victor Zverovich
47d3968092
Add more examples
2020-01-19 19:15:54 -08:00
Victor Zverovich
7800173eb1
Update fill docs
2020-01-19 18:57:32 -08:00
Victor Zverovich
674c326d7c
Update syntax.rst
2019-12-29 07:25:34 -10:00
Victor Zverovich
061a9897fe
Update syntax.rst
2019-12-26 16:49:40 -10:00
Victor Zverovich
4f4d876616
Remove '%' from the docs
2019-12-06 07:06:19 -08:00
Victor Zverovich
f7a4b4ab91
Make numeric alignment optional
2019-09-06 09:43:53 -07:00
Victor Zverovich
d1dd9d5327
Document floating-point n specifier ( #1291 )
2019-08-31 08:16:47 -07:00
Victor Zverovich
5a4b24613b
Update the default floating-point format docs ( #1270 )
2019-08-22 15:21:14 -07:00
Victor Zverovich
28c187bcd7
Capitalize titles
2019-05-18 08:56:49 -07:00
Victor Zverovich
17c6900f83
Update docs
2019-03-17 14:15:48 -07:00
Gawain Bolton
2d981bb133
Add documentation for '%' format type. ( #1071 )
2019-03-06 11:50:32 -10:00
Victor Zverovich
ba95e36a58
Clarify that '\0' cannot be used as fill ( #832 )
2018-08-19 08:37:40 -07:00
johnthagen
9c5f54a723
Add format example for padded hex byte
...
Fixes #2
2018-03-13 23:05:48 -04:00
Victor Zverovich
5b3f9eab94
Update syntax.rst
2018-02-10 07:03:44 -08:00
Victor Zverovich
66b25ef0d0
Add examples
2018-02-10 06:33:03 -08:00
Victor Zverovich
e51119508c
argument index -> argument id
2018-01-20 17:55:28 -08:00
Victor Zverovich
04335aeadb
Correct syntax
2016-08-25 07:08:36 -07:00