Commit graph

12827 commits

Author SHA1 Message Date
Sebastian Wilzbach
31cf21bb86 Group documentation in std.algorithm.mutation 2018-01-30 15:25:38 +01:00
Sebastian Wilzbach
afa7d586dd
Merge pull request #6080 from wilzbach/fix-18319
Fix Issue 18319 - std.exception: enforce example does not compile
2018-01-28 12:36:35 +01:00
Sebastian Wilzbach
7823e1181d
Merge pull request #5741 from dunkyp/issue_17832
Fix Issue 17832 - std.random.choice cannot be used with other random generators
2018-01-28 11:36:42 +01:00
Sebastian Wilzbach
f4ccf68f26 Fix Issue 18319 - std.exception: enforce example does not compile 2018-01-28 03:31:55 +01:00
Sebastian Wilzbach
70d3b892ff
Merge pull request #5410 from jmdavis/path
Fix safety issues with driveName, stripDrive, and rootName
2018-01-28 02:12:46 +01:00
Duncan Paterson
db5c1c84b9 Addresses Issue 17832
Random choice default argument was deciding the type of the
template. I'm not sure if this is a deeper bug, but it can easily be
fixed with this patch which simply overloads the function.
Also added a unittest which would have failed under the old code.
2018-01-28 02:00:54 +01:00
Jonathan M Davis
d4a7e693d7 Fix safety of stripDrive for implicitly convertible types. 2018-01-27 17:15:54 -07:00
Jonathan M Davis
13240d7825 Fix safety of rootName for implicitly convertible types. 2018-01-27 17:15:54 -07:00
Jonathan M Davis
0af330d2de Fix safety of driveName for implicitly convertible types. 2018-01-27 17:15:54 -07:00
acehreli
408733ca37
Removed misleading "Use assert in contracts."
See https://forum.dlang.org/thread/arlupaqjxcpgeqodjlxs@forum.dlang.org
2018-01-27 14:53:03 -08:00
Sebastian Wilzbach
d2a83195dd
Merge pull request #6078 from jacob-carlborg/revert-5968-searching-findSplit
Revert "findSplit: return named tuples instead of an anonymous tuple"
2018-01-27 22:45:51 +01:00
Sebastian Wilzbach
7e8c15912f
Merge pull request #6075 from bachmeil/patch-1
Fix documentation for std.path.dirName
2018-01-27 22:32:08 +01:00
Sebastian Wilzbach
1a7a0708dd
Merge pull request #6077 from jmdavis/isConvertibleToString
Add warning to isConvertibleToString.
2018-01-27 22:31:29 +01:00
Sebastian Wilzbach
5e04cb855f
Merge pull request #6079 from shoo/fix_Issue18316
Fix Issue 18316 - std.net.curl.SMTP.mailTo fails to compile
2018-01-27 22:29:47 +01:00
SHOO
c97bf685ec remove trailing whitespace 2018-01-28 04:39:47 +09:00
SHOO
80f4709a98 Fix Issue 18316 - std.net.curl.SMTP.mailTo fails to compile 2018-01-28 03:57:59 +09:00
Jacob Carlborg
83adbc3079
Revert "findSplit: return named tuples instead of an anonymous tuple" 2018-01-27 16:23:24 +01:00
acehreli
fb3204de32
Clarify "they" as "contracts" 2018-01-27 06:27:07 -08:00
Jonathan M Davis
3f8a13d474 Add warning to isConvertibleToString. 2018-01-26 23:30:02 -07:00
Sebastian Wilzbach
fd3ae774b8
Merge pull request #6076 from jmdavis/deprecations
Move deprecations along.
2018-01-27 05:35:58 +01:00
The Dlang Bot
b676da0a98
Merge pull request #6047 from BBasile/issue-11747
fix issue 11747 - Better error message with @disabled toString
merged-on-behalf-of: H. S. Teoh <quickfur@users.noreply.github.com>
2018-01-27 04:43:23 +01:00
Sebastian Wilzbach
f6dcb6d447
Merge pull request #5411 from jmdavis/string
Fix safety issues with splitLines, lineSplitter, and indexOf
2018-01-27 03:30:22 +01:00
Jonathan M Davis
3385bd435a Move deprecations along. 2018-01-26 18:24:50 -07:00
Andrei Alexandrescu
9d7b13b95b
Merge pull request #5961 from wilzbach/std-range-nullSink
std.range.nullSink - allow convenient use of the NullSink
2018-01-26 18:41:56 -05:00
Jonathan M Davis
8b051ff29f Fix safety of lineSplitter for implicitly convertible types. 2018-01-26 16:07:41 -07:00
Jonathan M Davis
9352e29921 Fix safety of splitLines for implicitly convertible types. 2018-01-26 16:07:41 -07:00
Jonathan M Davis
b5e0df8a26 Fix it so that std.string.indexOf does not use isConvertibleToString. 2018-01-26 16:07:41 -07:00
Lance Bachmeier
04dbe396b9
Update path.d 2018-01-26 16:33:55 -06:00
The Dlang Bot
dadb13da46
Merge pull request #6071 from JackStouffer/timeofday-tostring
Work On Issue 10828 - Add output range versions of toString functions to std.datetime.TimeOfDay
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-26 22:07:31 +01:00
The Dlang Bot
aa7b6c03ae
Merge pull request #5921 from edi33416/rc_iallocator
Replace IAllocator with reference counted struct
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-01-26 19:53:03 +01:00
The Dlang Bot
effb1becc6
Merge pull request #6072 from JackStouffer/timeofday-fromISOExtString
Optimized std.datetime.date.TimeOfDay.fromISOExtString
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-26 19:05:00 +01:00
The Dlang Bot
242ef22f73
Merge pull request #6073 from JackStouffer/datetime-autodecoding
Fix Auto-Decoding Issue With DateTime From String Methods
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-26 18:14:19 +01:00
Sebastian Wilzbach
7574f33829
Merge pull request #6055 from wilzbach/fix-ddoc
Fix Issue 18278 - writef documentation 404 error
2018-01-26 16:39:49 +01:00
Jack Stouffer
4ed69922ac Fix Auto-Decoding Issue With DateTime From String Methods
DateTime's from string methods use countUntil in order to check for the seperator between
the date and the time strings. This is fine until the result is used to slice the original
string, which can cause incorrect results. This is due to the problem that countUntil gives
the number of code points until the Needle and not the number of code units, which is the
how it's sliced.

