Commit graph

113 commits

Author SHA1 Message Date
berni44
b6a51524f3 std.format: Make formatting %f (and %g partly) 100% @nogc. 2021-04-24 10:57:31 +02:00
berni44
0cbeff86e9 Fix Issue 21836 - std.format: grouping may cause RangeError 2021-04-24 16:15:10 +08:00
berni44
cd6b8d9e91 std.format: Make formatting 0.0 100% @nogc. 2021-04-24 16:15:10 +08:00
berni44
110cb1a8be Fix Issue 21853 - std.format: formatting real.max in CTFE fails 2021-04-24 02:52:53 +02:00
Razvan Nitu
0881660baf
Merge pull request #7971 from berni44/float_naninf_nogc
std.format: Make formatting nan and inf 100% @nogc.
2021-04-23 15:28:20 +08: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
297ce7e865 std.format: Refactor formatTest 2021-04-22 02:37:46 +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
109ecbc43c std.format.spec: remove unused private function headUpToNextSpec. 2021-04-21 19:11:59 +02:00
berni44
c78646ba93 Make std.format.internal.write: formatTest private. 2021-04-21 17:37:23 +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
b2019ebab0 Narrow imports of std.math in the rest of phobos. 2021-04-21 03:00:57 +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
1d713e6f73 Move unittests from std.format.internal.write at correct place. 2021-04-20 11:27:33 +02:00
berni44
91a4ec0889 std.format: Fix a small bug. 2021-04-19 10:07:14 +02:00
berni44
1434947cb9 Rework documentation of aggregates of std.format.write 2021-04-19 09:33:20 +02:00
berni44
fc8849a8a1 Fix second part of Issue 21722 - toString(sink, string format) does not work with non-"%s" strings 2021-04-19 08:53:13 +02:00
berni44
c185252980 std.format: Make formatting nan and inf 100% @nogc. 2021-04-18 20:51:35 +02:00
berni44
72cfed4bba Fix Issue 21820 - std.format: formatting zero should never lead to empty string 2021-04-14 17:25:59 +02:00
berni44
9e7ada3789 Fix Issue 21817 - std.format: %u on integer does not print unsigned value 2021-04-14 17:25:59 +02:00
berni44
77eafb11ac Fix Issue 21814 - std.format: grouping with width 0 causes floating point exception 2021-04-14 17:25:59 +02:00
berni44
5e180880cb Fix Issue 21777 - std.format: several issues when formatting integers with precision 2021-04-14 17:25:59 +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
berni44
594eebf3bd std.format: Add precision for integers to writeAligned. 2021-04-13 11:54:49 +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
22b5de6986 Rework examples of std.format.write 2021-04-12 12:20:53 +02:00
berni44
0c44e5cf19 std.format: Add overview of format indicator 2021-04-12 11:53:25 +02:00
berni44
c9121a8c89 Fix Issue 20536 - std.format: %a on reals is inconsistent with %a on float/double 2021-04-12 08:23:51 +02:00
berni44
c116ac8d9c Fix Issue 20371 - std.format limited to 500 characters for floats 2021-04-12 08:23:38 +02:00
berni44
23e5c9e150 Fix Issue 20320 - format("%f") leeds to wrong output 2021-04-12 08:23:28 +02:00
berni44
6fb98242e0 Fix Issue 9297 - Formatting of floating point values in std.format truncates reals to double 2021-04-12 08:23:17 +02:00
berni44
c75bd8756d Fix Issue 8424 - Compile time conversions of double/floats to strings 2021-04-12 08:23:13 +02:00
berni44
36152d4e2e std.format: Replace snprintf for x87-reals 2021-04-12 08:22:29 +02:00
berni44
29de9999e3 std.format: Add %a for x87-reals 2021-04-11 16:14:43 +08:00
berni44
3e3b71f145 std.format: Add %g for x87-reals 2021-04-11 07:31:26 +08:00
berni44
d9ba005ff5 Extend writeAligned to care about grouping. 2021-04-10 17:16:35 +08:00
berni44
159eff6b1f std.format: Add %e for x87-reals 2021-04-09 09:59:34 +02:00
berni44
9301312981 Fix Issue 20534 - std.format: %r on boolean gives wrong result 2021-04-08 15:36:07 +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
1cdbc9cf87 Rework documentation of std.format.read: Module description 2021-04-07 13:13:23 +02:00
berni44
2313606f22 Rework documentation of std.format.write: Module description 2021-04-06 09:21:35 +02:00
berni44
d0d4460f96 Rework documentation of std.format.spec: Module description 2021-04-01 09:54:38 +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