MoonlightSentinel
02fa4bb7da
Add tests for empty empty static arrays of (|w|d)char's
...
Moved from the dmd test suite
2020-05-12 15:52:48 +02:00
Geod24
04f3979317
Replace 'Issue XXX' with Bugzilla links
...
Make the links clickable, as was done in the DMD repository.
Also avoids any ambiguity w.r.t. where the issue is stored.
2020-04-13 16:28:09 +09:00
The Dlang Bot
3753d18569
Merge pull request #7417 from aG0aep6G/sformat-gc
...
don't allocate dynamic array when formatting a single character
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-03-07 07:22:15 +01:00
aG0aep6G
4dc522834a
don't allocate dynamic array when formatting a single character
2020-03-06 17:38:39 +01:00
Walter Bright
0d122a993d
more printf format fixes
2020-02-22 23:25:59 -08:00
Rainer Schuetze
b22070d5d6
fix Issue 20566 - std.sformat should avoid allocating memory when printing floating point values
...
use stack allocated buffers as long as the required precision is within reasonable values
2020-02-09 08:36:01 +01:00
The Dlang Bot
b885f607e2
Merge pull request #7318 from berni44/printFormatE
...
Partial replace call to snprintf for '%e' and float or double.
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-02-07 04:32:52 +01:00
Sebastian Wilzbach
f314024903
Merge pull request #7377 from kinke/format
...
Fix std.format FP printing for soft-float targets
2020-02-05 22:22:58 +01:00
Martin Nowak
9840085445
Merge remote-tracking branch 'upstream/stable' into merge_stable
2020-02-01 19:25:57 +01:00
Martin Kinkelin
f9c2b54b17
Fix std.format FP printing for soft-float targets
...
After #7362 .
2020-02-01 02:25:59 +01:00
MoonlightSentinel
cc678b7bf9
Remove deprecated std.format.Mangle
2020-01-28 17:17:08 +01:00
Rainer Schuetze
0105fc924f
fix Issue 20500 - running examples on the home page only displays '1 unittests passed'
...
move unittests out of templated struct FormatSpec so they are not generated when using the template
2020-01-23 08:39:56 +01:00
Alexandru Militaru
bb62aaca3d
Replaced version (unittest) with version (StdUnittest) to avoid unnecessary overhead when compiling with -unittest
2020-01-19 14:05:17 +02:00
Bernhard Seckinger
dbec7c2e9b
Partial replace call to snprintf for '%e' and float or double.
2020-01-14 16:22:21 +01:00
Bernhard Seckinger
bcf17697d4
Fix performance regression introduced by PR #7285 .
2020-01-07 11:26:09 +01:00
Bernhard Seckinger
b017b1abdf
Fix Issue 15405 - FormatSpec.writeUpToNextSpec() not documented
2019-12-18 20:21:11 +01:00
The Dlang Bot
3b79908a8e
Merge pull request #7305 from berni44/issue11782
...
Fix Issue 11782 - format pointer to range prints range
merged-on-behalf-of: Atila Neves <atilaneves@users.noreply.github.com>
2019-12-13 07:33:15 +01:00
Bernhard Seckinger
209dfd3915
Fix Issue 9588 - format prints context pointer for struct
2019-12-07 08:54:14 +01:00
Bernhard Seckinger
738d15df38
Fix Issue 11782 - format pointer to range prints range
2019-12-06 21:38:03 +01:00
Bernhard Seckinger
6562429dd3
Replace OS dependent unittests by uniform version.
2019-12-04 17:59:16 +01:00
Bernhard Seckinger
5516a03e68
Fix partially Issue 20371 - std.format limited to 500 characters for floats
2019-12-04 17:59:16 +01:00
Bernhard Seckinger
e084f5eb33
Fix Issue 20396 - format!"%a" leeds to wrong result for denormalized float
2019-12-04 17:59:16 +01:00
Bernhard Seckinger
21c0ea7d41
Replace call to snprintf for '%a' and float or double.
2019-12-04 17:59:16 +01:00
Bernhard Seckinger
ea3d45e4c9
Fix Issue 20357 - format should obey space flag when printing nan or inf
2019-11-05 14:12:51 +01:00
Martin Nowak
cfa3ba9321
Merge remote-tracking branch 'upstream/stable' into merge_stable
2019-11-03 04:48:07 +01:00
Mathis Beer
0656d0683b
Fix issue 20328: only check isInputRange when we've already excluded toString overloads
2019-10-29 12:29:20 +01:00
Bernhard Seckinger
779b9cb53c
Fix Issue 9592 - Justified Tuple printing
2019-10-25 11:13:39 +02:00
Robert Schadek
2b2ed40f61
Fix Issue 20288
...
std.format with separator and double causes RangeError
trying to find the win32 bug
windows nan -nan fix
harder workaround
name clash fix
moving some stuff around
making it shorter
oh win32_64 what are you doing to me
and another try
some windows special case
and another
and again
removed some duplicated code
make it compile again
some debug output
I need a win32_64 box
and again
better infos
finding the failing test
something strange is going on
getting closer
I got it maybe
less output
I think I understand now
tighter code
making the commit nicer
removed an import
undoing some debug changes
removed an unneeded test
2019-10-22 12:17:46 +01:00
Mathis Beer
70c8d50948
Fix issue 20218: format: don't try to print the entire range while merely testing the format string
2019-09-17 15:07:37 +02:00
aG0aep6G
018e93cc3e
avoid appender
in formatElement
for strings
...
On the downside, the new code loops twice over the source
string, meaning it `decode`s every character twice.
On the upside, it writes only one time to memory, avoiding one
or more allocations and a copy from the temporary buffer to the
actual destination.
2019-08-31 22:51:11 +02:00
aG0aep6G
e13a397c61
avoid generating a closure in sformat
2019-08-31 22:28:12 +02:00
Vladimir Panteleev
e9c8d30d7b
When parsing char types then appending to a string, parse as dchar
...
Parsing as the string element type (char, in non-autodecode mode) does
not allow fitting the result of parsing escapes. Those always need to
be parsed into a dchar.
2019-08-15 12:48:11 +00:00
shove70
75f65a37fe
Fix issue 20069 - std.format digit grouping separator (aka thousands separator) needs to be revisited
2019-08-02 13:53:26 +08:00
shove70
cb70a3859f
Fix issue 20064 - format separator fails with leading zeros
2019-08-02 13:53:26 +08:00
shove
db35ee5eb1
Fix issue 19939 - std.format count width error
2019-06-12 20:58:53 +08:00
Robert Schadek
e0299a41c8
assert messages for std.format
2019-05-28 11:03:54 +01:00
Walter Bright
c24c845362
FormatSpec scope parameters
2019-03-17 23:04:37 -07:00
Walter Bright
a0e5399e47
compile std.format with -dip1000
2019-03-17 01:16:00 -07:00
Sebastian Wilzbach
7d4a086bda
Use enums for hasToString
2019-01-02 14:51:21 +01:00
Nathan Sashihara
6ffd4e7f28
Replace imports of core.sys.windows.windows to speed up compilation
2018-12-17 21:03:31 -05:00
Nicholas Wilson
7e351e17fa
Merge pull request #6464 from Hackerpilot/issue-18778
...
Fix issue 18778
2018-11-16 13:47:36 +08:00
Nicholas Lindsay Wilson
7ec06c07db
Fix issue 18778
2018-11-16 10:23:33 +08:00
Paul Backus
569a49eb5b
Add %-( to format string grammar
...
This format specification is described later in the documentation, and works as documented, but is not included in the format string grammar.
2018-11-07 14:44:29 -05:00
Martin Nowak
95a1713806
Merge remote-tracking branch 'upstream/stable' into merge_stable
2018-10-05 17:26:18 +02:00
Iain Buclaw
fd5facfe04
posix.mak: Enforce whitespace before opening parenthesis for version conditions
2018-09-22 16:57:24 +02:00
Dragos Carp
838f5994ed
Fix formattedRead throwing Exception
...
formattedRead is documented as throwing FormatException.
2018-09-20 21:28:50 +02:00
Mathis Beer
c156f4ad95
Fix issue 19252: avoid ridiculous format length overestimate; dynamic-width strings should estimate width 0, not int.max
2018-09-19 21:13:21 +02:00
Walter Bright
33cceac7ac
switch Digital Mars copyright to D Language Foundation
2018-09-05 13:49:46 -07:00
Basile Burg
db819575f1
Fix issue 11959 - Set private symbols declared in version(unittest) blocks
2018-08-26 10:22:11 +02:00
Basile Burg
6b6d5c15c0
fix issue 18838 - Formatting the number zero with separator doesn't obey width specifier
2018-08-19 19:18:03 +02:00