Commit graph

187 commits

Author SHA1 Message Date
Bernhard Seckinger
509e657872 Fix Issue 11013 - ignoring variable inside the predicate of findSplitBefore 2019-11-14 17:32:08 +01:00
Bernhard Seckinger
14e5d1bce2 More min and max are not NaN aware. 2019-10-22 19:56:28 +02:00
Bernhard Seckinger
0320d88c3a Fix Issue 10448 - min and max are not NaN aware 2019-10-21 11:40:09 +02:00
JinShil
0de2d66760 Replace hash_t and sizediff_t with size_t and ptrdiff_t 2019-08-31 04:39:57 +09:00
Martin Kinkelin
7653e97a32 Rewrite dubious refRange() shortcuts in unittests
As preparation for dlang/dmd#10124, which makes elements of array
literals rvalues.
2019-08-15 18:54:08 +02:00
Robert Schadek
d9cf38b3a0
added a lost space 2019-06-25 11:50:35 +01:00
Robert Schadek
31d5b848b0 Adds asserts messages 2019-06-25 11:25:33 +01:00
Sebastian Wilzbach
12c5e1ee91 Use selective top-level module imports in std.algorithm 2019-05-23 10:21:19 +02:00
Nathan Sashihara
d4102819f6 Revert "Decrease template instantiation in std.algorithm.searching : all & any" 2019-05-01 15:46:44 -04:00
Nathan Sashihara
a4d4e03a5e Decrease template instantiation in std.algorithm.searching : all & any
Using LDC with optimizations enabled the end compiled result is the same.
2019-04-15 01:45:22 -04:00
Sebastian Wilzbach
5c3f7f5783 Merge remote-tracking branch 'upstream/stable' into merge_stable 2019-04-09 18:45:49 +02:00
aG0aep6G
b8610beec3 use constructors instead of move 2019-03-31 15:25:03 +02:00
Rainer Schuetze
2e13c10025 add workaround for https://issues.dlang.org/show_bug.cgi?id=2396 to reduce compile time of unittests 2019-03-29 12:12:53 +01:00
Nicholas Wilson
f7c573ab23
Merge pull request #6935 from aG0aep6G/18657-2
make `cycle`, `splitter`, `roundRobin`, and `until` compatible with `RefRange`
2019-03-28 10:34:39 +08:00
aG0aep6G
98068cebe7 fixup! fix issue 19765 - std.algorithm.searching.findAmong doesn't save like it should 2019-03-26 23:08:39 +01:00
aG0aep6G
bd47453b49 make until compatible with RefRange
Part of a series on issue 18657.
2019-03-26 21:42:57 +01:00
aG0aep6G
e1dbed97d8 fix issue 19765 - std.algorithm.searching.findAmong doesn't save like it should 2019-03-26 20:43:36 +01:00
Vasyl Teliman
5795db7ab7 Fix Issue 18806 - InputRange for std.algorithm.minIndex 2019-03-12 15:21:06 +02:00
Arun Chandrasekaran
744e15aed1 canFind: added example to search for multiple needles in an array of hay stacks. 2018-12-11 00:44:03 -08:00
Sebastian Wilzbach
887f7558e0 Fix Issue 13683 - More precise error message for wrong lambda 2018-11-15 15:05:03 +10:00
Per Nordlöw
6b64ed9d57 Fix Issue 19366 - Qualify opCast(bool) as const for findSplit, findSplitBefore and findSplitAfter. 2018-11-05 10:48:27 -05:00
Sebastian Wilzbach
eb6d449aa4 Fix dxml regression in multiple arguments skipOver 2018-08-20 14:05:54 +02:00
The Dlang Bot
1e3272746a
Merge pull request #6143 from wilzbach/skipOver
Fix Issue 12335 - std.algorithm.skipOver should support multiple args like startsWith
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-08-15 17:06:39 +02:00
aG0aep6G
0b8f203041 fix issue 19023 - findSplitBefore and findSplitAfter give wrong bool result 2018-06-24 23:00:00 +02:00
aG0aep6G
93faca7ed5 fix issue 19020 - findSkip, findSplit and findSplitBefore return wrong results 2018-06-24 22:49:55 +02:00
Sebastian Wilzbach
dca849389f Fix Issue 12335 - std.algorithm.skipOver should support multiple args like startsWith 2018-06-07 19:17:20 +02:00
Sebastian Wilzbach
c324714fde Remove a few cases of underscore escaping 2018-06-04 13:05:01 +02:00
Sebastian Wilzbach
4c016d129f Remove superfluous _range used to avoid auto-highlighting 2018-04-09 21:31:57 +02:00
Sebastian Wilzbach
64d3a078d3 Fix Issue 17982 - Support for const(Class) in algorithm.searching.extremum 2018-04-05 07:19:44 +02:00
Walter Bright
71276b2ef1
Merge pull request #6246 from carblue/dip1000_7
std.algorithm.searching: Fix a -dip1000 compilable issue
2018-03-27 17:28:39 -07:00
Sebastian Wilzbach
87301eb1b5 Merge remote-tracking branch 'upstream/stable' into merge_stable 2018-03-25 18:23:14 +02:00
Sebastian Wilzbach
8f86a0d734 Fix if constraints indentation 2018-03-24 13:17:53 +01:00
carblue
a540bb2d0a std.algorithm.searching: Fix -dip1000 compilable issues 2018-03-17 11:56:39 +01:00
The Dlang Bot
42e8b19885
Merge pull request #6284 from wilzbach/std-algo-searching-mismatch
std.algorithm: remove mismatch from the std.algorithm.searching overview
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-03-16 17:54:41 +01:00
The Dlang Bot
7ac39eff7a
Merge pull request #6144 from wilzbach/traits-is-same-min-max
Use __traits(isSame) for min,maxElement
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-03-16 16:54:04 +01:00
Sebastian Wilzbach
c159ccf2ea std.algorithm: remove mismatch from the std.algorithm.searching overview 2018-03-16 05:03:11 +01:00
Sebastian Wilzbach
4fe5518ce0 std.algorithm fix typo in reference to std.range.SortedRange 2018-03-16 04:55:48 +01:00
Sebastian Wilzbach
adf6113eb9 Fix Issue 18492 - DLang STL links are broken 2018-02-23 04:31:09 +01:00
The Dlang Bot
8d525413a7
Merge pull request #6151 from wilzbach/fix-dscanner
Fix all DScanner warnings + use -return-exit-code re-enable it
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-02-13 00:25:26 +01:00
Jack Stouffer
a239bd1493 Remove auto-decoding from startsWith when Needles are all narrow chars 2018-02-12 15:34:14 -05:00
Sebastian Wilzbach
d9830b739e Fix DScanner warnings 2018-02-10 22:46:32 +01:00
Sebastian Wilzbach
d30fa6728e Add more tests to cover the optimized {min,max}Element 2018-02-08 17:43:02 +01:00
Sebastian Wilzbach
64204177e5 Use __traits(isSame) for min,maxElement 2018-02-08 17:38:55 +01:00
Jack Stouffer
a6688108a1 Simplify the example for find 2018-02-02 09:13:39 -05:00
The Dlang Bot
2ff0a05ca0
Merge pull request #6090 from wilzbach/algo-doc-grouping
Group documentation in std.algorithm
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-02-02 14:51:36 +01:00
Jack Stouffer
7b3554b793
Merge pull request #6098 from JackStouffer/balancedParens
Removed auto-decoding from std.algorithm.searching.balancedParens
2018-01-30 12:14:27 -05:00
Jack Stouffer
da731e632a
Merge pull request #6093 from n8sh/algorithm-startswith-length
Fix Issue 18328 - algorithm.startsWith can compare narrow string leng…
2018-01-30 10:30:38 -05:00
Jack Stouffer
db1e5f80fb Removed auto-decoding from std.algorithm.searching.balancedParens 2018-01-30 10:28:07 -05:00
Sebastian Wilzbach
ba7af41793 Group documentation in std.algorithm.searching + small fixes 2018-01-30 15:25:38 +01:00
Nathan Sashihara
361a5c55cc Fix Issue 18329 - std.algorithm.startsWith & endsWith can sometimes statically determine decoding unnecessary 2018-01-29 21:44:59 -05:00