Normally this doesn't actually pose a problem because actual time strings only contain ASCII
characters, but this does fix two things

1. No more auto decoding in the function, so it's faster
2. Better error messages if there are non-ASCII characters in the string because the break-up is correct
2018-01-26 10:20:14 -05:00
Jack Stouffer
774c141809 Optimized std.datetime.date.TimeOfDay.fromISOExtString 2018-01-26 09:51:28 -05:00
Jack Stouffer
d5528a62c6 Work On wqIssue 10828 - datetime toString functions should accept sink 2018-01-26 09:31:53 -05:00
Basile Burg
860eeb59b8 fix typo in code comment 2018-01-26 13:37:08 +01:00
Sebastian Wilzbach
b9eaa3b1bd Fix Issue 18278 - writef documentation 404 error 2018-01-26 10:17:47 +01:00
The Dlang Bot
ca63eb295b
Merge pull request #6069 from JackStouffer/timeofday-roll
Publicly document all TimeOfDay.roll overloads
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-26 06:38:55 +01:00
The Dlang Bot
80ee4b3685
Merge pull request #6067 from JackStouffer/date-fromSimpleString
Optimized std.datetime.date.Date.fromSimpleString
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-26 06:05:11 +01:00
The Dlang Bot
af21a26622
Merge pull request #6068 from JackStouffer/issue18299
Fix Issue 18299: std.datetime.date.cmpTimeUnits does not throw a Date…
merged-on-behalf-of: Jonathan M Davis <jmdavis@users.noreply.github.com>
2018-01-26 05:08:55 +01:00
Andrei Alexandrescu
ee034e203a
Merge pull request #5596 from wilzbach/substitute
Add substitute for lazy replacements
2018-01-25 22:25:53 -05:00
Andrei Alexandrescu
adee662094
Merge pull request #5987 from JackStouffer/issue17249
Fix Issue 17249: Added BigInt.getDigit
2018-01-25 16:59:51 -05:00
Jack Stouffer
2988f9a07a Publically document all TimeOfDay.roll overloads 2018-01-25 14:45:18 -05:00
Jack Stouffer
f086ab6ce6 Fix Issue 18299: std.datetime.date.cmpTimeUnits does not throw a DateTimeException 2018-01-25 13:01:03 -05:00
Jack Stouffer
962db5447f Optimized std.datetime.date.Date.fromSimpleString 2018-01-25 12:30:26 -05:00
The Dlang Bot
23c9601770
Merge pull request #6060 from JackStouffer/date-tostring
Partially Fix Issue 10828 - Add output range version of toString functions to std.datetime.Date
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-25 17:12:55 +01:00
The Dlang Bot
758cba2cf2
Merge pull request #6062 from JackStouffer/date-fromISOExtString
Optimized std.datetime.date.Date.fromISOExtString
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-25 15:44:38 +01:00
Jack Stouffer
54708e10df Optimized std.datetime.date.Date.fromISOExtString 2018-01-25 09:14:28 -05:00
Eduard Staniloiu
573a85b101 Replace IAllocator with reference counted struct 2018-01-25 14:19:21 +01:00