John Dougan
9e7d2f37cf
Fix typos in compound format descriptions ( #10572 )
...
Someone tried to \( instead of $(LPAREN) inside of a bold macro. Didn't work and made the description very misleading.
2024-12-04 08:32:35 +08:00
Nick Treleaven
61bd59c669
[std.format] Add anchors for section headings ( #9054 )
2024-10-02 16:54:07 +03:00
Jeremy Baxter
f176df8475
fix ddoc blunders
...
Caught with grep -Er '\(\$[A-Za-z]'
2024-07-08 08:09:37 +08:00
aG0aep6G
26c7f44de8
fix issue 23488 - std.format.sformat mishandles char ranges
2022-11-15 21:10:14 +01:00
Bastiaan Veelo
afda65c58e
Clarify the format flags documentation. ( #8612 )
...
* Clarify the format flags documentation.
Resolve a `then`/`than` error and focus on what the flag does instead of on the default behaviour when the flag is absent. This way the descriptions for the `-` and `=` flags are more in line.
2022-10-19 05:37:49 +08:00
Paul Backus
5b8749ca7c
Fix issue 23324 - Incorrect source link in std.format docs
2022-09-05 00:26:06 +02:00
Paul Backus
223b82ac26
Fix 23246 - std.format ignores non-const toString method of associative array value
2022-07-13 15:47:33 -04:00
Paul Backus
e1ba05dab1
Fix 23245 - std.format ignores non-const toString method of static array element
2022-07-13 15:46:29 -04:00
Dennis Korpel
ba92563a0d
Fix issue 22939 - bad error message: Error: no property msg
for type string
2022-03-29 18:51:30 +00:00
Gabriel Dolberg
67c546a828
✏️ fix typos in docs
2022-01-05 22:09:24 +00:00
Vladimir Panteleev
28b9d08fa2
Fix Issue 21916 - Error message is obfuscated when using wrong format specifier at compile-time
2021-05-13 02:22:27 +02:00
berni44
3b4dc67878
Make unittests in std.format @safe
2021-05-11 16:13:09 +02:00
berni44
36221cf4cc
Revert "Fix Issue 21456 - std.format does not accept enum member with string base type as template parameter"
...
This reverts commit 974a88a967
.
2021-05-10 18:30:05 +02:00
Razvan Nitu
b78773c5a4
Merge pull request #8015 from berni44/add_integer_efga
...
std.format: Add formatting integers with %e, %f, %g and %a.
2021-05-07 14:59:25 +08:00
berni44
03447d6cc7
Fix Issue 21808 - std.format: It should be possible to change the order of key and value of AAs.
2021-05-05 09:12:40 +02:00
berni44
974a88a967
Fix Issue 21456 - std.format does not accept enum member with string base type as template parameter
2021-05-04 14:36:02 +02:00
berni44
6d5d3e6f0e
std.format: handle "exotic" reals by casting to double
2021-05-03 12:29:15 +02:00
berni44
3206e52aae
Clean up after making formating floating point numbers @nogc.
2021-04-27 13:18:11 +02:00
berni44
99cbab9584
Fix Issue 21858 - std.format: centering output
2021-04-26 19:20:41 +02:00
berni44
5fbc1da0fa
Fix Issue 21847 - std.format: %e, %g and %a should be supported for integers too
2021-04-26 17:10:05 +02:00
berni44
622692b102
Fix Issue 21846 - std.format: provided format string for toString does not work with grouping
2021-04-22 11:07:58 +02:00
berni44
dd69d5531d
std.format: Refactor formatReflectTest
2021-04-22 03:21:31 +02:00
berni44
b467899dc0
std.format: make reflection test work for floating point values
2021-04-21 20:23:16 +02:00
berni44
5e3725363b
std.format: Remove arrayPtrDiff.
2021-04-21 19:43:47 +02:00
berni44
ca06454cfb
Move unittests from std/format/package.d at correct place.
2021-04-21 15:24:44 +02:00
berni44
775b748c7b
std.format: Repair docs of compound indicator and add examples.
2021-04-21 10:53:59 +02:00
berni44
fb6267b6b3
std.format: Add overview table of all combinations of types and format characters.
2021-04-20 14:11:39 +02:00
berni44
1434947cb9
Rework documentation of aggregates of std.format.write
2021-04-19 09:33:20 +02:00
berni44
21918e2374
std.format: New version for formatting integral values using writeAligned
2021-04-14 17:25:59 +02:00
berni44
9acd5ad73a
std.format: Add description of flags, width, precision, separator and positional arguments.
2021-04-14 14:16:48 +02:00
Razvan Nitu
61c8bfa6ee
Merge pull request #7944 from dlang/MetaLang-patch-1
...
Make string/character auto-escaping more prominent
2021-04-12 18:48:10 +08:00
berni44
0c44e5cf19
std.format: Add overview of format indicator
2021-04-12 11:53:25 +02:00
MetaLang
b15f8687f4
Make wording more clear.
2021-04-07 16:45:27 -03:00
MetaLang
16ef3c960a
Fix DDOC error and make small grammar fix.
2021-04-07 16:18:47 -03:00
MetaLang
82daa5a833
Make string/character auto-escaping more prominent
...
This functionality is unexpected and buried in between examples down the page. This adds a note just below where compound specifiers are first introduced to make it more prominent for anyone reading the docs.
2021-04-07 15:35:04 -03:00
berni44
2313606f22
Rework documentation of std.format.write: Module description
2021-04-06 09:21:35 +02:00
berni44
3b975be6cd
Fix Issue 15227 - std.format undocumented grammar
2021-03-31 16:40:48 +02:00
berni44
e0f009978a
Rework documentation of std.format.write : formattedWrite
2021-03-31 14:19:03 +02:00
berni44
fe178582f2
Rework documentation of std.format.read : unformatValue
2021-03-31 13:39:44 +02:00
berni44
96ee071156
Fix Issue 17381 - Checked format string is permissive after floating point argument
2021-03-31 12:28:22 +02:00
Razvan Nitu
2c9f87a4b9
Merge pull request #7919 from berni44/docs_format_modul1
...
Rework introductory part of std.format package description
2021-03-31 16:27:11 +08:00
berni44
a963ab584a
Rework introductory part of std.format package description
2021-03-29 19:33:41 +02:00
berni44
1e50ed4259
Deprecate public access of unformatElement
2021-03-25 10:42:00 +01:00
berni44
6237aa02a9
Deprecate public access of formatElement
2021-03-25 10:17:21 +01:00
berni44
1c47f84cf6
Rework documentation of std.format.write : formatValue
2021-03-25 09:22:40 +01:00
berni44
133ac7dfe6
Rework documentation of std.format.package : FormatException
2021-03-22 16:04:36 +01:00
berni44
cbe7f30f7f
Rework documentation of std.format.package : sformat
2021-03-22 11:01:19 +01:00
berni44
65cfc3b4e5
Rework documentation of std.format.package : format
2021-03-21 12:57:44 +01:00
berni44
d06b4af4ab
Remove public comment from array_ptr_diff.
2021-03-21 02:01:51 +01:00
berni44
31b2f05cd8
std.format: Move description of format string to package.
2021-03-18 14:12:23 +01:00