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
da3327c86a
std.format: Add %f for x87-reals
2021-03-24 13:31:11 +01:00
wolframw
3c260553d1
Fix Issue 21738 - std.format.spec: singleSpec should throw on "%%"
2021-03-23 16:02:23 +01:00
berni44
cfee36ce08
std.format: Add x87-reals (step 1) - extract bit patterns
2021-03-22 16:49:32 +01:00
berni44
133ac7dfe6
Rework documentation of std.format.package : FormatException
2021-03-22 16:04:36 +01:00
berni44
16f4d4c17c
Rework documentation of std.format.spec : FormatSpec
2021-03-22 14:59:33 +01:00
berni44
8d216259dd
Rework documentation of std.format.spec : singleSpec
2021-03-22 13:25:15 +01:00
berni44
cbe7f30f7f
Rework documentation of std.format.package : sformat
2021-03-22 11:01:19 +01:00
berni44
f948001b4a
Fix Issue 15386 - std.format.formatValue usage hangs
2021-03-22 03:42:29 +01:00
berni44
35b47c2963
Fix Issue 15348 - std.stdio.writef format specifier error message
2021-03-22 03:41:21 +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
Nathan Sashihara
dcb0636ca5
Decrease top-level imports of std.format in submodules of std.format
2021-03-21 02:00:08 +01:00
berni44
31b2f05cd8
std.format: Move description of format string to package.
2021-03-18 14:12:23 +01:00
berni44
368273279e
std.format: Refactor packaged (step 2): Make imports local and selective.
2021-03-17 12:55:00 +01:00
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