Commit graph

675 commits

Author SHA1 Message Date
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
Eduard Staniloiu
981e1b0cd2 Make emplace infer class ctor safety 2017-10-12 20:47:03 +00:00
Iain Buclaw
1cb3447236 Adjust @safe-ty of 64-bit real unittest. 2017-09-09 12:10:49 +02:00
Mark Barbone
d70603e53f
Change immutable to const char as per @ZombineDev's suggestion 2017-08-07 13:05:31 -04:00
mb64
8532db0f7a Add @safe annotation on unittest 2017-08-06 22:54:48 -04:00
Mark Barbone
61cfe9cc2b Faster octal conversion 2017-08-06 18:06:39 -04:00
The Dlang Bot
63de27b530 Merge pull request #5591 from RazvanN7/Issue_12260
Fix Issue 12260 - Improve error of std.stdio.readf when involving whitespace
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-07-31 17:37:14 +02:00
RazvanN7
afc732661a Fix Issue 12260 - Improve error of std.stdio.readf when involving whitespace 2017-07-31 17:51:41 +03:00
Nick Treleaven
d402b50d0f Make constraint for toImpl with radix clearer
`parse` with radix requires isIntegral!T.
2017-07-22 12:09:48 +01:00
Jonathan M Davis
d9a65e1730 Fix the date on some deprecations.
They were only deprecated a year ago, and the deprecation cycle is
supposed to be two years.
2017-07-18 06:04:48 -06:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
This reverts commit 998ad51fd7.
2017-06-13 17:51:52 +00:00
Sebastian Wilzbach
998ad51fd7 Sort selective imports 2017-06-12 08:12:09 +02:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
Sebastian Wilzbach
3afbd28c43 Fix Dscanner errors 2017-06-12 04:24:41 +02:00