Commit graph

789 commits

Author SHA1 Message Date
Sebastian Wilzbach
f5e5075eaa [Trivial] Remove std.stdio imports from std.algorithm.mutation 2018-03-20 16:20:23 +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
414a5573d4
Merge pull request #6283 from wilzbach/std-algorithm-find-typo
std.algorithm fix typo in reference to std.range.SortedRange
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-03-16 17:24:20 +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
e7a8110ad3 Fix Ddoc error in the quickoverview of std.algorithm.sorting 2018-03-16 11:23:29 +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
Mathis Beer
eb0ffd9d1f Reduce size of slow testcase in std.algorithm.setops 2018-03-15 16:40:03 +01:00
Jack Stouffer
5b74692bf8
Update sorting.d 2018-03-12 10:10:59 -04:00
The Dlang Bot
78f7209c4a
Merge pull request #6156 from wilzbach/fix-8341
Fix Issue 8341 - topN(zip()) doesn't work
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-03-12 14:07:43 +01:00
Sebastian Wilzbach
adf6113eb9 Fix Issue 18492 - DLang STL links are broken 2018-02-23 04:31:09 +01:00
Jack Stouffer
663b5b9278 Revert addition of StdUnittest 2018-02-20 13:32:32 -05:00
Sebastian Wilzbach
1956daf34f Fix Issue 18341 - Documentation for std.array.split is confusing/incorrect 2018-02-19 22:50:03 +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
The Dlang Bot
15da6f6aca
Merge pull request #6132 from JackStouffer/startswith-ascii
Remove auto-decoding from startsWith when Needles are all narrow chars
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-02-12 23:13:00 +01:00
Jack Stouffer
a239bd1493 Remove auto-decoding from startsWith when Needles are all narrow chars 2018-02-12 15:34:14 -05:00
The Dlang Bot
2645dba46c
Merge pull request #6162 from wilzbach/fix-11555
Fix Issue 11555 - std.algorithm.reverse should return the just-reversed range
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-02-11 18:58:27 +01:00
Sebastian Wilzbach
f7b69b2f0a Unify all reverse overloads into one 2018-02-11 18:27:59 +01:00
Sebastian Wilzbach
3acaa9d53a Fix Issue 11555 - std.algorithm.reverse should return the just-reversed range 2018-02-11 16:46:19 +01:00
The Dlang Bot
508337e0bb
Merge pull request #6150 from wilzbach/splitter-back
Issue 8166 - remove dead _backLength code in std.algorithm.splitter
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-02-11 02:36:47 +01:00
Sebastian Wilzbach
ede44cbc63 Fix Issue 8341 - topN(zip()) doesn't work 2018-02-11 01:24:18 +01:00
Sebastian Wilzbach
d9830b739e Fix DScanner warnings 2018-02-10 22:46:32 +01:00
Sebastian Wilzbach
4775a5e357 Fix Issue 11084 - std.algorithm.scan 2018-02-10 21:32:11 +01:00
Sebastian Wilzbach
c7b6aabfea Issue 8166 - retro() of splitter() too 2018-02-10 02:25:49 +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
The Dlang Bot
9b03a10e5e
Merge pull request #6120 from wilzbach/fix-typo
Fix typo in the example title of std.algorithm.substitute
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2018-02-04 17:52:33 +01:00
Sebastian Wilzbach
32a6abd709 Fix typo in the example title of std.algorithm.substitute 2018-02-03 21:03:20 +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
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -05:00
The Dlang Bot
f5cd76d113
Merge pull request #6097 from wilzbach/remove-stl-references
Remove references to STL
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-30 22:08:54 +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
7fb3d4249f Remove references to STL 2018-01-30 16:08:20 +01:00
Sebastian Wilzbach
ba7af41793 Group documentation in std.algorithm.searching + small fixes 2018-01-30 15:25:38 +01:00
Sebastian Wilzbach
31cf21bb86 Group documentation in std.algorithm.mutation 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
Andrei Alexandrescu
0c31e41aa6
Update searching.d 2018-01-29 21:36:46 -05:00
Nathan Sashihara
b4ad39a8b6 Fix Issue 18328 - algorithm.startsWith can compare narrow string lengths in more circumstances 2018-01-29 21:25:01 -05:00
Jacob Carlborg
83adbc3079
Revert "findSplit: return named tuples instead of an anonymous tuple" 2018-01-27 16:23:24 +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
Sebastian Wilzbach
15835daa7c Fix DAutotest 2018-01-25 09:32:54 +01:00
Sebastian Wilzbach
33cf85fdb4 Address review 2018-01-25 09:30:33 +01:00
Sebastian Wilzbach
41d158f4c7 Add substitute for lazy replacements 2018-01-25 09:30:33 +01:00
Andrei Alexandrescu
2174695151
Merge pull request #6056 from n8sh/algorithm-cmp
Fix Issue 18280 - std.algorithm.comparison.cmp for non-strings should call opCmp only once per item pair
2018-01-24 13:05:24 -05:00
The Dlang Bot
c07b09e214
Merge pull request #5968 from wilzbach/searching-findSplit
findSplit: return named tuples instead of an anonymous tuple
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-24 17:10:43 +01:00
Nathan Sashihara
7f59e5ad52 Fix Issue 18280 - std.algorithm.comparison.cmp for non-strings should call opCmp only once per item pair
split cmp into two overloads per @andralex

https://github.com/dlang/phobos/pull/6056#pullrequestreview-90687092

Minor adjustments, again

cmp should return auto and let opCmp drive

https://github.com/dlang/phobos/pull/6056#issuecomment-359665184

Fix Issue 18285 - std.algorithm.comparison.cmp for strings with custom predicate compares lengths wrong

Test std.algorithm.comparison.cmp when opCmp returns float

Promotions should not use cast

Optimize cmp's endgame

There are some redundant tests when the end of the ranges is reached. Eliminated that, and improved threeWayByPred.

Fix Issue 18286 - std.algorithm.comparison.cmp for string with custom predicate fails if distinct chars can compare equal

Fix Issue 18288 - std.algorithm.comparison.cmp for wide strings should be @safe

re-apply remove cast in promotions
2018-01-23 19:54:58 -05:00