Commit graph

182 commits

Author SHA1 Message Date
berni44
5e6fc129b9 std.format: Refactor package.d (step 1): Whitespace and nits 2021-03-17 03:22:13 +01:00
berni44
f8adf9d21a Fix Issue 21722 - toString(sink, string format) does not work with non-"%s" strings 2021-03-17 01:02:14 +01:00
berni44
28ff772f5e std.format: Refactor write.d 2021-03-16 16:25:55 +01:00
berni44
8eda3d48aa Add assert messages for std.format.internal.floats 2021-03-16 15:54:26 +01:00
berni44
a8ab4e2565 std.format: Refactor read.d 2021-03-16 14:57:38 +01:00
berni44
bc5f64994e std.format: Split off std/format/write.d 2021-03-16 11:48:44 +01:00
berni44
5683150832 std.format: Refactor spec.d 2021-03-15 22:10:21 +01:00
berni44
e2045219ff std.format: Split off std/format/read.d 2021-03-15 21:29:29 +01:00
berni44
4415e4047e std.format: Split off std/format/spec.d 2021-03-15 15:16:29 +01:00
berni44
bfcd65e71e Fix 21641 - std.format: %g produces in rare circumstances inconsistent result 2021-03-13 11:11:10 +01:00
berni44
2492943c77 std.format: Add %g (final step) 2021-03-13 11:11:10 +01:00
berni44
c0cc85351a std.format: Add %g (step 8): Small fixes 2021-03-13 00:34:21 +01:00
berni44
c6efda92ef std.format: Add %g (step 7): Change calculating the split 2021-03-12 12:10:08 +01:00
berni44
50ed366c99 std.format: Add %g (step 6): %f like formatting 2021-03-08 17:48:50 +01:00
Martin Nowak
9032d86bef Merge remote-tracking branch 'upstream/stable' into merge_stable
Conflicts:
	std/format/internal/write.d
2021-03-06 00:09:28 +01:00
berni44
d2f345dcd1 Add assert messages and remove dangling ditto comments 2021-03-03 05:14:04 +01:00
berni44
d68a243a09 Break long lines of std.format.internal.write. 2021-03-02 16:18:35 +01:00
berni44
2e5d6ba461 std.format: Add %g (step 5): %e like formatting 2021-03-02 15:01:34 +01:00
Nathan Sashihara
52da0ef73c Throughout Phobos use core.math intrinsics instead of std.math wrappers
Followup to PR #7821.
2021-03-02 07:09:08 +01:00
Geod24
8d22e374fc std.format: Recognize sink with in parameters
When using `-preview=in`, `in` no more degrades to `const`,
and thus is not covariant with it, meaning some `toString`
signatures are no longer recognized.
This fixes it by testing for `in` parameters iff `-preview=in` is on.
2021-03-02 06:42:32 +01:00
berni44
4421ecb77e std.format: Add %g (step 4): Formatting 0.0 2021-03-02 06:21:40 +01:00
berni44
372e45070c Make imports of std.format.internal.write local and selectiv. 2021-03-01 15:10:07 +01:00
berni44
1100b9498f std.format: Add unittests for %g (step 2). 2021-03-01 13:27:02 +01:00
berni44
0b16c92201 std.format: Add %g (step 3): Add template parameter to printFloatE/F. 2021-03-01 12:31:32 +01:00
berni44
a8b8b16e41
std.format: Refactor internal/read.d (#7805)
std.format: Refactor internal/read.d
merged-on-behalf-of: Razvan Nitu <RazvanN7@users.noreply.github.com>
2021-03-01 12:06:38 +01:00
berni44
15833dad6c std.format: Prepare to add %g (step 1). 2021-03-01 02:49:06 +01:00
berni44
ec96dc96e0 Refactor std/format/internal/write.d: Spaces and line breaks 2021-02-25 15:10:35 +01:00
berni44
b764e63375 std.format: Refactor internal/float.d 2021-02-24 17:05:54 +01:00
berni44
fa4682442b Move internal read stuff into internal submodule. 2021-02-18 10:16:51 +01:00
berni44
eb8188b25a Move internal write stuff into internal submodule. 2021-02-17 21:44:15 +01:00
berni44
cec24c5289 Move floating point algorithms into internal submodule. 2021-02-17 18:06:49 +01:00
berni44
ef887be5c6 Prepare to split up std.format into submodules. 2021-02-16 08:11:20 +01:00