Commit graph

688 commits

Author SHA1 Message Date
Bernhard Seckinger
088e55a56a Fix Issue 18248 - radix overload of std.conv.parse fails to throw on
non-empty range without number
2019-12-08 14:06:30 +01:00
Bernhard Seckinger
932d49b217 Fix partially Issue 9621 - std.conv.parseEscape fails on octals and named 2019-11-13 12:54:31 +01: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
The Dlang Bot
7f48a36a26
Merge pull request #7197 from Panke/std-conv-formatvalue
Reference std.format.formatValue from std.conv
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-10-02 09:01:54 +02:00
Berni
1cc164d6a6 Move "print" to "convert" in example of to template. 2019-09-28 16:22:35 +02:00
Tobias Pankrath
fffb5a81c8 Reference std.format.formatValue from std.conv 2019-09-25 18:50:47 +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
Vladimir Panteleev
108672bd2b std.conv: Allow instantiating parseElement only with dchar
Narrower char types cannot fit the result of parsing an escaped
character.
2019-08-15 12:33:51 +00:00
Vladimir Panteleev
c4ae17a02d std.conv: Fix instantiations of parseElement with const Target
This is a pedantic fix.
2019-08-15 12:30:45 +00:00
Martin Nowak
d2e931f149 Merge remote-tracking branch 'upstream/stable' into merge_stable 2019-08-05 08:51:49 +02:00
shove70
f75fcf0258 Fix issue 20070 - std.conv.toImpl matches two functions when using static arrays as inout(T) 2019-07-23 10:47:03 +08:00
Marco de Wild
2415c71960
Clarified error when trying to convert NaN 2019-06-27 10:59:48 +02:00
FeepingCreature
d33c1ebc10 Fix issues arising from the DMD 9029 fix (types match to alias) 2019-05-11 12:55:57 +01:00
Ryan David Sheasby
3dfbbe7dbc
Fix typo 2018-09-27 08:37:30 +02:00
Iain Buclaw
fd5facfe04 posix.mak: Enforce whitespace before opening parenthesis for version conditions 2018-09-22 16:57:24 +02:00
Nathan Sashihara
b97e76bdfd In std.conv.emplaceInitializer use memset instead of memcpy when setting all 0s 2018-09-09 11:36:13 -04:00
The Dlang Bot
217c9af28f
Merge pull request #6659 from shove70/patch-1
Fix Issue 17712 - [REG 2.074] [LINK] Undefined reference to std.conv.toChars!(10, char, 1, uint).toChars(uint)
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-09-07 22:20:09 +02:00
Walter Bright
33cceac7ac switch Digital Mars copyright to D Language Foundation 2018-09-05 13:49:46 -07:00
shove70
2f20661b0e Fix Issue 17712 - [REG 2.074] [LINK] Undefined reference to std.conv.toChars!(10, char, 1, uint).toChars(uint) 2018-09-01 12:13:57 -04:00
Basile Burg
db819575f1 Fix issue 11959 - Set private symbols declared in version(unittest) blocks 2018-08-26 10:22:11 +02:00
Martin Nowak
050464eda6 Merge remote-tracking branch 'upstream/stable' into merge_stable
# Conflicts:
#	std/conv.d
2018-08-12 16:36:44 +02:00
Martin Kinkelin
4de15cec63 Remove superfluous core.stdc.* dependencies in std.{conv,random} 2018-08-06 21:40:38 +02:00
Joakim
650951472e std.conv: Fix error message and doc comment that changed in #5015. 2018-08-06 10:57:34 +05:30
Joakim
6f151c5359 std.conv: add more tests for string to floating-point parser. 2018-08-06 10:57:34 +05:30
Joakim
4c77ff8632 std.conv: refactor string parser for reals so decimal and hex strings use the same code path. 2018-08-06 10:57:34 +05:30
Joakim
c6f4c7f745 std.conv: extend string parser for reals to full ieeeQuadruple precision and do away with unneeded bit-packing and rounding for hex strings. 2018-08-06 10:52:49 +05:30
Joakim
87fe0039bc std.conv: druntime now pulls in Bionic's strtold. 2018-08-06 10:52:49 +05:30
Jonathan M Davis
ad109a2ccf Move some deprecations along. 2018-08-02 16:09:51 -06:00
David Bennett
5c9b11901a Speedup text() wtext() and dtext() by allowing them to add chars to it's own appender rather then using to! then coping them back. 2018-06-27 05:03:47 +09:30
Sebastian Wilzbach
c324714fde Remove a few cases of underscore escaping 2018-06-04 13:05:01 +02:00
Jack Stouffer
d58250d1fa Removed unused variables from std.conv 2018-05-08 08:41:17 -04:00
Martin
536cda61d4 Fix std.conv.emplaceRef() for 0-sized types
E.g., T=void[0] is a 0-sized type. When wrapping it in a struct S, the
struct's size is 1. So reinterpret-casting the T target to S and blitting
the S.init value over it doesn't result in a noop, but a 1-byte copy to
the 0-sized target.
2018-04-26 22:57:25 +02:00
Steven Schveighoffer
6a324db900 Another batch for removing version(unittest) 2018-04-12 16:27:18 -04:00
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Sebastian Wilzbach
8f86a0d734 Fix if constraints indentation 2018-03-24 13:17:53 +01:00
Jack Stouffer
6f2c09c2aa Add public examples to std.conv and enable dscanner check 2018-03-16 18:20:37 -04:00
cedretaber
bcca039939 Remove an unnecessary index 2018-03-02 00:41:07 +09:00
Jack Stouffer
663b5b9278 Revert addition of StdUnittest 2018-02-20 13:32:32 -05:00
Walter Bright
f4f071cb8e fix Issue 18397 - Poor implementation of std.conf.hexString results in unintended bloat 2018-02-09 01:18:15 -08:00
Jack Stouffer
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -05:00
Héctor Barreras Almarcha [Dechcaudron]
bf4edd1cb9 Documenting to for string-to-char conversions 2018-01-28 18:42:28 +01:00
The Dlang Bot
e3c6e4ef95
Merge pull request #5965 from jpf91/aaconv
std.conv: ieeeQuadruple (AArch64) support for parse!real
merged-on-behalf-of: Iain Buclaw <ibuclaw@gdcproject.org>
2018-01-06 15:53:18 +01:00
Sebastian Wilzbach
7de3787876 Use static foreach in Phobos 2018-01-03 17:30:11 +01:00
Steven Schveighoffer
bb79bd8191
Fix whitespace issue. 2017-12-29 10:30:04 -05:00
Héctor Barreras Almarcha [Dechcaudron]
9968b61d07 Fixes issue 18116 2017-12-29 16:21:30 +01:00
Johannes Pfau
a3d16b9587 std.conv: ieeeQuadruple (AArch64) support for parse!real
Currently limited to ieeeExtended precision by the parser. This just
adds code to put the parsed value into a ieeeQuadruple format real.
2017-12-26 10:24:54 +01:00
Johannes Pfau
e4d8a5babe std.conv: Some code cleanup for parse!real 2017-12-26 10:23:55 +01:00
John Colvin
0ca5087737 fix Issue 18044 - std.conv.to for implicitly convertible associative arrays 2017-12-07 16:50:57 +00:00
Sebastian Wilzbach
df6365092a Replace body keyword with its replacement: do
Automatic replacement with

    sed -i "s/^\([ ]*\)body/\1do/" -i **/*.d
2017-11-20 15:33:52 +01:00
Sebastian Wilzbach
97f6f39e4e Change AliasSeq(0, ...) uses of foreach to static foreach 2017-11-02 17:11:37 +01:00